1
0
mirror of https://github.com/RipMeApp/ripme.git synced 2025-04-20 11:52:00 +02:00

java-11 now necessary to run ripme

This commit is contained in:
soloturn 2022-02-28 00:42:06 +01:00
parent abb1eaa49d
commit a061926653
2 changed files with 4 additions and 8 deletions

View File

@ -15,8 +15,8 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
java: [8]
include: # test newest java on one os only, upload from ubuntu java8
java: [11]
include: # test newest java on one os only, upload from ubuntu java11
- os: ubuntu-latest
java: 17
- os: ubuntu-latest

View File

@ -1,7 +1,7 @@
// permits to start the build setting the javac release parameter, no parameter means build for java8:
// gradle clean build -PjavacRelease=8
// gradle clean build -PjavacRelease=17
val javacRelease = (project.findProperty("javacRelease") ?: "8") as String
val javacRelease = (project.findProperty("javacRelease") ?: "11") as String
plugins {
id("fr.brouillard.oss.gradle.jgitver") version "0.9.1"
@ -44,11 +44,7 @@ jgitver {
}
tasks.compileJava {
if (JavaVersion.current().isJava8) {
java.targetCompatibility = JavaVersion.VERSION_1_8
} else {
options.release.set(Integer.parseInt(javacRelease))
}
options.release.set(Integer.parseInt(javacRelease))
}
tasks.withType<Jar> {