diff --git a/build.gradle.kts b/build.gradle.kts index ec5a1d56d5..f1246be891 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -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)." @@ -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") +} diff --git a/gradle.properties.old b/gradle.properties.old deleted file mode 100644 index be6eaee735..0000000000 --- a/gradle.properties.old +++ /dev/null @@ -1,11 +0,0 @@ -# This file is useful for adding gradle config options for use in CI environments, where -# there isn't likely a gradle.properties file at a higher priority level -# See https://docs.gradle.org/current/userguide/build_environment.html#sec:gradle_configuration_properties -# note that we used to set some things here, specifically turning off the gradle daemon, -# but don't need to currently (used to be recomended in gradle 3.x, but no longer). -# Keeping this for future reference, and maybe we will need it again in the future. - -# gradle 6 began publishing maven-metadata.xml files using 256 and 512 sha checksums, but nexus 3 does not -# support that yet (although nexus 2 does) - see https://issues.sonatype.org/browse/NEXUS-23603 -# until it does, we need to set this property as our current snapshots are unusable -systemProp.org.gradle.internal.publish.checksums.insecure=true