mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-10-25 13:30:08 +00:00
- Mod targets run through bounded Gradle workers with separate caches and daemon slots - Target logs retain verification failures and bounded output summaries - Nested tests use bounded forks and JVM thread counts - Lifecycle tests control deadlines through injected clocks
42 lines
1.1 KiB
Groovy
42 lines
1.1 KiB
Groovy
import org.gradle.jvm.toolchain.JavaLanguageVersion
|
|
|
|
plugins {
|
|
id 'java'
|
|
}
|
|
|
|
java {
|
|
toolchain {
|
|
languageVersion = JavaLanguageVersion.of(25)
|
|
}
|
|
}
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
gradlePluginPortal()
|
|
maven {
|
|
url = uri('https://jitpack.io')
|
|
}
|
|
}
|
|
|
|
// Nothing else asks buildSrc for `test`: Gradle only requests the jar that carries the build logic.
|
|
// Gating the jar on the tests is what makes them run at all, and it costs nothing once they are green.
|
|
tasks.named('jar').configure {
|
|
if (!gradle.extensions.extraProperties.has('irisBuildLane')) {
|
|
dependsOn(tasks.named('test'))
|
|
}
|
|
}
|
|
|
|
tasks.named('test').configure {
|
|
jvmArgs('--add-opens=java.base/java.lang=ALL-UNNAMED')
|
|
jvmArgs('-XX:ParallelGCThreads=2', '-XX:ConcGCThreads=1', '-XX:CICompilerCount=2')
|
|
}
|
|
|
|
dependencies {
|
|
implementation(gradleApi())
|
|
implementation('org.ow2.asm:asm:9.10.1')
|
|
implementation('org.apache.commons:commons-compress:1.28.0')
|
|
implementation('org.tukaani:xz:1.10')
|
|
implementation('io.papermc.paperweight:paperweight-userdev:2.0.0-beta.21')
|
|
testImplementation('junit:junit:4.13.2')
|
|
}
|