From b855a78516a1a457584e861c46d3f6f96d848ea4 Mon Sep 17 00:00:00 2001 From: Iurii Ignatko Date: Thu, 14 Nov 2024 14:46:55 +0100 Subject: [PATCH] Remove unnecessary jenkins version filtering --- acceptance-tests/build.gradle.kts | 8 -------- 1 file changed, 8 deletions(-) diff --git a/acceptance-tests/build.gradle.kts b/acceptance-tests/build.gradle.kts index 473ec760..d77d87b1 100644 --- a/acceptance-tests/build.gradle.kts +++ b/acceptance-tests/build.gradle.kts @@ -40,8 +40,6 @@ dependencies { add(gradlePlugin.name, project(path = ":", configuration = "gradlePluginJpi")) } -val currentJava = JavaVersion.current() - val jenkinsVersions = listOf( JenkinsVersion.LATEST, JenkinsVersion.LATEST_LTS, @@ -49,9 +47,6 @@ val jenkinsVersions = listOf( ) jenkinsVersions - .filter { jenkinsVersion -> - jenkinsVersion.isDefault || currentJava.isCompatibleWith(jenkinsVersion.requiredJavaVersion) - } .forEach { jenkinsVersion -> val downloadJenkinsTask = tasks.register("downloadJenkins${jenkinsVersion.label}") { @@ -154,7 +149,4 @@ data class JenkinsVersion(val version: String, val downloadUrl: URL, val javaVer } else { version.split("-").joinToString(separator = "") { it.capitalized() } } - - val requiredJavaVersion: JavaVersion - get() = JavaVersion.toVersion(javaVersion.toString()) }