Skip to content

Commit e117654

Browse files
committed
Upgrade gradle plugins and improve SBOMs
1 parent bcaf986 commit e117654

File tree

6 files changed

+16
-12
lines changed

6 files changed

+16
-12
lines changed

dap4/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ dependencies {
1515
implementation(project(":cdm-core"))
1616
implementation(project(":httpservices"))
1717

18-
implementation(libs.httpcomponents.api)
18+
implementation(libs.httpcomponents.httpclient)
1919
implementation(libs.slf4j.api)
2020

2121
testImplementation(platform(project(":netcdf-java-testing-platform")))

gradle/libs.versions.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ grpc-protobuf = { module = "io.grpc:grpc-protobuf", version.ref = "grpc" }
6464
grpc-stub = { module = "io.grpc:grpc-stub", version.ref = "grpc" }
6565
grpc-testing = { module = "io.grpc:grpc-testing", version.ref = "grpc" }
6666
guava = { module = "com.google.guava:guava", version.ref = "guava" }
67-
httpcomponents-api = { module = "org.apache.httpcomponents:httpclient", version.ref = "httpcomponents" }
67+
httpcomponents-httpclient = { module = "org.apache.httpcomponents:httpclient", version.ref = "httpcomponents" }
6868
httpcomponents-httpmime = { module = "org.apache.httpcomponents:httpmime", version.ref = "httpcomponents" }
6969
jackson-bom = { module = "com.fasterxml.jackson:jackson-bom", version.ref = "jackson" }
7070
jackson-core = { module = "com.fasterxml.jackson.core:jackson-core" }
@@ -112,9 +112,9 @@ logback-classic = { module = "ch.qos.logback:logback-classic", version.ref = "lo
112112

113113
[plugins]
114114
# versions = { id = "com.github.ben-manes.versions", version = "0.45.0" }
115-
cyclonedx-bom = { id = "org.cyclonedx.bom", version = "3.0.1" }
115+
cyclonedx-bom = { id = "org.cyclonedx.bom", version = "3.1.0" }
116116
execfork = { id = "com.github.psxpaul.execfork", version = "0.2.2"}
117117
javacc = { id = "org.javacc.javacc", version = "4.0.1" }
118118
protobuf = { id = "com.google.protobuf", version = "0.9.5" }
119-
shadow = { id = "com.gradleup.shadow", version = "9.2.2" }
119+
shadow = { id = "com.gradleup.shadow", version = "9.3.1" }
120120
spotless = { id = "com.diffplug.spotless", version = "8.0.0" }

httpservices/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ dependencies {
1313
implementation(platform(project(":netcdf-java-platform")))
1414

1515
api(libs.guava)
16-
api(libs.httpcomponents.api)
16+
api(libs.httpcomponents.httpclient)
1717

1818
implementation(libs.findbugs.jsr305)
1919
implementation(libs.httpcomponents.httpmime)

netcdf-java-platform/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ dependencies {
2828
api(libs.grpc.protobuf)
2929
api(libs.grpc.stub)
3030
api(libs.guava)
31-
api(libs.httpcomponents.api)
31+
api(libs.httpcomponents.httpclient)
3232
api(libs.httpcomponents.httpmime)
3333
api(libs.jdom2)
3434
api(libs.jj2000)

uber-jars/build.gradle.kts

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -128,26 +128,29 @@ uberJarTasks.forEach {
128128

129129
val netcdfAllSbom =
130130
tasks.register<CyclonedxDirectTask>("netcdfAllSbom") {
131+
componentName = "netcdfAll"
131132
group = "build"
132133
includeConfigs = listOf("netcdfAll")
133-
xmlOutput = artifactOutputLocation.get().file("netcdfAll-sbom.xml")
134-
jsonOutput = artifactOutputLocation.get().file("netcdfAll-sbom.json")
134+
xmlOutput = artifactOutputLocation.get().file("netcdfAll-${project.version}-sbom.xml")
135+
jsonOutput = artifactOutputLocation.get().file("netcdfAll-${project.version}-sbom.json")
135136
}
136137

137138
val ncIdvSbom =
138139
tasks.register<CyclonedxDirectTask>("ncIdvSbom") {
140+
componentName = "ncIdv"
139141
group = "build"
140142
includeConfigs = listOf("ncIdv")
141-
xmlOutput = artifactOutputLocation.get().file("ncIdv-sbom.xml")
142-
jsonOutput = artifactOutputLocation.get().file("ncIdv-sbom.json")
143+
xmlOutput = artifactOutputLocation.get().file("ncIdv-${project.version}-sbom.xml")
144+
jsonOutput = artifactOutputLocation.get().file("ncIdv-${project.version}-sbom.json")
143145
}
144146

145147
val toolsUISbom =
146148
tasks.register<CyclonedxDirectTask>("toolsUISbom") {
149+
componentName = "toolsUI"
147150
group = "build"
148151
includeConfigs = listOf("toolsUI")
149-
xmlOutput = artifactOutputLocation.get().file("toolsUI-sbom.xml")
150-
jsonOutput = artifactOutputLocation.get().file("toolsUI-sbom.json")
152+
xmlOutput = artifactOutputLocation.get().file("toolsUI-${project.version}-sbom.xml")
153+
jsonOutput = artifactOutputLocation.get().file("toolsUI-${project.version}-sbom.json")
151154
}
152155

153156
val buildSboms = tasks.register("buildSboms") { dependsOn(netcdfAllSbom, ncIdvSbom, toolsUISbom) }

uicdm/build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ dependencies {
4747
runtimeOnly(project(":cdm-zarr"))
4848
runtimeOnly(project(":dap4"))
4949
runtimeOnly(project(":libaec-native"))
50+
runtimeOnly(project(":libblosc2-native"))
5051

5152
runtimeOnly(libs.logback.classic)
5253

0 commit comments

Comments
 (0)