Adopt the AstraPlus content module API

This commit is contained in:
2026-09-19 16:32:25 +03:00
parent f590256777
commit 5239306876
3 changed files with 11 additions and 5 deletions
+7 -1
View File
@@ -5,10 +5,15 @@ plugins {
group = "online.astradev"
version = "0.2.4"
repositories { mavenCentral() }
val astraPlusApi = providers.gradleProperty("astraPlusApi")
.orElse("../AstraPlus/build/libs/AstraPlus-0.9.8-api.jar")
val astraPlusRuntime = providers.gradleProperty("astraPlusRuntime")
.orElse("../AstraPlus/build/libs/AstraPlus-0.9.8.jar")
dependencies {
compileOnly(files("../AstraPlus/build/libs/AstraPlus-0.9.3.jar"))
compileOnly(files(astraPlusApi))
testImplementation("org.junit.jupiter:junit-jupiter:5.11.4")
testRuntimeOnly("org.junit.platform:junit-platform-launcher:1.11.4")
testRuntimeOnly(files(astraPlusRuntime))
}
neoForge {
version = "26.2.0.79"
@@ -40,6 +45,7 @@ sourceSets.test {
}
val integrationTest = sourceSets.create("integrationTest") {
compileClasspath += sourceSets.main.get().output + sourceSets.main.get().compileClasspath
compileClasspath += files(astraPlusRuntime)
runtimeClasspath += output + compileClasspath
}
tasks.register<Jar>("integrationTestJar") {