Skip to content

Commit 20f6067

Browse files
authored
Use testRuntimeOnly for JDBC/R2DBC drivers (#7295)
1 parent 7e779e5 commit 20f6067

File tree

16 files changed

+18
-18
lines changed

16 files changed

+18
-18
lines changed

docs/examples/junit4/generic/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ dependencies {
66
testImplementation project(":selenium")
77
testImplementation project(":mysql")
88

9-
testImplementation 'mysql:mysql-connector-java:8.0.33'
9+
testRuntimeOnly 'mysql:mysql-connector-java:8.0.33'
1010
testImplementation "org.seleniumhq.selenium:selenium-api:4.10.0"
1111
testImplementation 'org.assertj:assertj-core:3.24.2'
1212
}

examples/linked-container/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ dependencies {
99
compileOnly 'org.slf4j:slf4j-api:1.7.36'
1010
implementation 'com.squareup.okhttp3:okhttp:4.11.0'
1111
implementation 'org.json:json:20230227'
12-
testImplementation 'org.postgresql:postgresql:42.6.0'
12+
testRuntimeOnly 'org.postgresql:postgresql:42.6.0'
1313
testImplementation 'ch.qos.logback:logback-classic:1.3.8'
1414
testImplementation 'org.testcontainers:postgresql'
1515
testImplementation 'org.assertj:assertj-core:3.24.2'

modules/clickhouse/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ dependencies {
55
api project(':jdbc')
66

77
testImplementation project(':jdbc-test')
8-
testImplementation 'ru.yandex.clickhouse:clickhouse-jdbc:0.3.2'
8+
testRuntimeOnly 'ru.yandex.clickhouse:clickhouse-jdbc:0.3.2'
99
testImplementation 'org.assertj:assertj-core:3.24.2'
1010
}

modules/cockroachdb/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ dependencies {
44
api project(':jdbc')
55

66
testImplementation project(':jdbc-test')
7-
testImplementation 'org.postgresql:postgresql:42.6.0'
7+
testRuntimeOnly 'org.postgresql:postgresql:42.6.0'
88
testImplementation 'org.assertj:assertj-core:3.24.2'
99
}

modules/cratedb/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ dependencies {
44
api project(':jdbc')
55

66
testImplementation project(':jdbc-test')
7-
testImplementation 'org.postgresql:postgresql:42.6.0'
7+
testRuntimeOnly 'org.postgresql:postgresql:42.6.0'
88

99
compileOnly 'org.jetbrains:annotations:24.0.1'
1010
}

modules/db2/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ dependencies {
44
api project(':jdbc')
55

66
testImplementation project(':jdbc-test')
7-
testImplementation 'com.ibm.db2:jcc:11.5.8.0'
7+
testRuntimeOnly 'com.ibm.db2:jcc:11.5.8.0'
88
testImplementation 'org.assertj:assertj-core:3.24.2'
99
}

modules/mariadb/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@ dependencies {
1313
testImplementation 'org.mariadb.jdbc:mariadb-java-client:3.1.4'
1414

1515
testImplementation testFixtures(project(':r2dbc'))
16-
testImplementation 'org.mariadb:r2dbc-mariadb:1.0.3'
16+
testRuntimeOnly 'org.mariadb:r2dbc-mariadb:1.0.3'
1717
}

modules/mssqlserver/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ dependencies {
1313
testImplementation 'com.microsoft.sqlserver:mssql-jdbc:12.3.1.jre8-preview'
1414

1515
testImplementation project(':r2dbc')
16-
testImplementation 'io.r2dbc:r2dbc-mssql:1.0.1.RELEASE'
16+
testRuntimeOnly 'io.r2dbc:r2dbc-mssql:1.0.1.RELEASE'
1717

1818
// MSSQL's wait strategy requires the JDBC driver
1919
testImplementation testFixtures(project(':r2dbc'))

modules/mysql/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ dependencies {
1010
compileOnly 'io.asyncer:r2dbc-mysql:1.0.2'
1111

1212
testImplementation project(':jdbc-test')
13-
testImplementation 'mysql:mysql-connector-java:8.0.33'
13+
testRuntimeOnly 'mysql:mysql-connector-java:8.0.33'
1414

1515
testImplementation testFixtures(project(':r2dbc'))
16-
testImplementation 'io.asyncer:r2dbc-mysql:1.0.2'
16+
testRuntimeOnly 'io.asyncer:r2dbc-mysql:1.0.2'
1717

1818
compileOnly 'org.jetbrains:annotations:24.0.1'
1919
}

modules/oracle-xe/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ dependencies {
1515
compileOnly 'org.jetbrains:annotations:24.0.1'
1616

1717
testImplementation testFixtures(project(':r2dbc'))
18-
testImplementation 'com.oracle.database.r2dbc:oracle-r2dbc:1.1.1'
18+
testRuntimeOnly 'com.oracle.database.r2dbc:oracle-r2dbc:1.1.1'
1919
}
2020

2121
test {

0 commit comments

Comments
 (0)