Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade gradle #495

Merged
merged 9 commits into from
Jul 18, 2024
Merged
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ ext {

tasks.named('wrapper') {
distributionType = Wrapper.DistributionType.ALL
gradleVersion = '6.9.1'
gradleVersion = '7.6.4'
}

gradle.projectsEvaluated {
Expand Down
4 changes: 2 additions & 2 deletions dap4/d4ts/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ dependencies {

compileOnly 'org.slf4j:slf4j-api'

runtime 'org.apache.logging.log4j:log4j-slf4j-impl'
runtime 'org.apache.logging.log4j:log4j-web'
runtimeOnly 'org.apache.logging.log4j:log4j-slf4j-impl'
runtimeOnly 'org.apache.logging.log4j:log4j-web'

compileOnly 'org.slf4j:slf4j-api'
}
Expand Down
2 changes: 1 addition & 1 deletion gradle/any/shared-mvn-coords.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ ext {
// plugin version management
buildPlugins = [:]
buildPlugins.gretty = 'org.gretty:gretty:3.0.9'
buildPlugins.shadow = 'com.github.jengelman.gradle.plugins:shadow:5.2.0'
buildPlugins.shadow = 'gradle.plugin.com.github.johnrengelman:shadow:7.1.2'
buildPlugins.sonarqube = 'org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:3.0'
buildPlugins.spotless = 'com.diffplug.spotless:spotless-plugin-gradle:4.5.1'
buildPlugins.protobuf = 'com.google.protobuf:protobuf-gradle-plugin:0.8.18'
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.9.1-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.4-all.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
17 changes: 9 additions & 8 deletions opendap/dtswar/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,19 @@ apply from: "$rootDir/gradle/any/war-published.gradle"
dependencies {
implementation enforcedPlatform(project(':tds-platform'))

compile project(':opendap:opendap-servlet')
implementation project(':opendap:opendap-servlet')

compile 'edu.ucar:cdm-core'
compile 'edu.ucar:opendap'
compile 'org.slf4j:slf4j-api'
implementation 'edu.ucar:cdm-core'
implementation 'edu.ucar:opendap'
implementation 'org.jdom:jdom2'
implementation 'org.slf4j:slf4j-api'

providedCompile "jakarta.servlet:jakarta.servlet-api:${depVersion.javaxServletApi}"

runtime 'org.apache.taglibs:taglibs-standard-spec'
runtime 'org.apache.taglibs:taglibs-standard-impl'
runtimeOnly 'org.apache.taglibs:taglibs-standard-spec'
runtimeOnly 'org.apache.taglibs:taglibs-standard-impl'


runtime 'org.apache.logging.log4j:log4j-slf4j-impl'
runtime 'org.apache.logging.log4j:log4j-web'
runtimeOnly 'org.apache.logging.log4j:log4j-slf4j-impl'
runtimeOnly 'org.apache.logging.log4j:log4j-web'
}
7 changes: 4 additions & 3 deletions opendap/server/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@ dependencies {
implementation enforcedPlatform(project(':tds-platform'))
testImplementation enforcedPlatform (project(':tds-testing-platform'))

compile 'edu.ucar:cdm-core'
compile 'edu.ucar:opendap'
compile 'org.slf4j:slf4j-api'
implementation 'edu.ucar:cdm-core'
implementation 'edu.ucar:opendap'
implementation 'org.jdom:jdom2'
implementation 'org.slf4j:slf4j-api'

compileOnly 'jakarta.servlet:jakarta.servlet-api'

Expand Down
35 changes: 20 additions & 15 deletions tdcommon/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,26 +8,27 @@ apply from: "$rootDir/gradle/any/protobuf.gradle"
dependencies {
implementation enforcedPlatform(project(':tds-platform'))
testImplementation enforcedPlatform (project(':tds-testing-platform'))
compile 'edu.ucar:cdm-core'
compile 'edu.ucar:cdm-s3'
compile 'edu.ucar:grib'
compile 'org.jdom:jdom2'
implementation 'edu.ucar:cdm-core'
implementation 'edu.ucar:cdm-s3'
implementation 'edu.ucar:grib'
implementation 'org.jdom:jdom2'

compile 'jakarta.validation:jakarta.validation-api'
compile 'jakarta.annotation:jakarta.annotation-api'
implementation 'jakarta.validation:jakarta.validation-api'
implementation 'jakarta.annotation:jakarta.annotation-api'

compile 'org.quartz-scheduler:quartz'
compile 'net.openhft:chronicle-map'
compile 'com.google.code.findbugs:jsr305'
compile 'com.google.guava:guava'
compile 'com.google.protobuf:protobuf-java'
implementation 'org.quartz-scheduler:quartz'
implementation 'net.openhft:chronicle-map'
implementation 'com.google.code.findbugs:jsr305'
implementation 'com.google.guava:guava'
implementation 'com.google.protobuf:protobuf-java'
implementation 'com.google.re2j:re2j'

compile 'org.slf4j:slf4j-api'
implementation 'org.slf4j:slf4j-api'

// Spring
compile 'org.springframework:spring-core'
compile 'org.springframework:spring-context'
compile 'org.springframework:spring-beans'
implementation 'org.springframework:spring-core'
implementation 'org.springframework:spring-context'
implementation 'org.springframework:spring-beans'

// Testing
testImplementation 'edu.ucar:cdm-test-utils' // Contains stuff like the JUnit @Category classes.
Expand All @@ -43,3 +44,7 @@ spotless {
targetExclude('src/main/java/thredds/server/catalog/tracker/ConfigCatalogExtProto.java')
}
}

tasks.named('sourceJar').configure {
dependsOn('generateProto')
}
37 changes: 17 additions & 20 deletions tdm/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,29 +13,26 @@ apply plugin: 'com.github.johnrengelman.shadow'
dependencies {
implementation enforcedPlatform(project(':tds-platform'))

compile project(':tdcommon')
compile 'edu.ucar:httpservices'
compile 'edu.ucar:cdm-core'
compile 'edu.ucar:grib'

compile 'org.apache.httpcomponents:httpclient'
compile 'org.jdom:jdom2'
compile 'org.springframework:spring-beans'
compile 'org.springframework:spring-core'
compile 'org.springframework:spring-context'
compile 'com.google.protobuf:protobuf-java'
compile 'com.beust:jcommander'
compile 'com.google.guava:guava'

compile 'org.slf4j:slf4j-api'
runtime 'org.apache.logging.log4j:log4j-slf4j-impl'
implementation project(':tdcommon')
implementation 'edu.ucar:httpservices'
implementation 'edu.ucar:cdm-core'
implementation 'edu.ucar:grib'

implementation 'org.apache.httpcomponents:httpclient'
implementation 'org.jdom:jdom2'
implementation 'org.springframework:spring-beans'
implementation 'org.springframework:spring-core'
implementation 'org.springframework:spring-context'
implementation 'com.google.protobuf:protobuf-java'
implementation 'com.beust:jcommander'
implementation 'com.google.guava:guava'
implementation 'com.google.re2j:re2j'

implementation 'org.slf4j:slf4j-api'
implementation 'org.apache.logging.log4j:log4j-slf4j-impl'
}

shadowJar {
baseName = 'tdmFat'
setArchiveBaseName('tdmFat')
classifier ''
setArchiveClassifier ''
doFirst {
manifest.attributes jar.manifest.attributes
}
Expand Down
17 changes: 9 additions & 8 deletions tds-ugrid/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,19 @@ apply from: "$rootDir/gradle/any/java-published.gradle"

dependencies {
implementation enforcedPlatform (project(':tds-platform'))
testCompile enforcedPlatform (project(':tds-testing-platform'))
testImplementation enforcedPlatform (project(':tds-testing-platform'))

compile 'edu.ucar:cdm-core'
compile 'edu.ucar:cdm-s3'
implementation 'edu.ucar:cdm-core'
implementation 'edu.ucar:cdm-s3'
implementation 'colt:colt:1.2.0'
implementation 'com.google.guava:guava'

// Testing
testCompile project(':tds-test-utils');
testCompile 'edu.ucar:cdm-test-utils' // Contains stuff like the JUnit @Category classes.
testCompile 'junit:junit'
testCompile 'com.google.truth:truth'
testImplementation project(':tds-test-utils');
testImplementation 'edu.ucar:cdm-test-utils' // Contains stuff like the JUnit @Category classes.
testImplementation 'junit:junit'
testImplementation 'com.google.truth:truth'

// Logging
compile 'org.slf4j:slf4j-api'
implementation 'org.slf4j:slf4j-api'
}
8 changes: 4 additions & 4 deletions tds-ui/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ apply plugin: 'application'

dependencies {
implementation enforcedPlatform(project(':tds-platform'))
testCompile enforcedPlatform(project(':tds-testing-platform'))
testImplementation enforcedPlatform(project(':tds-testing-platform'))

runtime 'edu.ucar:uicdm'
runtime 'edu.ucar:cdm-s3'
runtime project(':tds-ugrid')
runtimeOnly 'edu.ucar:uicdm'
runtimeOnly 'edu.ucar:cdm-s3'
runtimeOnly project(':tds-ugrid')
}

application {
Expand Down
Loading
Loading