1
0
mirror of https://github.com/octoleo/plantuml.git synced 2024-12-22 10:59:01 +00:00

allow "gradle build -PjavacRelease=17" to build java-17 binary

for gradle now one could do:
gradle clean build -x test -x javaDoc -PjavacRelease=17

for maven something like this works to build a different target binary:
mvn clean package -Dmaven.test.skip=true -Dmaven.javadoc.skip=true -Dmaven.compiler.release=17
This commit is contained in:
soloturn 2022-02-08 09:18:17 +01:00
parent ecc8dfe60a
commit e15c58d9a2
2 changed files with 4 additions and 1 deletions

View File

@ -1,3 +1,5 @@
val javacRelease: String by project
plugins { plugins {
java java
`maven-publish` `maven-publish`
@ -50,7 +52,7 @@ sourceSets {
} }
tasks.compileJava { tasks.compileJava {
options.release.set(8) options.release.set(Integer.parseInt(javacRelease))
} }
tasks.withType<Jar> { tasks.withType<Jar> {

View File

@ -1 +1,2 @@
javacRelease = 8
version = 1.2022.1-SNAPSHOT version = 1.2022.1-SNAPSHOT