Skip to content

Commit f7485a2

Browse files
author
humblehound
committed
Merge branch 'r2dbc-new' into r2dbc
2 parents 79acb8d + 34117b4 commit f7485a2

34 files changed

Lines changed: 241 additions & 1 deletion

File tree

core/build.gradle

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@ apply plugin: 'com.github.johnrengelman.shadow'
22

33
description = "Testcontainers Core"
44

5+
repositories {
6+
mavenCentral()
7+
maven {
8+
url("https://repo.spring.io/milestone")
9+
}
10+
}
11+
512
sourceSets {
613
jarFileTest
714
}
@@ -58,6 +65,8 @@ shadowJar {
5865
include(dependency('com.squareup.okio:.*'))
5966
include(dependency('org.scala-sbt.ipcsocket:ipcsocket'))
6067
include(dependency('org.glassfish.main.external:trilead-ssh2-repackaged'))
68+
include(dependency('io.r2dbc:r2dbc-spi'))
69+
6170
}
6271
}
6372

@@ -72,6 +81,7 @@ task jarFileTest(type: Test) {
7281
project.tasks.check.dependsOn(jarFileTest)
7382

7483
dependencies {
84+
compile 'io.r2dbc:r2dbc-spi:1.0.0.M6'
7585
compile 'junit:junit:4.12'
7686
compile 'org.slf4j:slf4j-api:1.7.25'
7787
compile 'org.jetbrains:annotations:16.0.3'

modules/cassandra/build.gradle

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
description = "TestContainers :: Cassandra"
22

3+
repositories{
4+
maven {
5+
url("https://repo.spring.io/milestone")
6+
}
7+
}
8+
39
dependencies {
410
compile project(":database-commons")
511
compile "com.datastax.cassandra:cassandra-driver-core:3.5.1"

modules/clickhouse/build.gradle

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
description = "Testcontainers :: JDBC :: ClickHouse"
22

3+
repositories{
4+
maven {
5+
url("https://repo.spring.io/milestone")
6+
}
7+
}
8+
39
dependencies {
410
compile project(':testcontainers')
511
compile project(':jdbc')

modules/clickhouse/src/main/java/org/testcontainers/containers/ClickHouseContainer.java

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

3+
import io.r2dbc.spi.ConnectionFactory;
4+
import org.apache.commons.lang.NotImplementedException;
35
import org.testcontainers.containers.wait.HttpWaitStrategy;
46

57
import java.time.Duration;
@@ -54,6 +56,11 @@ public String getJdbcUrl() {
5456
return JDBC_URL_PREFIX + getContainerIpAddress() + ":" + getMappedPort(HTTP_PORT) + "/" + databaseName;
5557
}
5658

59+
@Override
60+
public ConnectionFactory getR2dbcConnectionFactory() {
61+
throw new NotImplementedException("ClickHouse is not yet supported by R2DBC");
62+
}
63+
5764
@Override
5865
public String getUsername() {
5966
return username;

modules/couchbase/build.gradle

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
description = "Testcontainers :: Couchbase"
22

3+
repositories{
4+
maven {
5+
url("https://repo.spring.io/milestone")
6+
}
7+
}
8+
39
dependencies {
410
compile project(':testcontainers')
511
compile 'com.couchbase.client:java-client:2.7.2'
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
description = "Testcontainers :: Database-Commons"
22

3+
repositories{
4+
maven {
5+
url("https://repo.spring.io/milestone")
6+
}
7+
}
8+
39
dependencies {
410
compile project(':testcontainers')
511
}

modules/dynalite/build.gradle

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
description = "Testcontainers :: Dynalite"
22

3+
repositories{
4+
maven {
5+
url("https://repo.spring.io/milestone")
6+
}
7+
}
8+
39
dependencies {
410
compile project(':testcontainers')
511

modules/elasticsearch/build.gradle

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
description = "TestContainers :: elasticsearch"
22

3+
repositories{
4+
maven {
5+
url("https://repo.spring.io/milestone")
6+
}
7+
}
8+
39
dependencies {
410
compile project(':testcontainers')
511
testCompile "org.elasticsearch.client:elasticsearch-rest-client:6.5.4"

modules/influxdb/build.gradle

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
description = "Testcontainers :: InfluxDB"
22

3+
repositories{
4+
maven {
5+
url("https://repo.spring.io/milestone")
6+
}
7+
}
8+
39
dependencies {
410
compile project(':testcontainers')
511

modules/jdbc-test/build.gradle

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ repositories {
22
maven {
33
url "https://maven.atlassian.com/3rdparty/"
44
}
5+
maven {
6+
url("https://repo.spring.io/milestone")
7+
}
58
}
69

710
dependencies {
@@ -20,6 +23,10 @@ dependencies {
2023
testCompile 'com.microsoft.sqlserver:mssql-jdbc:6.1.0.jre8'
2124
testCompile 'ru.yandex.clickhouse:clickhouse-jdbc:0.1.41'
2225

26+
testCompile 'io.r2dbc:r2dbc-client:1.0.0.M6'
27+
testCompile 'io.r2dbc:r2dbc-mssql:1.0.0.M6'
28+
testCompile 'io.r2dbc:r2dbc-postgresql:1.0.0.M6'
29+
2330
testCompile 'com.zaxxer:HikariCP-java6:2.3.8'
2431
testCompile 'org.apache.tomcat:tomcat-jdbc:8.5.4'
2532
testCompile 'org.vibur:vibur-dbcp:9.0'

0 commit comments

Comments
 (0)