Files
AstraPacks/build.gradle.kts
T

28 lines
970 B
Kotlin
Raw Normal View History

plugins {
java
id("net.neoforged.moddev") version "2.0.146"
}
group = "online.astradev"
version = "0.2.0"
repositories {
mavenCentral()
}
dependencies {
testImplementation("com.google.code.gson:gson:2.14.0")
testImplementation("io.netty:netty-codec-http:4.2.15.Final")
testImplementation("io.netty:netty-handler:4.2.15.Final")
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() }