Files
Iris/buildSrc/build.gradle
T
Brian Fopiano ba9694083b Adopt packaging standard
- Ship the Bukkit runtime as a compact payload
- Drop packaging lines that now match the plugin defaults
- Verify native providers from PackedJar.readRuntime entries
- Remove the unused xz dependency from buildSrc
- Drop hand-written META-INF/maven excludes in mod builds
- Keep native boundary checks on in the mod adapters
2026-12-01 08:28:43 -05:00

41 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('io.papermc.paperweight:paperweight-userdev:2.0.0-beta.21')
testImplementation('junit:junit:4.13.2')
}