Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 20 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@
* See LICENSE for license information.
*/

plugins { alias(libs.plugins.spotless) }
plugins {
id("java-base-conventions")
alias(libs.plugins.spotless)
}

description = "The Unidata netCDF-Java library (aka CDM)."

Expand All @@ -23,3 +26,19 @@ spotless {
ktfmt().googleStyle()
}
}

// Aggregate task for building all public artifacts
// Used to assemble the jars that should be scanned by OWASP Dependency Check
// job on Jenkins
tasks.register("buildPublicArtifacts") {
group = "build"
val publicArtifacts = project.extra.get("public.artifacts")
if (publicArtifacts is List<*>) {
dependsOn(publicArtifacts.map { ":$it:jar" })
} else {
logger.error(
"Cannot access the list of public artifacts. The project-wide code coverage report will be incomplete!"
)
}
dependsOn(":uber-jars:buildNetcdfAll", ":uber-jars:buildToolsUI", ":uber-jars:buildNcIdv")
}
11 changes: 0 additions & 11 deletions gradle.properties.old

This file was deleted.