Files
ForgeMultipart/build.gradle
Algent 12eb146d02 build: compile directly for Java 8
Keep modern java out of that for now, it make build script too complicated as long as scala still here to force J8 path
2026-09-15 22:48:00 +02:00

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
}