Skip to content

Commit ba207b0

Browse files
committed
Add aggregate task for building all public artifacts
1 parent 8f74a96 commit ba207b0

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

build.gradle.kts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,19 @@ spotless {
2626
ktfmt().googleStyle()
2727
}
2828
}
29+
30+
// Aggregate task for building all public artifacts
31+
// Used to assemble the jars that should be scanned by OWASP Dependency Check
32+
// job on Jenkins
33+
tasks.register("buildPublicArtifacts") {
34+
group = "build"
35+
val publicArtifacts = project.extra.get("public.artifacts")
36+
if (publicArtifacts is List<*>) {
37+
dependsOn(publicArtifacts.map { ":$it:jar" })
38+
} else {
39+
logger.error(
40+
"Cannot access the list of public artifacts. The project-wide code coverage report will be incomplete!"
41+
)
42+
}
43+
dependsOn(":uber-jars:buildNetcdfAll", ":uber-jars:buildToolsUI", ":uber-jars:buildNcIdv")
44+
}

0 commit comments

Comments
 (0)