Skip to content

Commit

Permalink
Exclude org.testcontainers.shaded.* package and upgrade deps
Browse files Browse the repository at this point in the history
Add exclusion in `azure`, `couchbase`, `hivemq`, `solr` modules.

Also, shadow and test dependencies below are upgraded:
* Upgrade okhttp version to 4.10.0
* Upgrade javassist version to 3.29.0-GA
* Upgrade zip4j version to 2.11.1
* Upgrade kubernetes-client version to 6.0.0
  • Loading branch information
eddumelendez committed Aug 26, 2022
1 parent bd22f1e commit 198a9ed
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 8 deletions.
8 changes: 7 additions & 1 deletion modules/azure/build.gradle
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
description = "Testcontainers :: Azure"

tasks.japicmp {
packageExcludes = [
"org.testcontainers.shaded.*",
]
}

dependencies {
api project(':testcontainers')
// TODO use JDK's HTTP client and/or Apache HttpClient5
shaded 'com.squareup.okhttp3:okhttp:3.14.9'
shaded 'com.squareup.okhttp3:okhttp:4.10.0'

testImplementation 'org.assertj:assertj-core:3.23.1'
testImplementation 'com.azure:azure-cosmos:4.34.0'
Expand Down
8 changes: 7 additions & 1 deletion modules/couchbase/build.gradle
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
description = "Testcontainers :: Couchbase"

tasks.japicmp {
packageExcludes = [
"org.testcontainers.shaded.*",
]
}

dependencies {
api project(':testcontainers')
// TODO use JDK's HTTP client and/or Apache HttpClient5
shaded 'com.squareup.okhttp3:okhttp:3.14.9'
shaded 'com.squareup.okhttp3:okhttp:4.10.0'

testImplementation 'com.couchbase.client:java-client:3.3.3'
testImplementation 'org.awaitility:awaitility:4.2.0'
Expand Down
10 changes: 8 additions & 2 deletions modules/hivemq/build.gradle
Original file line number Diff line number Diff line change
@@ -1,15 +1,21 @@
description = "TestContainers :: HiveMQ"

tasks.japicmp {
packageExcludes = [
"org.testcontainers.shaded.*",
]
}

dependencies {
api(project(":testcontainers"))
api("org.jetbrains:annotations:23.0.0")

shaded("org.apache.commons:commons-lang3:3.12.0")
shaded("commons-io:commons-io:2.11.0")
shaded("org.javassist:javassist:3.28.0-GA")
shaded("org.javassist:javassist:3.29.0-GA")
shaded("org.jboss.shrinkwrap:shrinkwrap-api:1.2.6")
shaded("org.jboss.shrinkwrap:shrinkwrap-impl-base:1.2.6")
shaded("net.lingala.zip4j:zip4j:2.10.0")
shaded("net.lingala.zip4j:zip4j:2.11.1")

testImplementation("org.junit.jupiter:junit-jupiter-api:5.9.0")
testImplementation(project(":junit-jupiter"))
Expand Down
2 changes: 1 addition & 1 deletion modules/k3s/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ dependencies {
// Any >2.8 version here is not compatible with jackson-databind 2.8.x.
shaded 'com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.8.8'

testImplementation 'io.fabric8:kubernetes-client:5.12.2'
testImplementation 'io.fabric8:kubernetes-client:6.0.0'
testImplementation 'io.kubernetes:client-java:16.0.0'
testImplementation 'org.assertj:assertj-core:3.23.1'
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import io.fabric8.kubernetes.api.model.ProbeBuilder;
import io.fabric8.kubernetes.client.Config;
import io.fabric8.kubernetes.client.DefaultKubernetesClient;
import io.fabric8.kubernetes.client.dsl.Readiable;
import io.fabric8.kubernetes.client.dsl.Resource;
import lombok.extern.slf4j.Slf4j;
import org.junit.Test;
import org.testcontainers.containers.output.Slf4jLogConsumer;
Expand Down Expand Up @@ -55,7 +55,7 @@ public void shouldStartAndHaveListableNode() {
client.pods().inNamespace("default").withName("helloworld").waitUntilReady(30, TimeUnit.SECONDS);

assertThat(client.pods().inNamespace("default").withName("helloworld"))
.extracting(Readiable::isReady)
.extracting(Resource::isReady)
.isEqualTo(true);
}
}
Expand Down
8 changes: 7 additions & 1 deletion modules/solr/build.gradle
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
description = "Testcontainers :: Solr"

tasks.japicmp {
packageExcludes = [
"org.testcontainers.shaded.*",
]
}

dependencies {
api project(':testcontainers')
// TODO use JDK's HTTP client and/or Apache HttpClient5
shaded 'com.squareup.okhttp3:okhttp:4.9.3'
shaded 'com.squareup.okhttp3:okhttp:4.10.0'

testImplementation 'org.apache.solr:solr-solrj:8.11.1'
testImplementation 'org.assertj:assertj-core:3.23.1'
Expand Down

0 comments on commit 198a9ed

Please sign in to comment.