Skip to content

Commit

Permalink
Remove groovy and spock test dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
tdrwenski committed Apr 18, 2024
1 parent 85cf8e6 commit b7b6f51
Show file tree
Hide file tree
Showing 10 changed files with 3 additions and 43 deletions.
4 changes: 2 additions & 2 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@ Once you are satisfied with your work, there is one last step to complete before

### <a name="#gh-style-guidelines"></a>Follow these Style Guidelines

#### Java, Groovy, and Gradle
We are using the [Google Java Style Guide](https://google.github.io/styleguide/javaguide.html) for Java, Groovy, and Gradle, with these exceptions and augmentations:
#### Java and Gradle
We are using the [Google Java Style Guide](https://google.github.io/styleguide/javaguide.html) for Java and Gradle, with these exceptions and augmentations:

1. The recommended line width is 120, not 100.
Modern screens are much wider than tall, so having wider lines allows more code to fit on a screen.
Expand Down
4 changes: 0 additions & 4 deletions cdm/core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ apply from: "$rootDir/gradle/any/dependencies.gradle"
apply from: "$rootDir/gradle/any/java-library.gradle"
apply from: "$rootDir/gradle/any/protobuf.gradle"

apply plugin: 'groovy' // For Spock tests.

dependencies {
api enforcedPlatform(project(':netcdf-java-platform'))
implementation 'commons-math:commons-math'
Expand All @@ -32,9 +30,7 @@ dependencies {
testImplementation 'com.google.truth:truth'
testImplementation 'commons-io:commons-io'
testImplementation 'junit:junit'
testImplementation 'org.codehaus.groovy:groovy-all' // for Spock.
testImplementation 'org.mockito:mockito-core'
testImplementation 'org.spockframework:spock-core'

testRuntimeOnly 'ch.qos.logback:logback-classic'
}
Expand Down
5 changes: 0 additions & 5 deletions cdm/misc/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ apply from: "$rootDir/gradle/any/dependencies.gradle"
apply from: "$rootDir/gradle/any/java-library.gradle"
apply from: "$rootDir/gradle/any/protobuf.gradle"

apply plugin: 'groovy' // For Spock tests.

dependencies {
api enforcedPlatform(project(':netcdf-java-platform'))
testImplementation enforcedPlatform(project(':netcdf-java-testing-platform'))
Expand All @@ -23,9 +21,6 @@ dependencies {

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

testImplementation 'org.codehaus.groovy:groovy-all' // for spock
testImplementation 'org.spockframework:spock-core'

testImplementation 'commons-io:commons-io'
testImplementation 'org.mockito:mockito-core'
testImplementation 'com.google.truth:truth'
Expand Down
4 changes: 0 additions & 4 deletions cdm/radial/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ ext.title = 'CDM radial library'
apply from: "$rootDir/gradle/any/dependencies.gradle"
apply from: "$rootDir/gradle/any/java-library.gradle"

apply plugin: 'groovy' // For Spock tests.

dependencies {
api enforcedPlatform(project(':netcdf-java-platform'))
testImplementation enforcedPlatform(project(':netcdf-java-testing-platform'))
Expand All @@ -21,8 +19,6 @@ dependencies {
testImplementation project(':cdm-test-utils')
testImplementation project(':netcdf4')

testImplementation 'org.codehaus.groovy:groovy-all' // for spock
testImplementation 'org.spockframework:spock-core'
testImplementation 'commons-io:commons-io'
testImplementation 'org.mockito:mockito-core'
testImplementation 'com.google.truth:truth'
Expand Down
2 changes: 0 additions & 2 deletions cdm/s3/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ ext.title = 'CDM S3 support library'
apply from: "$rootDir/gradle/any/dependencies.gradle"
apply from: "$rootDir/gradle/any/java-library.gradle"

apply plugin: 'groovy' // For Spock tests.

dependencies {
api enforcedPlatform(project(':netcdf-java-platform'))
testImplementation enforcedPlatform(project(':netcdf-java-testing-platform'))
Expand Down
2 changes: 1 addition & 1 deletion gradle/root/sonarqube.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ gradle.projectsEvaluated {
allprojects {
sonarqube {
properties {
properties['sonar.inclusions'] = '**/*.java, **/*.groovy' // Only scan Java and Groovy files.
properties['sonar.inclusions'] = '**/*.java' // Only scan Java files.
properties['sonar.exclusions'] = '**/*Proto.java' // Don't analyze protobuf-generated code.

// We're already reporting test failures and code coverage in Jenkins; we don't need to do it in Sonar
Expand Down
7 changes: 0 additions & 7 deletions legacy/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ ext.url = 'https://www.unidata.ucar.edu/software/tds/v4.6/TDS.html'
apply from: "$rootDir/gradle/any/dependencies.gradle"
apply from: "$rootDir/gradle/any/java-library.gradle"

apply plugin: 'groovy' // For Spock tests.

dependencies {
api enforcedPlatform(project(':netcdf-java-platform'))
testImplementation enforcedPlatform(project(':netcdf-java-testing-platform'))
Expand All @@ -24,10 +22,5 @@ dependencies {
compile 'com.amazonaws:aws-java-sdk-s3' // For CrawlableDatasetAmazonS3.

testImplementation project(':cdm-test-utils')
// These are all for Spock.
testImplementation 'org.spockframework:spock-core'
testImplementation 'org.codehaus.groovy:groovy-all'
testRuntimeOnly 'ch.qos.logback:logback-classic'
testRuntimeOnly 'cglib:cglib-nodep'
testRuntimeOnly 'org.objenesis:objenesis'
}
12 changes: 0 additions & 12 deletions netcdf-java-testing-platform/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,6 @@ dependencies {
// Fluent assertions for Java
api 'com.google.truth:truth:1.0'

// These two are for Spock.
api 'org.spockframework:spock-core:1.3-groovy-2.5'
api 'org.codehaus.groovy:groovy-all:2.5.12'

//mockito
api 'org.mockito:mockito-core:2.28.2'

Expand All @@ -33,14 +29,6 @@ dependencies {

// opendap, dap4, and httpservices
api 'org.testcontainers:testcontainers:1.19.7'

// In Spock, allows mocking of classes (in addition to interfaces).
// todo: remove with legacy in 6
runtime 'cglib:cglib-nodep:3.2.4'

// In Spock, allows mocking of classes without default constructor (together with CGLIB).
// todo: remove with legacy in 6
runtime 'org.objenesis:objenesis:2.4'
}
}

Expand Down
3 changes: 0 additions & 3 deletions netcdf4/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ ext.url = 'https://www.unidata.ucar.edu/software/netcdf/'

apply from: "$rootDir/gradle/any/dependencies.gradle"
apply from: "$rootDir/gradle/any/java-library.gradle"
apply plugin: 'groovy' // For Spock tests.
apply plugin: 'jacoco'

dependencies {
Expand All @@ -18,8 +17,6 @@ dependencies {
testImplementation project(':cdm-test-utils')

testImplementation 'com.google.truth:truth'
testImplementation 'org.codehaus.groovy:groovy-all' // for spock
testImplementation 'org.spockframework:spock-core'

testRuntimeOnly 'ch.qos.logback:logback-classic'
}
Expand Down
3 changes: 0 additions & 3 deletions uibase/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ ext.title = 'UI base library'

apply from: "$rootDir/gradle/any/dependencies.gradle"
apply from: "$rootDir/gradle/any/java-library.gradle"
apply plugin: 'groovy' // For Spock tests.

dependencies {
compile enforcedPlatform(project(':netcdf-java-platform'))
Expand Down Expand Up @@ -32,8 +31,6 @@ dependencies {
testImplementation project(':cdm:cdm-core')
testImplementation project(':cdm-test-utils')

testImplementation 'org.codehaus.groovy:groovy-all' // for spock
testImplementation 'org.spockframework:spock-core'
testImplementation 'commons-io:commons-io'
testImplementation 'org.mockito:mockito-core'
testImplementation 'com.google.truth:truth'
Expand Down

0 comments on commit b7b6f51

Please sign in to comment.