mirror of
https://github.com/RipMeApp/ripme.git
synced 2025-07-31 02:50:15 +02:00
java-11 now necessary to run ripme
This commit is contained in:
4
.github/workflows/gradle.yml
vendored
4
.github/workflows/gradle.yml
vendored
@@ -15,8 +15,8 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
os: [ubuntu-latest, windows-latest, macOS-latest]
|
os: [ubuntu-latest, windows-latest, macOS-latest]
|
||||||
java: [8]
|
java: [11]
|
||||||
include: # test newest java on one os only, upload from ubuntu java8
|
include: # test newest java on one os only, upload from ubuntu java11
|
||||||
- os: ubuntu-latest
|
- os: ubuntu-latest
|
||||||
java: 17
|
java: 17
|
||||||
- os: ubuntu-latest
|
- os: ubuntu-latest
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
// permits to start the build setting the javac release parameter, no parameter means build for java8:
|
// 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=8
|
||||||
// gradle clean build -PjavacRelease=17
|
// gradle clean build -PjavacRelease=17
|
||||||
val javacRelease = (project.findProperty("javacRelease") ?: "8") as String
|
val javacRelease = (project.findProperty("javacRelease") ?: "11") as String
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
id("fr.brouillard.oss.gradle.jgitver") version "0.9.1"
|
id("fr.brouillard.oss.gradle.jgitver") version "0.9.1"
|
||||||
@@ -44,11 +44,7 @@ jgitver {
|
|||||||
}
|
}
|
||||||
|
|
||||||
tasks.compileJava {
|
tasks.compileJava {
|
||||||
if (JavaVersion.current().isJava8) {
|
options.release.set(Integer.parseInt(javacRelease))
|
||||||
java.targetCompatibility = JavaVersion.VERSION_1_8
|
|
||||||
} else {
|
|
||||||
options.release.set(Integer.parseInt(javacRelease))
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.withType<Jar> {
|
tasks.withType<Jar> {
|
||||||
|
Reference in New Issue
Block a user