Aaron Ferguson
05/02/2024, 7:58 PMCaleb Cushing
05/02/2024, 9:53 PMCaleb Cushing
05/02/2024, 9:55 PM./gradlew build buildHealth --build-cache
Caleb Cushing
05/02/2024, 9:56 PMCaleb Cushing
05/02/2024, 9:56 PMCaleb Cushing
05/02/2024, 9:57 PMci-build
always runs ci-full
only runs on PR's but would fail fast if this isn't right since it's the thing most likely to fail at that point (I hope)
ci-build:
./gradlew build buildHealth --build-cache
ci-full:
./gradlew buildHealth build --no-build-cache --no-configuration-cache
Jendrik Johannes
05/03/2024, 6:09 AMqualityCheck
. This then runs in the first stage of PR builds and can also be run locally by developer before pushing. For the dependency analysis plugin I typically wire these to projectHealth
to have each project checked individually. And you then set that task to fail.
// in root -> make analysis plugin lead to failure
dependencyAnalysis { issues { all { onAny { severity("fail") } } } }
And the check
task something like this:
// each project has a 'qualityCheck'
tasks.register("qualityCheck") {
group = "build"
description = "Runs all checks (without executing tests)"
dependsOn(tasks.withType<ProjectHealthTask>())
// Other checks like spotless or checkstyle etc.
}
First stage of CI:
./gradlew qualityCheck --continue
Aaron Ferguson
05/03/2024, 11:38 AMAaron Ferguson
05/03/2024, 10:39 PM