Expose asynchronous publication receipts, roll back failed prepared inputs, and preserve the active pack across failed builds and shutdown.
45 lines
1.2 KiB
Kotlin
45 lines
1.2 KiB
Kotlin
plugins {
|
|
java
|
|
id("net.neoforged.moddev") version "2.0.146"
|
|
}
|
|
group = "online.astradev"
|
|
version = "0.2.5"
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
dependencies {
|
|
testImplementation("com.google.code.gson:gson:2.14.0")
|
|
testImplementation("org.junit.jupiter:junit-jupiter:5.11.4")
|
|
testRuntimeOnly("org.junit.platform:junit-platform-launcher:1.11.4")
|
|
}
|
|
neoForge {
|
|
version = "26.2.0.79"
|
|
mods {
|
|
create("astrapacks") {
|
|
sourceSet(sourceSets.main.get())
|
|
}
|
|
}
|
|
}
|
|
java {
|
|
toolchain.languageVersion.set(JavaLanguageVersion.of(25))
|
|
}
|
|
tasks.withType<JavaCompile>().configureEach {
|
|
options.encoding = "UTF-8"
|
|
options.release.set(25)
|
|
}
|
|
tasks.processResources {
|
|
inputs.property("modVersion", project.version)
|
|
filesMatching("META-INF/neoforge.mods.toml") { expand("version" to project.version) }
|
|
}
|
|
tasks.test {
|
|
useJUnitPlatform()
|
|
systemProperty("astrapacks.projectDirectory", projectDir.absolutePath)
|
|
workingDir = layout.buildDirectory.dir("test-runtime").get().asFile
|
|
doFirst { workingDir.mkdirs() }
|
|
}
|
|
|
|
sourceSets.test {
|
|
compileClasspath += sourceSets.main.get().compileClasspath
|
|
runtimeClasspath += sourceSets.main.get().compileClasspath
|
|
}
|