Skip to content

Commit

Permalink
Use testRuntimeOnly for JDBC/R2DBC drivers (#7295)
Browse files Browse the repository at this point in the history
  • Loading branch information
eddumelendez committed Jul 3, 2023
1 parent 7e779e5 commit 20f6067
Show file tree
Hide file tree
Showing 16 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion docs/examples/junit4/generic/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ dependencies {
testImplementation project(":selenium")
testImplementation project(":mysql")

testImplementation 'mysql:mysql-connector-java:8.0.33'
testRuntimeOnly 'mysql:mysql-connector-java:8.0.33'
testImplementation "org.seleniumhq.selenium:selenium-api:4.10.0"
testImplementation 'org.assertj:assertj-core:3.24.2'
}
2 changes: 1 addition & 1 deletion examples/linked-container/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ dependencies {
compileOnly 'org.slf4j:slf4j-api:1.7.36'
implementation 'com.squareup.okhttp3:okhttp:4.11.0'
implementation 'org.json:json:20230227'
testImplementation 'org.postgresql:postgresql:42.6.0'
testRuntimeOnly 'org.postgresql:postgresql:42.6.0'
testImplementation 'ch.qos.logback:logback-classic:1.3.8'
testImplementation 'org.testcontainers:postgresql'
testImplementation 'org.assertj:assertj-core:3.24.2'
Expand Down
2 changes: 1 addition & 1 deletion modules/clickhouse/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ dependencies {
api project(':jdbc')

testImplementation project(':jdbc-test')
testImplementation 'ru.yandex.clickhouse:clickhouse-jdbc:0.3.2'
testRuntimeOnly 'ru.yandex.clickhouse:clickhouse-jdbc:0.3.2'
testImplementation 'org.assertj:assertj-core:3.24.2'
}
2 changes: 1 addition & 1 deletion modules/cockroachdb/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ dependencies {
api project(':jdbc')

testImplementation project(':jdbc-test')
testImplementation 'org.postgresql:postgresql:42.6.0'
testRuntimeOnly 'org.postgresql:postgresql:42.6.0'
testImplementation 'org.assertj:assertj-core:3.24.2'
}
2 changes: 1 addition & 1 deletion modules/cratedb/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ dependencies {
api project(':jdbc')

testImplementation project(':jdbc-test')
testImplementation 'org.postgresql:postgresql:42.6.0'
testRuntimeOnly 'org.postgresql:postgresql:42.6.0'

compileOnly 'org.jetbrains:annotations:24.0.1'
}
2 changes: 1 addition & 1 deletion modules/db2/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ dependencies {
api project(':jdbc')

testImplementation project(':jdbc-test')
testImplementation 'com.ibm.db2:jcc:11.5.8.0'
testRuntimeOnly 'com.ibm.db2:jcc:11.5.8.0'
testImplementation 'org.assertj:assertj-core:3.24.2'
}
2 changes: 1 addition & 1 deletion modules/mariadb/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ dependencies {
testImplementation 'org.mariadb.jdbc:mariadb-java-client:3.1.4'

testImplementation testFixtures(project(':r2dbc'))
testImplementation 'org.mariadb:r2dbc-mariadb:1.0.3'
testRuntimeOnly 'org.mariadb:r2dbc-mariadb:1.0.3'
}
2 changes: 1 addition & 1 deletion modules/mssqlserver/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ dependencies {
testImplementation 'com.microsoft.sqlserver:mssql-jdbc:12.3.1.jre8-preview'

testImplementation project(':r2dbc')
testImplementation 'io.r2dbc:r2dbc-mssql:1.0.1.RELEASE'
testRuntimeOnly 'io.r2dbc:r2dbc-mssql:1.0.1.RELEASE'

// MSSQL's wait strategy requires the JDBC driver
testImplementation testFixtures(project(':r2dbc'))
Expand Down
4 changes: 2 additions & 2 deletions modules/mysql/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ dependencies {
compileOnly 'io.asyncer:r2dbc-mysql:1.0.2'

testImplementation project(':jdbc-test')
testImplementation 'mysql:mysql-connector-java:8.0.33'
testRuntimeOnly 'mysql:mysql-connector-java:8.0.33'

testImplementation testFixtures(project(':r2dbc'))
testImplementation 'io.asyncer:r2dbc-mysql:1.0.2'
testRuntimeOnly 'io.asyncer:r2dbc-mysql:1.0.2'

compileOnly 'org.jetbrains:annotations:24.0.1'
}
2 changes: 1 addition & 1 deletion modules/oracle-xe/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ dependencies {
compileOnly 'org.jetbrains:annotations:24.0.1'

testImplementation testFixtures(project(':r2dbc'))
testImplementation 'com.oracle.database.r2dbc:oracle-r2dbc:1.1.1'
testRuntimeOnly 'com.oracle.database.r2dbc:oracle-r2dbc:1.1.1'
}

test {
Expand Down
4 changes: 2 additions & 2 deletions modules/postgresql/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ dependencies {
compileOnly 'io.r2dbc:r2dbc-postgresql:0.8.13.RELEASE'

testImplementation project(':jdbc-test')
testImplementation 'org.postgresql:postgresql:42.6.0'
testRuntimeOnly 'org.postgresql:postgresql:42.6.0'

testImplementation testFixtures(project(':r2dbc'))
testImplementation 'io.r2dbc:r2dbc-postgresql:0.8.13.RELEASE'
testRuntimeOnly 'io.r2dbc:r2dbc-postgresql:0.8.13.RELEASE'

compileOnly 'org.jetbrains:annotations:24.0.1'
}
2 changes: 1 addition & 1 deletion modules/presto/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ dependencies {
api project(':jdbc')

testImplementation project(':jdbc-test')
testImplementation 'io.prestosql:presto-jdbc:350'
testRuntimeOnly 'io.prestosql:presto-jdbc:350'
compileOnly 'org.jetbrains:annotations:24.0.1'
}
2 changes: 1 addition & 1 deletion modules/questdb/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ dependencies {
api project(':testcontainers')
api project(':jdbc')

testImplementation 'org.postgresql:postgresql:42.6.0'
testRuntimeOnly 'org.postgresql:postgresql:42.6.0'
testImplementation project(':jdbc-test')
testImplementation 'org.assertj:assertj-core:3.24.2'
testImplementation 'org.questdb:questdb:7.2'
Expand Down
2 changes: 1 addition & 1 deletion modules/tidb/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ dependencies {
api project(':jdbc')

testImplementation project(':jdbc-test')
testImplementation 'mysql:mysql-connector-java:8.0.33'
testRuntimeOnly 'mysql:mysql-connector-java:8.0.33'

compileOnly 'org.jetbrains:annotations:24.0.1'
}
2 changes: 1 addition & 1 deletion modules/trino/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ dependencies {
api project(':jdbc')

testImplementation project(':jdbc-test')
testImplementation 'io.trino:trino-jdbc:420'
testRuntimeOnly 'io.trino:trino-jdbc:420'
compileOnly 'org.jetbrains:annotations:24.0.1'
}
2 changes: 1 addition & 1 deletion modules/yugabytedb/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ dependencies {
// YCQL driver
testImplementation 'com.yugabyte:java-driver-core:4.6.0-yb-12'
// YSQL driver
testImplementation 'com.yugabyte:jdbc-yugabytedb:42.3.5-yb-3'
testRuntimeOnly 'com.yugabyte:jdbc-yugabytedb:42.3.5-yb-3'
}

0 comments on commit 20f6067

Please sign in to comment.