Skip to content

Commit

Permalink
update dependency info in doc
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 Jul 26, 2022
1 parent 181a12d commit f012ad5
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 19 deletions.
25 changes: 13 additions & 12 deletions docs/modules/databases/yugabytedb.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,18 +39,19 @@ YugabyteDB supports two APIs.

Add the following dependency to your `pom.xml`/`build.gradle` file:

```groovy tab='Gradle'
testImplementation "org.testcontainers:yugabytedb:{{latest_version}}"
```

```xml tab='Maven'
<dependency>
<groupId>org.testcontainers</groupId>
<artifactId>yugabytedb</artifactId>
<version>{{latest_version}}</version>
<scope>test</scope>
</dependency>
```
=== "Gradle"
```groovy
testImplementation "org.testcontainers:yugabytedb:{{latest_version}}"
```
=== "Maven"
```xml
<dependency>
<groupId>org.testcontainers</groupId>
<artifactId>yugabytedb</artifactId>
<version>{{latest_version}}</version>
<scope>test</scope>
</dependency>
```

!!! hint
Adding this Testcontainers library JAR will not automatically add the Yugabytedb driver JAR to your project.
Expand Down
2 changes: 1 addition & 1 deletion modules/yugabytedb/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')
// YCQL driver
implementation 'com.yugabyte:java-driver-core:4.6.0-yb-10'
implementation 'com.yugabyte:java-driver-core:4.6.0-yb-11'
// YSQL driver
testImplementation 'com.yugabyte:jdbc-yugabytedb:42.3.4'
}
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ public class YugabyteDBYCQLUnitTest {
@Test
public void testSmoke() {
try (
// creatingYCQLContainer {
final YugabyteDBYCQLContainer ycqlContainer = new YugabyteDBYCQLContainer(IMAGE_NAME)
// }
// creatingYCQLContainer {
final YugabyteDBYCQLContainer ycqlContainer = new YugabyteDBYCQLContainer(IMAGE_NAME)
// }
) {
// startingYCQLContainer {
ycqlContainer.start();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ public class YugabyteDBYSQLUnitTest extends AbstractContainerDatabaseTest {
@Test
public void testSmoke() throws SQLException {
try (
// creatingYSQLContainer {
final YugabyteDBYSQLContainer ysqlContainer = new YugabyteDBYSQLContainer(IMAGE_NAME)
// }
// creatingYSQLContainer {
final YugabyteDBYSQLContainer ysqlContainer = new YugabyteDBYSQLContainer(IMAGE_NAME)
// }
) {
// startingYSQLContainer {
ysqlContainer.start();
Expand Down

0 comments on commit f012ad5

Please sign in to comment.