1
0
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:
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: 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

View File

@@ -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> {