-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update to Gradle 7 * Add `checkPOMdependencies` task to test that no new dependencies were added * Update examples to Gradle 7 * Disable the filesystem watching * Try Gradle 7.0.2 * fix `provided` configuration * Extract `ComparePOMWithLatestReleasedTask` * Add missing file
- Loading branch information
Showing
48 changed files
with
254 additions
and
217 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -46,6 +46,7 @@ node_modules/ | |
|
||
.gradle/ | ||
build/ | ||
!buildSrc/src/main/groovy/org/testcontainers/build | ||
out/ | ||
*.class | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
plugins { | ||
id 'java-gradle-plugin' | ||
} | ||
|
||
repositories { | ||
mavenCentral() | ||
} |
35 changes: 35 additions & 0 deletions
35
buildSrc/src/main/groovy/org/testcontainers/build/ComparePOMWithLatestReleasedTask.groovy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
package org.testcontainers.build | ||
|
||
import org.gradle.api.DefaultTask | ||
import org.gradle.api.tasks.Input | ||
import org.gradle.api.tasks.TaskAction | ||
|
||
class ComparePOMWithLatestReleasedTask extends DefaultTask { | ||
|
||
@Input | ||
Set<String> ignore = [] | ||
|
||
@TaskAction | ||
def doCompare() { | ||
def rootNode = new XmlSlurper().parse(project.tasks.generatePomFileForMavenJavaPublication.destination) | ||
|
||
def artifactId = rootNode.artifactId.text() | ||
|
||
def latestRelease = new XmlSlurper() | ||
.parse("https://repo1.maven.org/maven2/org/testcontainers/${artifactId}/maven-metadata.xml") | ||
.versioning.release.text() | ||
|
||
def releasedRootNode = new XmlSlurper() | ||
.parse("https://repo1.maven.org/maven2/org/testcontainers/${artifactId}/${latestRelease}/${artifactId}-${latestRelease}.pom") | ||
|
||
Set<String> dependencies = releasedRootNode.dependencies.children() | ||
.collect { "${it.groupId.text()}:${it.artifactId.text()}".toString() } | ||
|
||
for (dependency in rootNode.dependencies.children()) { | ||
def coordinates = "${dependency.groupId.text()}:${dependency.artifactId.text()}".toString() | ||
if (!dependencies.contains(coordinates) && !ignore.contains(coordinates)) { | ||
throw new IllegalStateException("A new dependency '${coordinates}' has been added to 'org.testcontainers:${artifactId}' - if this was intentional please add it to the ignore list in ${project.buildFile}") | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.5-bin.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.0.2-bin.zip | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
org.gradle.parallel=false | ||
org.gradle.caching=true | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
description = "TestContainers :: Cassandra" | ||
|
||
dependencies { | ||
compile project(":database-commons") | ||
compile "com.datastax.cassandra:cassandra-driver-core:3.7.1" | ||
api project(":database-commons") | ||
api "com.datastax.cassandra:cassandra-driver-core:3.7.1" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
description = "Testcontainers :: JDBC :: ClickHouse" | ||
|
||
dependencies { | ||
compile project(':testcontainers') | ||
compile project(':jdbc') | ||
api project(':testcontainers') | ||
api project(':jdbc') | ||
|
||
testCompile project(':jdbc-test') | ||
testCompile 'ru.yandex.clickhouse:clickhouse-jdbc:0.2.4' | ||
testImplementation project(':jdbc-test') | ||
testImplementation 'ru.yandex.clickhouse:clickhouse-jdbc:0.2.4' | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
description = "Testcontainers :: JDBC :: CockroachDB" | ||
|
||
dependencies { | ||
compile project(':jdbc') | ||
api project(':jdbc') | ||
|
||
testCompile project(':jdbc-test') | ||
testCompile 'org.postgresql:postgresql:42.2.12' | ||
testImplementation project(':jdbc-test') | ||
testImplementation 'org.postgresql:postgresql:42.2.12' | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
description = "Testcontainers :: Couchbase" | ||
|
||
dependencies { | ||
compile project(':testcontainers') | ||
api project(':testcontainers') | ||
|
||
testCompile 'com.couchbase.client:java-client:2.7.15' | ||
testImplementation 'com.couchbase.client:java-client:2.7.15' | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
description = "Testcontainers :: Database-Commons" | ||
|
||
dependencies { | ||
compile project(':testcontainers') | ||
api project(':testcontainers') | ||
|
||
testCompile 'org.assertj:assertj-core:3.19.0' | ||
testImplementation 'org.assertj:assertj-core:3.19.0' | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
description = "Testcontainers :: JDBC :: DB2" | ||
|
||
dependencies { | ||
compile project(':jdbc') | ||
api project(':jdbc') | ||
|
||
testCompile project(':jdbc-test') | ||
testCompile 'com.ibm.db2:jcc:11.5.0.0' | ||
testImplementation project(':jdbc-test') | ||
testImplementation 'com.ibm.db2:jcc:11.5.0.0' | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
description = "Testcontainers :: Dynalite" | ||
|
||
dependencies { | ||
compile project(':testcontainers') | ||
api project(':testcontainers') | ||
|
||
compileOnly 'com.amazonaws:aws-java-sdk-dynamodb:1.11.1030' | ||
testCompile 'com.amazonaws:aws-java-sdk-dynamodb:1.11.1030' | ||
testImplementation 'com.amazonaws:aws-java-sdk-dynamodb:1.11.1030' | ||
|
||
testCompile 'org.rnorth.visible-assertions:visible-assertions:2.1.2' | ||
testImplementation 'org.rnorth.visible-assertions:visible-assertions:2.1.2' | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
description = "TestContainers :: elasticsearch" | ||
|
||
dependencies { | ||
compile project(':testcontainers') | ||
testCompile "org.elasticsearch.client:elasticsearch-rest-client:7.13.0" | ||
testCompile "org.elasticsearch.client:transport:7.12.1" | ||
testCompile 'org.rnorth.visible-assertions:visible-assertions:2.1.2' | ||
api project(':testcontainers') | ||
testImplementation "org.elasticsearch.client:elasticsearch-rest-client:7.13.0" | ||
testImplementation "org.elasticsearch.client:transport:7.12.1" | ||
testImplementation 'org.rnorth.visible-assertions:visible-assertions:2.1.2' | ||
} |
Oops, something went wrong.