Skip to content

Commit

Permalink
Merge pull request #1266 from lukas-krecan/r2dbc1
Browse files Browse the repository at this point in the history
Upgrade to R2DBC 1.0.0.Release
  • Loading branch information
lukas-krecan committed Dec 10, 2022
2 parents 8cf24ae + 2f7736f commit 4269b68
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public String nowExpression() {

static class MyMSSQLServerContainer extends MSSQLServerContainer<MyMSSQLServerContainer> {
MyMSSQLServerContainer() {
super("mcr.microsoft.com/mssql/server:2019-latest");
super("mcr.microsoft.com/mssql/server:2022-latest");
withLogConsumer(it -> LOGGER.info(it.getUtf8String()));
acceptLicense();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ public MySqlConfig() {
.withDatabaseName(TEST_SCHEMA_NAME)
.withUsername("SA")
.withPassword("pass")
.withCommand("--default-authentication-plugin=mysql_native_password")
);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

public final class OracleServerConfig extends AbstractContainerBasedDbConfig<OracleContainer> {
public OracleServerConfig() {
super(new OracleContainer("gvenzl/oracle-xe:18-slim"));
super(new OracleContainer("gvenzl/oracle-xe:21-slim"));
}

@Override
Expand Down
30 changes: 15 additions & 15 deletions providers/r2dbc/shedlock-provider-r2dbc/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@
<artifactId>shedlock-provider-r2dbc</artifactId>
<version>5.0.0-SNAPSHOT</version>

<properties>
<r2dbc.version>1.0.0.RELEASE</r2dbc.version>
</properties>

<dependencies>
<dependency>
<groupId>net.javacrumbs.shedlock</groupId>
Expand All @@ -22,6 +26,7 @@
<dependency>
<groupId>io.r2dbc</groupId>
<artifactId>r2dbc-spi</artifactId>
<version>${r2dbc.version}</version>
</dependency>

<dependency>
Expand All @@ -41,25 +46,29 @@
<dependency>
<groupId>org.postgresql</groupId>
<artifactId>r2dbc-postgresql</artifactId>
<!-- Maintained in as pgjdbc project with own release cycle -->
<version>1.0.0.RELEASE</version>
<scope>test</scope>
</dependency>

<dependency>
<groupId>io.r2dbc</groupId>
<artifactId>r2dbc-mssql</artifactId>
<version>${r2dbc.version}</version>
<scope>test</scope>
</dependency>

<dependency>
<groupId>dev.miku</groupId>
<artifactId>r2dbc-mysql</artifactId>
<version>0.8.2.RELEASE</version>
<groupId>com.github.jasync-sql</groupId>
<artifactId>jasync-r2dbc-mysql</artifactId>
<version>2.1.7</version>
<scope>test</scope>
</dependency>

<dependency>
<groupId>com.oracle.database.r2dbc</groupId>
<artifactId>oracle-r2dbc</artifactId>
<version>1.1.0</version>
<scope>test</scope>
</dependency>

Expand All @@ -73,18 +82,21 @@
<dependency>
<groupId>io.r2dbc</groupId>
<artifactId>r2dbc-h2</artifactId>
<version>${r2dbc.version}</version>
<scope>test</scope>
</dependency>

<dependency>
<groupId>org.mariadb</groupId>
<artifactId>r2dbc-mariadb</artifactId>
<version>1.1.2</version>
<scope>test</scope>
</dependency>

<dependency>
<groupId>io.r2dbc</groupId>
<artifactId>r2dbc-pool</artifactId>
<version>${r2dbc.version}</version>
<scope>test</scope>
</dependency>

Expand All @@ -96,18 +108,6 @@
</dependency>
</dependencies>

<dependencyManagement>
<dependencies>
<dependency>
<groupId>io.r2dbc</groupId>
<artifactId>r2dbc-bom</artifactId>
<version>Borca-SR1</version>
<scope>import</scope>
<type>pom</type>
</dependency>
</dependencies>
</dependencyManagement>

<build>
<plugins>
<plugin>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
abstract class R2dbcAdapter {
private static final String MSSQL_NAME = "Microsoft SQL Server";
private static final String MYSQL_NAME = "MySQL";
private static final String JASYNC_MYSQL_NAME = "Jasync-MySQL";
private static final String MARIA_NAME = "MariaDB";
private static final String ORACLE_NAME = "Oracle Database";

Expand All @@ -23,6 +24,7 @@ static R2dbcAdapter create(@NonNull String driver) {
R2dbcAdapter::bindByName
);
case MYSQL_NAME:
case JASYNC_MYSQL_NAME:
case MARIA_NAME:
return new DefaultR2dbcAdapter(
(index, name) -> "?",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@

import net.javacrumbs.shedlock.test.support.jdbc.DbConfig;
import net.javacrumbs.shedlock.test.support.jdbc.MariaDbConfig;
import org.junit.jupiter.api.Disabled;

@Disabled("No R2DBC 1.0.0 compatible driver")
public class MariaR2dbcLockProviderIntegrationTest extends AbstractR2dbcTest {
private static final DbConfig dbConfig = new MariaDbConfig();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@

import net.javacrumbs.shedlock.test.support.jdbc.DbConfig;
import net.javacrumbs.shedlock.test.support.jdbc.MsSqlServerConfig;
import org.junit.jupiter.api.Disabled;

@Disabled
public class MsSqlR2dbcLockProviderIntegrationTest extends AbstractR2dbcTest {
private static final DbConfig dbConfig = new MsSqlServerConfig();

Expand Down

0 comments on commit 4269b68

Please sign in to comment.