better test

This commit is contained in:
Jaffe2718
2025-08-13 23:23:16 +08:00
parent b7c9d83078
commit a940a96bc7
16 changed files with 160 additions and 56 deletions

View File

@@ -1,3 +1,7 @@
plugins {
id 'java'
}
architectury {
common(rootProject.enabled_platforms.split(","))
}
@@ -21,3 +25,16 @@ publishing {
// Add repositories to publish to here.
}
}
configurations {
testOutput.extendsFrom(testImplementation)
}
tasks.register('testJar', Jar) {
from sourceSets.test.output
archiveClassifier = 'tests'
}
artifacts {
testOutput testJar
}