Skip to content

Commit

Permalink
Upgrade to R2DBC 1.0.0.Release
Browse files Browse the repository at this point in the history
  • Loading branch information
vladimirfx authored and lukas-krecan committed Dec 9, 2022
1 parent 0cf299d commit dbe4633
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 15 deletions.
1 change: 1 addition & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@
<assertj.ver>3.23.1</assertj.ver>
<mockito.ver>4.9.0</mockito.ver>
<slf4j.ver>2.0.5</slf4j.ver>
<r2dbc.version>1.0.0.RELEASE</r2dbc.version>
</properties>

<build>
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
26 changes: 11 additions & 15 deletions providers/r2dbc/shedlock-provider-r2dbc/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
<dependency>
<groupId>io.r2dbc</groupId>
<artifactId>r2dbc-spi</artifactId>
<version>${r2dbc.version}</version>
</dependency>

<dependency>
Expand All @@ -41,25 +42,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 +78,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 +104,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

0 comments on commit dbe4633

Please sign in to comment.