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:
parent
abb1eaa49d
commit
a061926653
4
.github/workflows/gradle.yml
vendored
4
.github/workflows/gradle.yml
vendored
@ -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
|
||||
|
@ -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> {
|
||||
|
Loading…
x
Reference in New Issue
Block a user