Own item trap runtime with safe lifecycle and upgrade regression tests
This commit is contained in:
+7
-3
@@ -3,12 +3,12 @@ plugins {
|
||||
id("net.neoforged.moddev") version "2.0.146"
|
||||
}
|
||||
group = "online.astradev"
|
||||
version = "0.2.6"
|
||||
version = "0.2.7"
|
||||
repositories { mavenCentral() }
|
||||
val astraPlusApi = providers.gradleProperty("astraPlusApi")
|
||||
.orElse("../AstraPlus/build/libs/AstraPlus-0.9.13-api.jar")
|
||||
.orElse("../AstraPlus/build/libs/AstraPlus-0.9.14-api.jar")
|
||||
val astraPlusRuntime = providers.gradleProperty("astraPlusRuntime")
|
||||
.orElse("../AstraPlus/build/libs/AstraPlus-0.9.13.jar")
|
||||
.orElse("../AstraPlus/build/libs/AstraPlus-0.9.14.jar")
|
||||
dependencies {
|
||||
compileOnly(files(astraPlusApi))
|
||||
testImplementation("org.junit.jupiter:junit-jupiter:5.11.4")
|
||||
@@ -53,6 +53,8 @@ val integrationTest = sourceSets.create("integrationTest") {
|
||||
tasks.register<Jar>("integrationTestJar") {
|
||||
from(integrationTest.output)
|
||||
from("src/main/resources") { include("content/astracontent/legacy-rails.json") }
|
||||
// The old-runtime baseline uses these as test inputs before the module owns them.
|
||||
from("src/main/resources") { include("content/policies/trap-*.json") }
|
||||
archiveClassifier.set("integration-tests")
|
||||
}
|
||||
|
||||
@@ -62,6 +64,8 @@ tasks.register<Exec>("integrationTest") {
|
||||
if (providers.gradleProperty("experimental").isPresent) args("-Experimental")
|
||||
providers.gradleProperty("upgradeFrom").orNull?.let { args("-UpgradeFrom", it) }
|
||||
providers.gradleProperty("astraPlusRuntime").orNull?.let { args("-PlusJar", it) }
|
||||
providers.gradleProperty("contentRuntime").orNull?.let { args("-ContentJar", it) }
|
||||
if (providers.gradleProperty("legacyTrapBaseline").isPresent) args("-LegacyTrapBaseline")
|
||||
}
|
||||
|
||||
tasks.register<Exec>("compatibilityTest") {
|
||||
|
||||
Reference in New Issue
Block a user