From ae8f486b707ccf15329784619cc1167f971d6208 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Fri, 4 Oct 2024 23:34:19 +0200 Subject: [PATCH] =?utf8?q?=F0=9F=92=9A=20Remove=20toolchain=20definition?= =?utf8?q?=20from=20Gradle=20build=20file?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit And don’t build with Java 8 anymore. --- Jenkinsfile | 22 ++++++---------------- build.gradle | 10 ---------- 2 files changed, 6 insertions(+), 26 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 096a33d..fa52a18 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -6,17 +6,17 @@ pipeline { } stages { - stage('Build (Java 8)') { + stage('Build (Java 17)') { tools { - jdk 'OpenJDK 8' + jdk 'OpenJDK 17' } steps { sh './gradlew --no-daemon clean classes testClasses' } } - stage('Test (Java 8)') { + stage('Test (Java 17)') { tools { - jdk 'OpenJDK 8' + jdk 'OpenJDK 17' } steps { sh './gradlew --no-daemon test jacocoTestReport' @@ -28,25 +28,15 @@ pipeline { } } } - stage('Binary (Java 8)') { + stage('Binary (Java 17)') { tools { - jdk 'OpenJDK 8' + jdk 'OpenJDK 17' } steps { sh './gradlew --no-daemon fatJar' archiveArtifacts artifacts: 'build/libs/rhynodge-*-jar-with-dependencies.jar', fingerprint: true } } - stage('Compatibility (Java 17)') { - tools { - jdk 'OpenJDK 17' - } - steps { - catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') { - sh './gradlew --no-daemon clean test' - } - } - } stage('Compatibility (Java 21)') { tools { jdk 'OpenJDK 21' diff --git a/build.gradle b/build.gradle index 73f1df8..838acae 100644 --- a/build.gradle +++ b/build.gradle @@ -17,16 +17,6 @@ plugins { apply plugin: "jacoco" apply plugin: "idea" -kotlin { - jvmToolchain(17) -} - -java { - toolchain { - languageVersion.set(JavaLanguageVersion.of(17)) - } -} - idea { project { languageLevel = "17" -- 2.7.4