mirror of
https://github.com/octoleo/plantuml.git
synced 2024-11-26 06:46:45 +00:00
Merge pull request #903 from soloturn/gradle
gradle, allow java17 binary
This commit is contained in:
commit
f67ebad086
@ -1,3 +1,5 @@
|
||||
val javacRelease: String by project
|
||||
|
||||
plugins {
|
||||
java
|
||||
`maven-publish`
|
||||
@ -50,7 +52,7 @@ sourceSets {
|
||||
}
|
||||
|
||||
tasks.compileJava {
|
||||
options.release.set(8)
|
||||
options.release.set(Integer.parseInt(javacRelease))
|
||||
}
|
||||
|
||||
tasks.withType<Jar> {
|
||||
@ -87,7 +89,7 @@ tasks.withType<JavaCompile> {
|
||||
tasks.withType<Javadoc> {
|
||||
options {
|
||||
this as StandardJavadocDocletOptions
|
||||
addStringOption("Xdoclint:none", "-quiet")
|
||||
addBooleanOption("Xdoclint:none", true)
|
||||
addStringOption("Xmaxwarns", "1")
|
||||
}
|
||||
}
|
||||
|
@ -1 +1,2 @@
|
||||
javacRelease = 8
|
||||
version = 1.2022.1-SNAPSHOT
|
||||
|
Loading…
Reference in New Issue
Block a user