Skip to content

Commit

Permalink
Merge pull request #418 from Netflix/upgrade-gradle
Browse files Browse the repository at this point in the history
Upgrade to Gradle 7.5.1 and move to com.netflix.nebula.netflixoss
  • Loading branch information
rpalcolea authored Nov 8, 2022
2 parents 87d7a19 + e79500f commit 238f28f
Show file tree
Hide file tree
Showing 15 changed files with 83 additions and 82 deletions.
8 changes: 4 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@
*/

plugins {
id 'nebula.netflixoss' version '9.4.1'
id 'com.netflix.nebula.netflixoss' version '11.1.1'
}

subprojects {
apply plugin: 'nebula.netflixoss'
apply plugin: 'com.netflix.nebula.netflixoss'
apply plugin: 'java'

repositories {
Expand All @@ -33,8 +33,8 @@ subprojects {
group = "com.netflix.governator"

dependencies {
testCompile 'org.slf4j:slf4j-log4j12:1.7.2'
testCompile 'junit:junit:4.12'
testImplementation 'org.slf4j:slf4j-log4j12:1.7.2'
testImplementation 'junit:junit:4.12'
}

eclipse {
Expand Down
4 changes: 2 additions & 2 deletions governator-annotations/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
apply plugin: 'java'
apply plugin: 'java-library'

dependencies {
compile project(':governator-api')
api project(':governator-api')
}
4 changes: 2 additions & 2 deletions governator-api/build.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apply plugin: 'java'
apply plugin: 'java-library'
dependencies {
compile 'javax.inject:javax.inject:1'
api 'javax.inject:javax.inject:1'
}
8 changes: 4 additions & 4 deletions governator-archaius/build.gradle
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
apply plugin: 'java'
apply plugin: 'java-library'

dependencies {
compile project(':governator')
compile 'com.netflix.archaius:archaius-core:0.5.12'
api project(':governator')
api 'com.netflix.archaius:archaius-core:0.5.12'

testCompile project(':governator').sourceSets.test.output
testImplementation project(':governator').sourceSets.test.output
}
6 changes: 3 additions & 3 deletions governator-commons-cli/build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Establish version and status
apply plugin: 'java'
apply plugin: 'java-library'

dependencies {
compile project(':governator')
compile "commons-cli:commons-cli:1.2"
api project(':governator')
api "commons-cli:commons-cli:1.2"
}
24 changes: 12 additions & 12 deletions governator-core/build.gradle
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
apply plugin: 'java'
apply plugin: 'java-library'

dependencies {
compile project(':governator-api')
compile "javax.inject:javax.inject:1"
compile "org.slf4j:slf4j-api:${slf4j_version}"
compile "jakarta.annotation:jakarta.annotation-api:1.3.5"
compile "com.google.inject:guice:${guice_version}"
compile "com.google.inject.extensions:guice-multibindings:${guice_version}"
compile "com.google.inject.extensions:guice-grapher:${guice_version}" // should be provided - only if you want graphing
api project(':governator-api')
api "javax.inject:javax.inject:1"
api "org.slf4j:slf4j-api:${slf4j_version}"
api "jakarta.annotation:jakarta.annotation-api:1.3.5"
api "com.google.inject:guice:${guice_version}"
api "com.google.inject.extensions:guice-multibindings:${guice_version}"
api "com.google.inject.extensions:guice-grapher:${guice_version}" // should be provided - only if you want graphing

testCompile "org.hamcrest:hamcrest-core:${hamcrest_version}"
testCompile "org.hamcrest:hamcrest-library:${hamcrest_version}"
testCompile "org.mockito:mockito-all:1.9.5"
testCompile "com.google.code.findbugs:jsr305:3.0.0"
testImplementation "org.hamcrest:hamcrest-core:${hamcrest_version}"
testImplementation "org.hamcrest:hamcrest-library:${hamcrest_version}"
testImplementation "org.mockito:mockito-all:1.9.5"
testImplementation "com.google.code.findbugs:jsr305:3.0.0"

test {
useJUnit()
Expand Down
18 changes: 9 additions & 9 deletions governator-jersey/build.gradle
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
apply plugin: 'java'
apply plugin: 'java-library'

sourceCompatibility = 1.8
targetCompatibility = 1.8

dependencies {
compile project(':governator-core')
compile project(':governator-providers')
api project(':governator-core')
api project(':governator-providers')

compile "com.google.inject.extensions:guice-servlet:${guice_version}"
compile "javax.xml.bind:jaxb-api:${jaxb_version}"
api "com.google.inject.extensions:guice-servlet:${guice_version}"
api "javax.xml.bind:jaxb-api:${jaxb_version}"

compile 'com.sun.jersey:jersey-server:1.19'
compile 'com.sun.jersey.contribs:jersey-guice:1.19'
api 'com.sun.jersey:jersey-server:1.19'
api 'com.sun.jersey.contribs:jersey-guice:1.19'

compileOnly 'javax.servlet:javax.servlet-api:3.0.1'

testCompile'org.eclipse.jetty:jetty-servlet:9.4.33.v20201020'
testCompile project(':governator-jetty')
testImplementation 'org.eclipse.jetty:jetty-servlet:9.4.33.v20201020'
testImplementation project(':governator-jetty')
}
16 changes: 8 additions & 8 deletions governator-jetty/build.gradle
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
apply plugin: 'java'
apply plugin: 'java-library'

dependencies {
compile project(':governator-core')
compile "com.google.inject.extensions:guice-servlet:${guice_version}"
api project(':governator-core')
api "com.google.inject.extensions:guice-servlet:${guice_version}"

compile "javax.xml.bind:jaxb-api:${jaxb_version}"
api "javax.xml.bind:jaxb-api:${jaxb_version}"

compile 'com.sun.jersey:jersey-server:1.19'
compile 'org.eclipse.jetty:jetty-servlet:9.4.33.v20201020'
compile 'org.eclipse.jetty:jetty-webapp:9.4.33.v20201020'
api 'com.sun.jersey:jersey-server:1.19'
api 'org.eclipse.jetty:jetty-servlet:9.4.33.v20201020'
api 'org.eclipse.jetty:jetty-webapp:9.4.33.v20201020'
compileOnly "com.netflix.archaius:archaius2-api:${archaius2_version}"
compileOnly "com.netflix.archaius:archaius2-core:${archaius2_version}"

testCompile 'com.sun.jersey.contribs:jersey-guice:1.19'
testImplementation 'com.sun.jersey.contribs:jersey-guice:1.19'
}
20 changes: 10 additions & 10 deletions governator-legacy/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,27 @@ plugins {
id 'com.github.johnrengelman.shadow' version '5.1.0'
}

apply plugin: 'java'
apply plugin: 'java-library'

// Add a new configuration 'bundle' for fine grain control on what artifacts to shadow.
configurations {
bundle
compile.extendsFrom bundle
api.extendsFrom bundle
}

dependencies {
compile project(':governator-api')
compile project(':governator-core')
compile 'com.fasterxml.jackson.core:jackson-databind:2.4.3'
compile "javax.xml.bind:jaxb-api:${jaxb_version}"
api project(':governator-api')
api project(':governator-core')
api 'com.fasterxml.jackson.core:jackson-databind:2.4.3'
api "javax.xml.bind:jaxb-api:${jaxb_version}"

// ASM is being shaded
bundle 'org.ow2.asm:asm:7.2'

testCompile 'org.hamcrest:hamcrest-library:1.3'
testCompile 'com.tngtech.java:junit-dataprovider:1.11.0'
testCompile 'org.mockito:mockito-core:1.10.19'
testCompile "com.google.code.findbugs:jsr305:3.0.0"
testImplementation 'org.hamcrest:hamcrest-library:1.3'
testImplementation 'com.tngtech.java:junit-dataprovider:1.11.0'
testImplementation 'org.mockito:mockito-core:1.10.19'
testImplementation "com.google.code.findbugs:jsr305:3.0.0"
}

shadowJar {
Expand Down
6 changes: 3 additions & 3 deletions governator-providers/build.gradle
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
apply plugin: 'java'
apply plugin: 'java-library'

sourceCompatibility = 1.8
targetCompatibility = 1.8

dependencies {
compile "javax.inject:javax.inject:1"
compile "com.google.inject:guice:${guice_version}"
api "javax.inject:javax.inject:1"
api "com.google.inject:guice:${guice_version}"
}
12 changes: 6 additions & 6 deletions governator-servlet/build.gradle
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
apply plugin: 'java'
apply plugin: 'java-library'

dependencies {
compile project(':governator-core')
compile "com.google.inject.extensions:guice-servlet:${guice_version}"
api project(':governator-core')
api "com.google.inject.extensions:guice-servlet:${guice_version}"

compileOnly 'javax.servlet:javax.servlet-api:3.0.1'

testCompile "org.mockito:mockito-all:1.9.5"
testCompile 'com.sun.jersey.contribs:jersey-guice:1.19'
testCompile 'javax.servlet:javax.servlet-api:3.0.1'
testImplementation "org.mockito:mockito-all:1.9.5"
testImplementation 'com.sun.jersey.contribs:jersey-guice:1.19'
testImplementation 'javax.servlet:javax.servlet-api:3.0.1'
}
6 changes: 3 additions & 3 deletions governator-test-junit/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apply plugin: 'java'
apply plugin: 'java-library'

dependencies {
compile project(':governator-test')
compile 'junit:junit:4.12'
api project(':governator-test')
api 'junit:junit:4.12'
}
9 changes: 5 additions & 4 deletions governator-test-spock/build.gradle
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
apply plugin: 'groovy'
apply plugin: 'java-library'

dependencies {
compile project(':governator-test')
compile 'org.spockframework:spock-core:1.1-groovy-2.4'
compile 'com.cyrusinnovation:mockito-groovy-support:1.3'
compile 'cglib:cglib-nodep:3.2.2'
api project(':governator-test')
api 'org.spockframework:spock-core:1.1-groovy-2.4'
api 'com.cyrusinnovation:mockito-groovy-support:1.3'
api 'cglib:cglib-nodep:3.2.2'

}

Expand Down
22 changes: 11 additions & 11 deletions governator-test/build.gradle
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
apply plugin: 'java'
apply plugin: 'java-library'

dependencies {
compile project(':governator')
compile project(':governator-api')
compile project(':governator-core')
compile "com.netflix.archaius:archaius2-guice:${archaius2_version}"
compile ("com.netflix.archaius:archaius2-test:${archaius2_version}") {
api project(':governator')
api project(':governator-api')
api project(':governator-core')
api "com.netflix.archaius:archaius2-guice:${archaius2_version}"
api ("com.netflix.archaius:archaius2-test:${archaius2_version}") {
exclude module: 'junit'
}
compile "com.netflix.archaius:archaius2-api:${archaius2_version}"
compile "com.netflix.archaius:archaius2-core:${archaius2_version}"
compile 'org.apache.commons:commons-lang3:3.3.2'
compile 'org.mockito:mockito-core:1.9.5'
api "com.netflix.archaius:archaius2-api:${archaius2_version}"
api "com.netflix.archaius:archaius2-core:${archaius2_version}"
api 'org.apache.commons:commons-lang3:3.3.2'
api 'org.mockito:mockito-core:1.9.5'
compileOnly 'junit:junit:4.12'
testCompile 'junit:junit:4.12'
testImplementation 'junit:junit:4.12'

}
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.8.3-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-bin.zip

0 comments on commit 238f28f

Please sign in to comment.