Skip to content

Commit b4d8972

Browse files
authored
Merge pull request #1457 from lesserwhirls/deps
Upgrade a few 3rd party dependencies
2 parents 64dfc75 + 47ebf23 commit b4d8972

7 files changed

Lines changed: 20 additions & 9 deletions

File tree

cdm-test/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ dependencies {
2424
testImplementation 'org.apache.commons:commons-compress'
2525
testImplementation 'edu.ucar:jj2000'
2626
testImplementation 'org.jdom:jdom2'
27+
testImplementation 'com.google.code.findbugs:jsr305'
2728
testImplementation 'com.google.guava:guava'
2829
testImplementation 'com.google.re2j:re2j'
2930
testImplementation 'software.amazon.awssdk:s3'

cdm/zarr/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ dependencies {
1313
implementation 'org.slf4j:slf4j-api'
1414
implementation 'com.fasterxml.jackson.core:jackson-core'
1515
implementation 'com.fasterxml.jackson.core:jackson-databind'
16+
implementation 'com.google.code.findbugs:jsr305'
1617
implementation 'com.google.guava:guava'
1718

1819
testImplementation('software.amazon.awssdk:s3') {

gradle/root/fatJars.gradle

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,17 @@ apply plugin: 'com.gradleup.shadow'
2727
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
2828

2929
configurations {
30-
ncIdv
31-
netcdfAll
32-
toolsUI
30+
// set target attribute to ensure right guava variant is selected
31+
// https://stackoverflow.com/a/77399208/2345036
32+
ncIdv {
33+
attributes.attribute(TargetJvmEnvironment.TARGET_JVM_ENVIRONMENT_ATTRIBUTE, objects.named(TargetJvmEnvironment.class, TargetJvmEnvironment.STANDARD_JVM))
34+
}
35+
netcdfAll {
36+
attributes.attribute(TargetJvmEnvironment.TARGET_JVM_ENVIRONMENT_ATTRIBUTE, objects.named(TargetJvmEnvironment.class, TargetJvmEnvironment.STANDARD_JVM))
37+
}
38+
toolsUI {
39+
attributes.attribute(TargetJvmEnvironment.TARGET_JVM_ENVIRONMENT_ATTRIBUTE, objects.named(TargetJvmEnvironment.class, TargetJvmEnvironment.STANDARD_JVM))
40+
}
3341
}
3442

3543
dependencies {

httpservices/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ dependencies {
1212
api 'org.apache.httpcomponents:httpcore'
1313

1414
implementation 'org.apache.httpcomponents:httpmime'
15+
implementation 'com.google.code.findbugs:jsr305'
1516
implementation 'com.google.re2j:re2j'
1617
implementation 'org.slf4j:slf4j-api'
1718

netcdf-java-platform/build.gradle

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ javaPlatform {
99
}
1010

1111
dependencies {
12-
def awsVersion = '2.17.290'
13-
def jacksonVersion = '2.16.1'
12+
def awsVersion = '2.31.76'
13+
def jacksonVersion = '2.19.1'
1414
api enforcedPlatform("software.amazon.awssdk:bom:${awsVersion}")
1515
api enforcedPlatform("com.fasterxml.jackson:jackson-bom:${jacksonVersion}")
1616
constraints {
@@ -20,15 +20,13 @@ dependencies {
2020
// general dependencies
2121
api "com.google.protobuf:protobuf-java:${depVersion.protobuf}"
2222
api "com.google.protobuf:protoc:${depVersion.protobuf}"
23-
api 'com.google.guava:guava:32.0.1-jre'
23+
api 'com.google.guava:guava:33.4.8-jre'
2424
api 'com.google.re2j:re2j:1.3'
2525
api 'org.jdom:jdom2:2.0.6.1'
2626
api 'joda-time:joda-time:2.12.7'
2727

2828
// netcdf4, dap4
29-
// Tricky dependency here. We need to make sure that we keep in-line with the version
30-
// that chronicle-map uses in the TDS, or else we see bad things happen on the TDS side.
31-
api 'net.java.dev.jna:jna:5.12.1'
29+
api 'net.java.dev.jna:jna:5.17.0'
3230

3331
// Annotations: Nullable
3432
api 'com.google.code.findbugs:jsr305:3.0.2'

netcdf4/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ dependencies {
1313
implementation project(':cdm:cdm-core')
1414
implementation 'net.java.dev.jna:jna'
1515
implementation 'org.slf4j:slf4j-api'
16+
implementation 'com.google.code.findbugs:jsr305'
1617
implementation 'com.google.guava:guava'
1718

1819
testImplementation project(':cdm-test-utils')

uicdm/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ dependencies {
3232
implementation 'org.apache.xmlbeans:xmlbeans'
3333
implementation 'org.jdom:jdom2'
3434
implementation 'org.apache.httpcomponents:httpclient'
35+
implementation 'com.google.code.findbugs:jsr305'
3536
implementation 'com.google.protobuf:protobuf-java'
3637
implementation 'com.google.re2j:re2j'
3738
implementation 'org.slf4j:slf4j-api'

0 commit comments

Comments
 (0)