Skip to content

Commit 459d2f6

Browse files
authored
Use testCompileOnly instead of testCompileClasspath (#5849)
`testCompileClasspath` is deprecated. Also, removing `org.jetbrains:annotations` from `selenium` module.
1 parent 22aa85d commit 459d2f6

File tree

4 files changed

+2
-5
lines changed

4 files changed

+2
-5
lines changed

core/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ dependencies {
6363
api 'junit:junit:4.13.2'
6464
api 'org.slf4j:slf4j-api:2.0.0'
6565
compileOnly 'org.jetbrains:annotations:23.0.0'
66-
testCompileClasspath 'org.jetbrains:annotations:23.0.0'
66+
testCompileOnly 'org.jetbrains:annotations:23.0.0'
6767
api 'org.apache.commons:commons-compress:1.21'
6868
api ('org.rnorth.duct-tape:duct-tape:1.0.8') {
6969
exclude(group: 'org.jetbrains', module: 'annotations')

modules/selenium/build.gradle

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,4 @@ dependencies {
1313
testImplementation 'org.assertj:assertj-core:3.23.1'
1414

1515
compileOnly 'org.jetbrains:annotations:23.0.0'
16-
testCompileClasspath 'org.jetbrains:annotations:23.0.0'
1716
}

modules/selenium/src/test/java/org/testcontainers/junit/BaseWebDriverContainerTest.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
package org.testcontainers.junit;
22

3-
import org.jetbrains.annotations.NotNull;
43
import org.junit.ClassRule;
54
import org.openqa.selenium.By;
65
import org.openqa.selenium.WebElement;
@@ -51,7 +50,6 @@ protected void assertBrowserNameIs(BrowserWebDriverContainer<?> rule, String exp
5150
assertThat(actual).as(String.format("actual browser name is %s", actual)).isEqualTo(expectedName);
5251
}
5352

54-
@NotNull
5553
private static RemoteWebDriver setupDriverFromRule(BrowserWebDriverContainer<?> rule) {
5654
RemoteWebDriver driver = rule.getWebDriver();
5755
driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);

modules/spock/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ dependencies {
1818
testRuntimeOnly 'org.postgresql:postgresql:42.5.0'
1919
testRuntimeOnly 'mysql:mysql-connector-java:8.0.30'
2020

21-
testCompileClasspath 'org.jetbrains:annotations:23.0.0'
21+
testCompileOnly 'org.jetbrains:annotations:23.0.0'
2222
}
2323

2424
sourceJar {

0 commit comments

Comments
 (0)