Skip to content

Commit

Permalink
version update to 2.12
Browse files Browse the repository at this point in the history
Signed-off-by: Srinivasa Vasu <srinivasan.surprise@gmail.com>
  • Loading branch information
srinivasa-vasu committed Mar 9, 2022
1 parent 6f4326c commit e1dc326
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
6 changes: 3 additions & 3 deletions docs/modules/databases/yugabytedb.md
Expand Up @@ -14,7 +14,7 @@ YugabyteDB supports two APIs.
public class YugabyteDBTest {

@Rule
public YugabyteYSQLContainer container = new YugabyteYSQLContainer("yugabytedb/yugabyte:2.9.1.0-b140");
public YugabyteYSQLContainer container = new YugabyteYSQLContainer("yugabytedb/yugabyte:2.12.1.0-b41");

@Test
public void method() {
Expand All @@ -25,15 +25,15 @@ public class YugabyteDBTest {

#### JDBC URL

`jdbc:tc:yugabyte:2.7.2.0-b216:///yugabyte`
`jdbc:tc:yugabyte:2.12.1.0-b41:///yugabyte`

### YCQL API

```java
public class YugabyteDBTest {

@Rule
public YugabyteYCQLContainer container = new YugabyteYCQLContainer("yugabytedb/yugabyte:2.9.1.0-b140");
public YugabyteYCQLContainer container = new YugabyteYCQLContainer("yugabytedb/yugabyte:2.12.1.0-b41");

@Test
public void method() {
Expand Down
7 changes: 3 additions & 4 deletions modules/yugabytedb/build.gradle
@@ -1,11 +1,10 @@
description = "Testcontainers :: JDBC :: YugabyteDB"

dependencies {
// api project(':jdbc')
api 'org.testcontainers:jdbc:1.16.0'
api project(':jdbc')
testImplementation project(':jdbc-test')
// YCQL driver
implementation 'com.yugabyte:java-driver-core:4.6.0-yb-6'
implementation 'com.yugabyte:java-driver-core:4.6.0-yb-10'
// YSQL driver
testImplementation 'com.yugabyte:jdbc-yugabytedb:42.3.0'
testImplementation 'com.yugabyte:jdbc-yugabytedb:42.3.4'
}
Expand Up @@ -11,7 +11,7 @@ public interface YugabyteContainerConstants {

DockerImageName DEFAULT_IMAGE_NAME = DockerImageName.parse("yugabytedb/yugabyte");

String DEFAULT_TAG = "2.9.1.0-b140";
String DEFAULT_TAG = "2.12.1.0-b41";

String NAME = "yugabyte";

Expand Down

0 comments on commit e1dc326

Please sign in to comment.