mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-10-12 03:24:14 +00:00
- ItemsAdder API resolves from Maven Central - Integration repositories only resolve their assigned groups and modules - Shared VolmLib classes and packaging use the same pinned revision - JitPack builds and publishes with remote dependencies - Local Maven publication uses art.arcane:iris with the configured version - API generation tracks the final archive filename lazily - API jars retain signatures and metadata with valid throwing method stubs - Publication tests verify metadata, bytecode, and consumer compilation
39 lines
1004 B
Groovy
39 lines
1004 B
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 {
|
|
dependsOn(tasks.named('test'))
|
|
}
|
|
|
|
tasks.named('test').configure {
|
|
jvmArgs('--add-opens=java.base/java.lang=ALL-UNNAMED')
|
|
}
|
|
|
|
dependencies {
|
|
implementation(gradleApi())
|
|
implementation('org.ow2.asm:asm:9.10.1')
|
|
implementation('org.apache.commons:commons-compress:1.28.0')
|
|
implementation('com.github.VolmitSoftware:NMSTools:c88961416f')
|
|
implementation('io.papermc.paperweight:paperweight-userdev:2.0.0-beta.21')
|
|
testImplementation('junit:junit:4.13.2')
|
|
}
|