Simplify ingredient handling and remove generated verification files
This commit is contained in:
+11
-6
@@ -3,10 +3,10 @@ plugins {
|
||||
id("net.neoforged.moddev") version "2.0.146"
|
||||
}
|
||||
group = "online.astradev"
|
||||
version = "0.3.2"
|
||||
version = "0.3.3"
|
||||
repositories { mavenCentral() }
|
||||
val astraPlusApi = providers.gradleProperty("astraPlusApi")
|
||||
.orElse("../AstraPlus/build/libs/AstraPlus-0.9.0.jar")
|
||||
.orElse("../AstraPlus/build/libs/AstraPlus-0.9.1.jar")
|
||||
dependencies {
|
||||
compileOnly(files(astraPlusApi))
|
||||
testImplementation("org.junit.jupiter:junit-jupiter:5.11.4")
|
||||
@@ -33,11 +33,16 @@ sourceSets.test {
|
||||
compileClasspath += sourceSets.main.get().compileClasspath
|
||||
runtimeClasspath += sourceSets.main.get().compileClasspath
|
||||
}
|
||||
val verification = sourceSets.create("verification") {
|
||||
val integrationTest = sourceSets.create("integrationTest") {
|
||||
compileClasspath += sourceSets.main.get().output + sourceSets.main.get().compileClasspath
|
||||
runtimeClasspath += output + compileClasspath
|
||||
}
|
||||
tasks.register<Jar>("verificationJar") {
|
||||
from(verification.output)
|
||||
archiveClassifier.set("verification")
|
||||
tasks.register<Jar>("integrationTestJar") {
|
||||
from(integrationTest.output)
|
||||
archiveClassifier.set("integration-tests")
|
||||
}
|
||||
|
||||
tasks.register<Exec>("integrationTest") {
|
||||
dependsOn("build", "integrationTestJar")
|
||||
commandLine("pwsh", "-NoProfile", "-File", "src/integrationTest/run.ps1")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user