Skip to content

Commit b76b59b

Browse files
committed
Updated Java Version
1 parent 6028e0a commit b76b59b

2 files changed

Lines changed: 4 additions & 7 deletions

File tree

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
uses: ./.github/workflows/java-release.yml
3333
needs: rl-scanner
3434
with:
35-
java-version: 17
35+
java-version: 17.0.19-tem
3636
secrets:
3737
ossr-username: ${{ secrets.OSSR_USERNAME }}
3838
ossr-token: ${{ secrets.OSSR_TOKEN }}

gradle/maven-publish.gradle

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ tasks.withType(Javadoc).configureEach {
2020
javadoc {
2121
// Specify the Java version that the project targets
2222
options.addStringOption('-release', "17")
23+
if(JavaVersion.current().isJava9Compatible()) {
24+
options.addBooleanOption('html5', true)
25+
}
2326
}
2427
artifacts {
2528
archives sourcesJar, javadocJar
@@ -88,12 +91,6 @@ signing {
8891
sign publishing.publications.mavenJava
8992
}
9093

91-
javadoc {
92-
if(JavaVersion.current().isJava9Compatible()) {
93-
options.addBooleanOption('html5', true)
94-
}
95-
}
96-
9794
tasks.named('publish').configure {
9895
dependsOn tasks.named('assemble')
9996
}

0 commit comments

Comments
 (0)