2024-02-04 19:58:36 +00:00
|
|
|
//version: 1707058017
|
2021-11-19 23:01:31 +01:00
|
|
|
|
|
|
|
|
plugins {
|
2024-02-04 19:58:36 +00:00
|
|
|
id 'com.gtnewhorizons.gtnhconvention'
|
2023-11-06 10:03:33 -06:00
|
|
|
}
|
2026-08-14 16:52:22 +02:00
|
|
|
|
|
|
|
|
tasks.test {
|
|
|
|
|
useJUnitPlatform()
|
2026-09-14 16:10:50 +02:00
|
|
|
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"
|
|
|
|
|
}
|
|
|
|
|
}
|
2026-08-14 16:52:22 +02:00
|
|
|
}
|
2026-08-30 21:51:50 +02:00
|
|
|
|
2026-09-15 22:39:40 +02:00
|
|
|
tasks.named('compileScala') {
|
2026-08-30 21:51:50 +02:00
|
|
|
// Zinc does not invalidate joint-compiled Java annotations when Tags.VERSION changes.
|
|
|
|
|
scalaCompileOptions.force = true
|
|
|
|
|
}
|