Files

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

31 lines
920 B
Groovy
Raw Permalink Normal View History

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()
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
}