Skip to content

Commit eb0fb78

Browse files
committed
Upgrade to Gradle wrapper 9.5.0
Document that running Gradle now requires Java 17
1 parent 796959f commit eb0fb78

8 files changed

Lines changed: 34 additions & 55 deletions

File tree

.github/workflows/run-tests.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,13 @@ jobs:
1212
- version: 8
1313
javaInstall: |
1414
8
15-
11
15+
17
1616
buildProfile: 8
1717
testProfile: 8
1818
- version: 11
19-
javaInstall: 11
19+
javaInstall: |
20+
11
21+
17
2022
buildProfile: 11
2123
testProfile: 11
2224
- version: 11-test-17

build.gradle

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ java {
8686
}
8787

8888
configurations {
89+
asciidoctorExt
8990
if (project.testJava > 8) {
9091
mockitoAgent
9192
}
@@ -126,6 +127,8 @@ dependencies {
126127
}
127128
}
128129
testImplementation "org.mockito:mockito-junit-jupiter:$mockito"
130+
131+
asciidoctorExt 'org.firebirdsql.asciidoctor:canonical-link:1.0'
129132
}
130133

131134
sourceSets {
@@ -170,14 +173,11 @@ processResources {
170173
//apply from: 'documentation.gradle'
171174

172175
asciidoctorj {
173-
// NOTE: Don't upgrade to v 3.0.0, as it requires Java 11
174-
version = '2.5.13'
175-
176-
// NOTE: We can't use org.firebirdsql.asciidoctor:canonical-link:1.0 as it requires AsciidoctorJ 3.0.x and Java 17
177-
docExtensions file('doc-extension.groovy')
176+
version = '3.0.1'
178177
}
179178

180179
tasks.named('asciidoctor', AsciidoctorTask).configure {
180+
configurations 'asciidoctorExt'
181181
executionMode = OUT_OF_PROCESS
182182
attributes 'version_simple': project.'version.simple',
183183
'version_wo_target': "${project.'version.simple'}${project.'version.tag'}",

devdoc/build-documentation.md

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,18 @@ NOTE: This document doesn't all aspects of the build. If you miss something,
44
please contribute using a pull request, or ask on the firebird-java mailing
55
list.
66

7+
These instructions apply to Branch_5_0 (Jaybird 5.0.x).
8+
79
## Running the build
810

9-
The build uses Gradle wrapper, which is included in the repository. The build
10-
target (buildProfile) defaults to Java 11, independent of the Java version
11-
running Gradle.
11+
The build uses Gradle wrapper, which is included in the repository. The Gradle
12+
wrapper version itself requires Java 17 minimum. However, the build uses
13+
toolchains to compile and test on a specific Java version, which will also need
14+
to be installed. The build script intentionally does not use solutions to
15+
automatically download Java versions required by the selected toolchain(s).
16+
17+
The build target (`buildProfile`) defaults to Java 11, independent of the Java
18+
version running Gradle.
1219

1320
The target Java version is determined by passing `-PbuildProfile=NN`, where `NN`
1421
is the desired Java version. The default is `11`. Versions other than `8` or
@@ -19,15 +26,6 @@ overridden with `-PtestProfile=NN`. For historic reasons, `javaNN` is also
1926
accepted by both properties. Running tests with `buildProfile` set to Java 8 and
2027
`testProfile` to Java 11 or higher may fail due to absence of ChaCha support.
2128

22-
To run with a specific Java version, we suggest creating a Java-specific launch
23-
script. For example, for Windows create a batch file with:
24-
25-
```
26-
@echo off
27-
set JAVA_HOME=C:\Program Files\Java\jdk1.8.0
28-
call gradlew.bat -PbuildProfile=8 %*
29-
```
30-
3129
### Default build
3230

3331
By default, the `clean` and `build` task is executed with the `PURE_JAVA` GDS

doc-extension.groovy

Lines changed: 0 additions & 8 deletions
This file was deleted.

gradle/wrapper/gradle-wrapper.jar

4.59 KB
Binary file not shown.
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.4-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-9.5.0-bin.zip
44
networkTimeout=10000
5+
retries=0
6+
retryBackOffMs=500
57
validateDistributionUrl=true
68
zipStoreBase=GRADLE_USER_HOME
79
zipStorePath=wrapper/dists

gradlew

Lines changed: 2 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gradlew.bat

Lines changed: 10 additions & 22 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)