Update to Gradle 8.10 (#1157)

* Update to Gradle 8.10

* 8.10 for real
This commit is contained in:
modmuss
2024-08-15 14:29:18 +01:00
committed by GitHub
parent efe66075ba
commit 4fef156888
9 changed files with 22 additions and 31 deletions

View File

@@ -63,7 +63,11 @@ if (ENV.BUILD_NUMBER) {
}
// We must build against the version of Kotlin Gradle ships with.
def kotlinVersion = KotlinDslVersion.current().getKotlinVersion()
def props = new Properties()
Project.class.getClassLoader().getResource("gradle-kotlin-dsl-versions.properties").openStream().withCloseable {
props.load(it)
}
def kotlinVersion = props.getProperty("kotlin")
if (libs.versions.kotlin.get() != kotlinVersion) {
throw new IllegalStateException("Requires Kotlin version: ${kotlinVersion}")
}
@@ -306,7 +310,6 @@ tasks.withType(Test).configureEach {
import org.gradle.api.internal.artifacts.configurations.ConfigurationRoles
import org.gradle.launcher.cli.KotlinDslVersion
import org.gradle.util.GradleVersion
import org.w3c.dom.Document
import org.w3c.dom.Element