mirror of
https://github.com/GTNewHorizons/ForgeMultipart.git
synced 2026-11-11 07:57:39 +00:00
Keep modern java out of that for now, it make build script too complicated as long as scala still here to force J8 path
32 lines
920 B
Groovy
32 lines
920 B
Groovy
//version: 1707058017
|
|
|
|
plugins {
|
|
id 'com.gtnewhorizons.gtnhconvention'
|
|
}
|
|
|
|
tasks.test {
|
|
useJUnitPlatform()
|
|
testLogging {
|
|
events("failed")
|
|
exceptionFormat = "full"
|
|
}
|
|
// Gradle prints nothing on success, so a green run never says how much ran.
|
|
afterSuite { desc, result ->
|
|
if (desc.parent != null) {
|
|
return
|
|
}
|
|
def summary = "Unit tests: ${result.testCount} tests, ${result.successfulTestCount} passed, " +
|
|
"${result.failedTestCount} failed, ${result.skippedTestCount} skipped"
|
|
logger.lifecycle(summary)
|
|
def stepSummary = System.getenv("GITHUB_STEP_SUMMARY")
|
|
if (stepSummary) {
|
|
new File(stepSummary) << "### ${summary}\n"
|
|
}
|
|
}
|
|
}
|
|
|
|
tasks.named('compileScala') {
|
|
// Zinc does not invalidate joint-compiled Java annotations when Tags.VERSION changes.
|
|
scalaCompileOptions.force = true
|
|
}
|