Declare copper rails through AstraPlus and simplify train state

This commit is contained in:
2026-09-13 23:17:48 +03:00
parent a43f56e25b
commit f590256777
146 changed files with 575 additions and 657 deletions
+10 -3
View File
@@ -3,10 +3,10 @@ plugins {
id("net.neoforged.moddev") version "2.0.146"
}
group = "online.astradev"
version = "0.2.3"
version = "0.2.4"
repositories { mavenCentral() }
dependencies {
compileOnly(files("../AstraPlus/build/libs/AstraPlus-0.9.2.jar"))
compileOnly(files("../AstraPlus/build/libs/AstraPlus-0.9.3.jar"))
testImplementation("org.junit.jupiter:junit-jupiter:5.11.4")
testRuntimeOnly("org.junit.platform:junit-platform-launcher:1.11.4")
}
@@ -23,10 +23,17 @@ tasks.withType<JavaCompile>().configureEach {
options.release.set(25)
}
tasks.processResources {
includeEmptyDirs = false
inputs.property("modVersion", project.version)
filesMatching("META-INF/neoforge.mods.toml") { expand("version" to project.version) }
}
tasks.test { useJUnitPlatform() }
tasks.test {
useJUnitPlatform()
workingDir = layout.buildDirectory.dir("test-runtime").get().asFile
doFirst { workingDir.mkdirs() }
}
tasks.withType<Jar>().configureEach { includeEmptyDirs = false }
sourceSets.test {
compileClasspath += sourceSets.main.get().compileClasspath
runtimeClasspath += sourceSets.main.get().compileClasspath