Skip to content

Commit 99f5fac

Browse files
slovdahlrnorth
andauthored
Docs: Use testImplementation instead of deprecated testCompile (#4054)
Co-authored-by: Richard North <[email protected]>
1 parent 3aa5fbf commit 99f5fac

38 files changed

+51
-51
lines changed
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
description = "Examples for docs"
22

33
dependencies {
4-
testCompile "junit:junit:4.12"
5-
testCompile project(":testcontainers")
6-
testCompile project(":selenium")
7-
testCompile project(":mysql")
4+
testImplementation "junit:junit:4.12"
5+
testImplementation project(":testcontainers")
6+
testImplementation project(":selenium")
7+
testImplementation project(":mysql")
88

9-
testCompile 'mysql:mysql-connector-java:8.0.21'
10-
testCompile "org.seleniumhq.selenium:selenium-api:3.141.59"
11-
testCompile 'org.assertj:assertj-core:3.15.0'
9+
testImplementation 'mysql:mysql-connector-java:8.0.21'
10+
testImplementation "org.seleniumhq.selenium:selenium-api:3.141.59"
11+
testImplementation 'org.assertj:assertj-core:3.15.0'
1212
}

docs/examples/junit4/redis/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ description = "Examples for docs"
33
dependencies {
44
compile "io.lettuce:lettuce-core:5.1.1.RELEASE"
55

6-
testCompile "junit:junit:4.12"
7-
testCompile project(":testcontainers")
6+
testImplementation "junit:junit:4.12"
7+
testImplementation project(":testcontainers")
88
}

docs/examples/junit5/redis/build.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ description = "Examples for docs"
33
dependencies {
44
compile "io.lettuce:lettuce-core:5.1.1.RELEASE"
55

6-
testCompile "org.junit.jupiter:junit-jupiter-api:5.4.2"
7-
testCompile "org.junit.jupiter:junit-jupiter-params:5.4.2"
6+
testImplementation "org.junit.jupiter:junit-jupiter-api:5.4.2"
7+
testImplementation "org.junit.jupiter:junit-jupiter-params:5.4.2"
88
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:5.4.2"
9-
testCompile project(":testcontainers")
10-
testCompile project(":junit-jupiter")
9+
testImplementation project(":testcontainers")
10+
testImplementation project(":junit-jupiter")
1111
}

docs/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Testcontainers is distributed as separate JARs with a common version number:
3232
For the core library, the latest Maven/Gradle dependency is as follows:
3333

3434
```groovy tab='Gradle'
35-
testCompile "org.testcontainers:testcontainers:{{latest_version}}"
35+
testImplementation "org.testcontainers:testcontainers:{{latest_version}}"
3636
```
3737

3838
```xml tab='Maven'

docs/modules/databases/cassandra.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public class SomeTest {
3838
Add the following dependency to your `pom.xml`/`build.gradle` file:
3939

4040
```groovy tab='Gradle'
41-
testCompile "org.testcontainers:cassandra:{{latest_version}}"
41+
testImplementation "org.testcontainers:cassandra:{{latest_version}}"
4242
```
4343

4444
```xml tab='Maven'

docs/modules/databases/clickhouse.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
Add the following dependency to your `pom.xml`/`build.gradle` file:
66

77
```groovy tab='Gradle'
8-
testCompile "org.testcontainers:clickhouse:{{latest_version}}"
8+
testImplementation "org.testcontainers:clickhouse:{{latest_version}}"
99
```
1010

1111
```xml tab='Maven'

docs/modules/databases/cockroachdb.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ See [Database containers](./index.md) for documentation and usage that is common
1010
Add the following dependency to your `pom.xml`/`build.gradle` file:
1111

1212
```groovy tab='Gradle'
13-
testCompile "org.testcontainers:cockroachdb:{{latest_version}}"
13+
testImplementation "org.testcontainers:cockroachdb:{{latest_version}}"
1414
```
1515

1616
```xml tab='Maven'

docs/modules/databases/couchbase.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Running Couchbase as a stand-in in a test:
3333
Add the following dependency to your `pom.xml`/`build.gradle` file:
3434

3535
```groovy tab='Gradle'
36-
testCompile "org.testcontainers:couchbase:{{latest_version}}"
36+
testImplementation "org.testcontainers:couchbase:{{latest_version}}"
3737
```
3838

3939
```xml tab='Maven'

docs/modules/databases/db2.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public class SomeTest {
3434
Add the following dependency to your `pom.xml`/`build.gradle` file:
3535

3636
```groovy tab='Gradle'
37-
testCompile "org.testcontainers:db2:{{latest_version}}"
37+
testImplementation "org.testcontainers:db2:{{latest_version}}"
3838
```
3939
4040
```xml tab='Maven'

docs/modules/databases/dynalite.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ In part, because it's light and quick to run. Also, please see the [reasons give
3030
Add the following dependency to your `pom.xml`/`build.gradle` file:
3131

3232
```groovy tab='Gradle'
33-
testCompile "org.testcontainers:dynalite:{{latest_version}}"
33+
testImplementation "org.testcontainers:dynalite:{{latest_version}}"
3434
```
3535

3636
```xml tab='Maven'

0 commit comments

Comments
 (0)