Lom: unit test support
This commit is contained in:
parent
2ba0baeaea
commit
591ed75b72
|
@ -5,7 +5,7 @@ plugins {
|
|||
`java-library`
|
||||
}
|
||||
|
||||
val manifoldVersion by extra("2023.1.2")
|
||||
val manifoldVersion by extra("2023.1.3")
|
||||
|
||||
dependencies {
|
||||
implementation("systems.manifold:manifold-props-rt:$manifoldVersion")
|
||||
|
|
|
@ -91,12 +91,17 @@ earlyAfterEvaluate {
|
|||
if (args.yarnBuild != null) mappings("net.fabricmc:yarn:${args.minecraftVersion.get()}+${args.yarnBuild}:v2")
|
||||
else loom.officialMojangMappings()
|
||||
modImplementation("net.fabricmc:fabric-loader:${args.loaderVersion.get()}")
|
||||
testImplementation("net.fabricmc:fabric-loader-junit:${args.loaderVersion.get()}")
|
||||
|
||||
testmodImplementation(sourceSets.main.get().output)
|
||||
testmodImplementation(sourceSets.client.get().output)
|
||||
}
|
||||
}
|
||||
|
||||
tasks.test {
|
||||
useJUnitPlatform()
|
||||
}
|
||||
|
||||
// Mark normal jars as -dev
|
||||
tasks.jar.get().archiveClassifier.set("dev")
|
||||
|
||||
|
|
Loading…
Reference in New Issue