fixing(gradle)

This commit is contained in:
2025-08-28 21:07:20 +02:00
parent 2c2dcd381c
commit 20788bde91
19 changed files with 495 additions and 333 deletions
+7 -9
View File
@@ -19,14 +19,12 @@ subprojects {
}
tasks.withType<Test>().configureEach {
useJUnitPlatform()
doFirst {
val agent = project.configurations.findByName("testRuntimeClasspath")?.files?.find {
it.name.startsWith("byte-buddy-agent")
}
if (agent != null) {
jvmArgs("-javaagent:${agent.absolutePath}")
}
}
// Configure CDS in auto-mode to prevent bootstrap classpath warnings
jvmArgs("-Xshare:auto", "-Djdk.instrument.traceUsage=false")
// Increase test JVM memory with stable configuration
maxHeapSize = "2g"
// Removed byte-buddy-agent configuration to fix Gradle 9.0.0 deprecation warning
// The agent configuration was causing Task.project access at execution time
}
}
@@ -113,6 +111,6 @@ tasks.register("generateAllDocs") {
// Wrapper-Konfiguration
tasks.wrapper {
gradleVersion = "8.14"
gradleVersion = "9.0.0"
distributionType = Wrapper.DistributionType.BIN
}