Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dependencies and databases upgrade #1848

Merged
merged 12 commits into from
Feb 5, 2024
Merged
10 changes: 5 additions & 5 deletions .github/workflows/tracking-orm-6.build.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Run the build using the latest ORM 5.x snapshots
# so that we can spot integration issues early
name: Latest ORM 6.x
name: Latest ORM 6.4

on:
# Trigger the workflow on push or pull request,
Expand Down Expand Up @@ -33,7 +33,7 @@ jobs:
strategy:
matrix:
example: [ 'session-example', 'native-sql-example' ]
orm-version: [ '[6.2,6.3)' ]
orm-version: [ '[6.2,6.5)' ]
db: ['MySQL', 'PostgreSQL']
exclude:
# 'native-sql-example' doesn't run on MySQL because it has native queries
Expand All @@ -43,7 +43,7 @@ jobs:
# Label used to access the service container
mysql:
# Docker Hub image
image: mysql:8.0.33
image: mysql:8.3.0
env:
MYSQL_ROOT_PASSWORD: hreact
MYSQL_DATABASE: hreact
Expand All @@ -59,7 +59,7 @@ jobs:
- 3306:3306
postgres:
# Docker Hub image
image: postgres:15.2
image: postgres:16.1
env:
POSTGRES_DB: hreact
POSTGRES_USER: hreact
Expand Down Expand Up @@ -88,7 +88,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
orm-version: [ '[6.2,6.3)' ]
orm-version: [ '[6.2,6.5)' ]
db: [ 'MariaDB', 'MySQL', 'PostgreSQL', 'DB2', 'CockroachDB', 'MSSQLServer', 'Oracle' ]
steps:
- uses: actions/checkout@v2
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/tracking-vertx-4.build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
# Label used to access the service container
mysql:
# Docker Hub image
image: mysql:8.0.33
image: mysql:8.3.0
env:
MYSQL_ROOT_PASSWORD: hreact
MYSQL_DATABASE: hreact
Expand All @@ -59,7 +59,7 @@ jobs:
- 3306:3306
postgres:
# Docker Hub image
image: postgres:15.2
image: postgres:16.1
env:
POSTGRES_DB: hreact
POSTGRES_USER: hreact
Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,12 @@ Hibernate Reactive has been tested with:
- CockroachDB 22.1
- MS SQL Server 2019
- Oracle 21.3
- [Hibernate ORM][] 6.4.2.Final
- [Vert.x Reactive PostgreSQL Client](https://vertx.io/docs/vertx-pg-client/java/) 4.5.1
- [Vert.x Reactive MySQL Client](https://vertx.io/docs/vertx-mysql-client/java/) 4.5.1
- [Vert.x Reactive Db2 Client](https://vertx.io/docs/vertx-db2-client/java/) 4.5.1
- [Vert.x Reactive MS SQL Server Client](https://vertx.io/docs/vertx-mssql-client/java/) 4.5.1
- [Vert.x Reactive Oracle Client](https://vertx.io/docs/vertx-oracle-client/java/) 4.5.1
- [Hibernate ORM][] 6.4.3.Final
- [Vert.x Reactive PostgreSQL Client](https://vertx.io/docs/vertx-pg-client/java/) 4.5.2
- [Vert.x Reactive MySQL Client](https://vertx.io/docs/vertx-mysql-client/java/) 4.5.2
- [Vert.x Reactive Db2 Client](https://vertx.io/docs/vertx-db2-client/java/) 4.5.2
- [Vert.x Reactive MS SQL Server Client](https://vertx.io/docs/vertx-mssql-client/java/) 4.5.2
- [Vert.x Reactive Oracle Client](https://vertx.io/docs/vertx-oracle-client/java/) 4.5.2
- [Quarkus][Quarkus] via the Hibernate Reactive extension

[PostgreSQL]: https://www.postgresql.org
Expand Down
10 changes: 5 additions & 5 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ import java.util.regex.Pattern
plugins {
id 'java-library'
id 'maven-publish'
id 'com.diffplug.spotless' version '6.18.0'
id 'com.diffplug.spotless' version '6.25.0'
id 'nu.studer.credentials' version '3.0'
id 'org.asciidoctor.jvm.convert' version '3.3.2' apply false
id 'org.asciidoctor.jvm.convert' version '4.0.2' apply false
id 'io.github.gradle-nexus.publish-plugin' version '1.3.0'
}

Expand Down Expand Up @@ -53,7 +53,7 @@ version = projectVersion
// ./gradlew clean build -PhibernateOrmVersion=5.6.15-SNAPSHOT
ext {
if ( !project.hasProperty('hibernateOrmVersion') ) {
hibernateOrmVersion = '6.4.2.Final'
hibernateOrmVersion = '6.4.3.Final'
}
if ( !project.hasProperty( 'hibernateOrmGradlePluginVersion' ) ) {
// Same as ORM as default
Expand Down Expand Up @@ -83,10 +83,10 @@ ext {
// Example:
// ./gradlew build -PvertxSqlClientVersion=4.0.0-SNAPSHOT
if ( !project.hasProperty( 'vertxSqlClientVersion' ) ) {
vertxSqlClientVersion = '4.5.1'
vertxSqlClientVersion = '4.5.2'
}

testcontainersVersion = '1.18.3'
testcontainersVersion = '1.19.4'

logger.lifecycle "Hibernate ORM Version: " + project.hibernateOrmVersion
logger.lifecycle "Hibernate ORM Gradle plugin Version: " + project.hibernateOrmGradlePluginVersion
Expand Down
6 changes: 3 additions & 3 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ org.gradle.java.installations.auto-download=false
#skipOrmVersionParsing = true

# Override default Vert.x Sql client version
#vertxSqlClientVersion = 4.5.1-SNAPSHOT
#vertxSqlClientVersion = 4.5.2-SNAPSHOT

# Override default Vert.x Web client and server versions. For integration tests, both default to vertxSqlClientVersion
#vertxWebVersion = 4.5.1
#vertxWebtClientVersion = 4.5.1
#vertxWebVersion = 4.5.2
#vertxWebtClientVersion = 4.5.2

2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.3-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
Expand Down
2 changes: 1 addition & 1 deletion hibernate-reactive-core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ dependencies {
testRuntimeOnly "com.mysql:mysql-connector-j:8.0.33"

// JDBC driver for Db2 server, for testing
testRuntimeOnly "com.ibm.db2:jcc:11.5.8.0"
testRuntimeOnly "com.ibm.db2:jcc:11.5.9.0"

// EHCache
testRuntimeOnly ("org.ehcache:ehcache:3.10.0-alpha0") {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class CockroachDBDatabase extends PostgreSQLDatabase {
* TIP: To reuse the same containers across multiple runs, set `testcontainers.reuse.enable=true` in a file located
* at `$HOME/.testcontainers.properties` (create the file if it does not exist).
*/
public static final CockroachContainer cockroachDb = new CockroachContainer( imageName( "cockroachdb/cockroach", "v22.2.10" ) )
public static final CockroachContainer cockroachDb = new CockroachContainer( imageName( "cockroachdb/cockroach", "v23.1.14" ) )
// Username, password and database are not supported by test container at the moment
// Testcontainers will use a database named 'postgres' and the 'root' user
.withReuse( true );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ class DB2Database implements TestableDatabase {
* TIP: To reuse the same containers across multiple runs, set `testcontainers.reuse.enable=true` in a file located
* at `$HOME/.testcontainers.properties` (create the file if it does not exist).
*/
static final Db2Container db2 = new Db2Container( imageName( "docker.io", "ibmcom/db2", "11.5.8.0" ) )
static final Db2Container db2 = new Db2Container( imageName( "icr.io", "db2_community/db2", "11.5.9.0" ) )
.withUsername( DatabaseConfiguration.USERNAME )
.withPassword( DatabaseConfiguration.PASSWORD )
.withDatabaseName( DatabaseConfiguration.DB_NAME )
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class MariaDatabase extends MySQLDatabase {
* TIP: To reuse the same containers across multiple runs, set `testcontainers.reuse.enable=true` in a file located
* at `$HOME/.testcontainers.properties` (create the file if it does not exist).
*/
public static final MariaDBContainer<?> maria = new MariaDBContainer<>( imageName( "mariadb", "10.11.3" ) )
public static final MariaDBContainer<?> maria = new MariaDBContainer<>( imageName( "mariadb", "11.2.2" ) )
.withUsername( DatabaseConfiguration.USERNAME )
.withPassword( DatabaseConfiguration.PASSWORD )
.withDatabaseName( DatabaseConfiguration.DB_NAME )
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ class MySQLDatabase implements TestableDatabase {
* TIP: To reuse the same containers across multiple runs, set `testcontainers.reuse.enable=true` in a file located
* at `$HOME/.testcontainers.properties` (create the file if it does not exist).
*/
public static final MySQLContainer<?> mysql = new MySQLContainer<>( imageName( "mysql", "8.0.33") )
public static final MySQLContainer<?> mysql = new MySQLContainer<>( imageName( "mysql", "8.3.0") )
.withUsername( DatabaseConfiguration.USERNAME )
.withPassword( DatabaseConfiguration.PASSWORD )
.withDatabaseName( DatabaseConfiguration.DB_NAME )
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ class PostgreSQLDatabase implements TestableDatabase {
* TIP: To reuse the same containers across multiple runs, set `testcontainers.reuse.enable=true` in a file located
* at `$HOME/.testcontainers.properties` (create the file if it does not exist).
*/
public static final PostgreSQLContainer<?> postgresql = new PostgreSQLContainer<>( imageName( "postgres", "15.2" ) )
public static final PostgreSQLContainer<?> postgresql = new PostgreSQLContainer<>( imageName( "postgres", "16.1" ) )
.withUsername( DatabaseConfiguration.USERNAME )
.withPassword( DatabaseConfiguration.PASSWORD )
.withDatabaseName( DatabaseConfiguration.DB_NAME )
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public abstract class BaseReactiveIT {
public static final boolean USE_DOCKER = Boolean.getBoolean( "docker" );

public static final DockerImageName IMAGE_NAME = DockerImageName
.parse( "docker.io/postgres:15.2" )
.parse( "docker.io/postgres:16.1" )
.asCompatibleSubstituteFor( "postgres" );

public static final String USERNAME = "hreact";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public class VertxServer {
// These properties are in DatabaseConfiguration in core
public static final boolean USE_DOCKER = Boolean.getBoolean( "docker" );

public static final String IMAGE_NAME = "postgres:15.2";
public static final String IMAGE_NAME = "postgres:16.1";
public static final String USERNAME = "hreact";
public static final String PASSWORD = "hreact";
public static final String DB_NAME = "hreact";
Expand Down
10 changes: 5 additions & 5 deletions podman.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ required credentials and schema to run the tests:
```
podman run --rm --name HibernateTestingPGSQL \
-e POSTGRES_USER=hreact -e POSTGRES_PASSWORD=hreact -e POSTGRES_DB=hreact \
-p 5432:5432 docker.io/postgres:15.2
-p 5432:5432 docker.io/postgres:16.1
```

When the database has started, you can run the tests on PostgreSQL with:
Expand Down Expand Up @@ -66,7 +66,7 @@ and schema to run the tests:
```
podman run --rm --name HibernateTestingMariaDB \
-e MYSQL_ROOT_PASSWORD=hreact -e MYSQL_DATABASE=hreact -e MYSQL_USER=hreact -e MYSQL_PASSWORD=hreact \
-p 3306:3306 docker.io/mariadb:10.11.3
-p 3306:3306 docker.io/mariadb:11.2.2
```

When the database has started, you can run the tests on MariaDB with:
Expand All @@ -93,7 +93,7 @@ and schema to run the tests:
```
podman run --rm --name HibernateTestingMySQL \
-e MYSQL_ROOT_PASSWORD=hreact -e MYSQL_DATABASE=hreact -e MYSQL_USER=hreact -e MYSQL_PASSWORD=hreact \
-p 3306:3306 docker.io/mysql:8.0.33
-p 3306:3306 docker.io/mysql:8.3.0
```

When the database has started, you can run the tests on MySQL with:
Expand All @@ -120,7 +120,7 @@ configured to run the tests:
```
podman run --rm --name=HibernateTestingCockroachDB \
--hostname=roachrr1 -p 26257:26257 -p 8080:8080 \
docker.io/cockroachdb/cockroach:v22.2.10 start-single-node --insecure
docker.io/cockroachdb/cockroach:v23.1.14 start-single-node --insecure
```

Some of tests needs temporary tables and because this is an experimental feature in
Expand Down Expand Up @@ -157,7 +157,7 @@ and schema to run the tests:
podman run --rm -e LICENSE=accept --privileged=true --group-add keep-groups \
--name HibernateTestingDB2 -e DBNAME=hreact -e DB2INSTANCE=hreact \
-e DB2INST1_PASSWORD=hreact -e PERSISTENT_HOME=false -e ARCHIVE_LOGS=false \
-e AUTOCONFIG=false -p 50000:50000 docker.io/ibmcom/db2:11.5.8.0
-e AUTOCONFIG=false -p 50000:50000 docker.io/icr.io/db2_community/db2:11.5.9.0
```

When the database has started, you can run the tests on Db2 with:
Expand Down
6 changes: 3 additions & 3 deletions tooling/jbang/CockroachDBReactiveTest.java.qute
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
* Copyright: Red Hat Inc. and Hibernate Authors
*/

//DEPS io.vertx:vertx-pg-client:$\{vertx.version:4.5.1}
//DEPS io.vertx:vertx-unit:$\{vertx.version:4.5.1}
//DEPS io.vertx:vertx-pg-client:$\{vertx.version:4.5.2}
//DEPS io.vertx:vertx-unit:$\{vertx.version:4.5.2}
//DEPS org.hibernate.reactive:hibernate-reactive-core:$\{hibernate-reactive.version:2.2.0.Final}
//DEPS org.assertj:assertj-core:3.24.2
//DEPS junit:junit:4.13.2
Expand Down Expand Up @@ -70,7 +70,7 @@ public class {baseName} {
}

@ClassRule
public final static CockroachContainer database = new CockroachContainer( imageName( "cockroachdb", "cockroach", "v22.2.10" ) );
public final static CockroachContainer database = new CockroachContainer( imageName( "cockroachdb", "cockroach", "v23.1.14" ) );

private Mutiny.SessionFactory sessionFactory;

Expand Down
6 changes: 3 additions & 3 deletions tooling/jbang/Db2ReactiveTest.java.qute
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
* Copyright: Red Hat Inc. and Hibernate Authors
*/

//DEPS io.vertx:vertx-db2-client:$\{vertx.version:4.5.1}
//DEPS io.vertx:vertx-unit:$\{vertx.version:4.5.1}
//DEPS io.vertx:vertx-db2-client:$\{vertx.version:4.5.2}
//DEPS io.vertx:vertx-unit:$\{vertx.version:4.5.2}
//DEPS org.hibernate.reactive:hibernate-reactive-core:$\{hibernate-reactive.version:2.2.0.Final}
//DEPS org.assertj:assertj-core:3.24.2
//DEPS junit:junit:4.13.2
Expand Down Expand Up @@ -65,7 +65,7 @@ public class {baseName} {
}

@ClassRule
public final static Db2Container database = new Db2Container( imageName( "docker.io", "ibmcom/db2", "11.5.8.0" ) )
public final static Db2Container database = new Db2Container( imageName( "docker.io", "icr.io/db2_community/db2", "11.5.9.0" ) )
.acceptLicense();

private Mutiny.SessionFactory sessionFactory;
Expand Down
8 changes: 4 additions & 4 deletions tooling/jbang/Example.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
*/

//DEPS com.ongres.scram:client:2.1
//DEPS io.vertx:vertx-pg-client:${vertx.version:4.5.1}
//DEPS io.vertx:vertx-mysql-client:${vertx.version:4.5.1}
//DEPS io.vertx:vertx-db2-client:${vertx.version:4.5.1}
//DEPS io.vertx:vertx-pg-client:${vertx.version:4.5.2}
//DEPS io.vertx:vertx-mysql-client:${vertx.version:4.5.2}
//DEPS io.vertx:vertx-db2-client:${vertx.version:4.5.2}
//DEPS org.hibernate.reactive:hibernate-reactive-core:${hibernate-reactive.version:2.2.0.Final}
//DEPS org.slf4j:slf4j-simple:2.0.7
//DESCRIPTION Allow authentication to PostgreSQL using SCRAM:
Expand Down Expand Up @@ -59,7 +59,7 @@
* <pre>
* podman run --rm --name HibernateTestingPGSQL \
* -e POSTGRES_USER=hreact -e POSTGRES_PASSWORD=hreact -e POSTGRES_DB=hreact \
* -p 5432:5432 postgres:15.2
* -p 5432:5432 postgres:16.1
* </pre>
* </dd>
* <dt>3. Run the example with JBang</dt>
Expand Down
6 changes: 3 additions & 3 deletions tooling/jbang/MariaDBReactiveTest.java.qute
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
* Copyright: Red Hat Inc. and Hibernate Authors
*/

//DEPS io.vertx:vertx-mysql-client:$\{vertx.version:4.5.1}
//DEPS io.vertx:vertx-unit:$\{vertx.version:4.5.1}
//DEPS io.vertx:vertx-mysql-client:$\{vertx.version:4.5.2}
//DEPS io.vertx:vertx-unit:$\{vertx.version:4.5.2}
//DEPS org.hibernate.reactive:hibernate-reactive-core:$\{hibernate-reactive.version:2.2.0.Final}
//DEPS org.assertj:assertj-core:3.24.2
//DEPS junit:junit:4.13.2
Expand Down Expand Up @@ -69,7 +69,7 @@ public class {baseName} {
}

@ClassRule
public final static MariaDBContainer<?> database = new MariaDBContainer<>( imageName( "docker.io", "mariadb", "10.11.3" ) );
public final static MariaDBContainer<?> database = new MariaDBContainer<>( imageName( "docker.io", "mariadb", "11.2.2" ) );

private Mutiny.SessionFactory sessionFactory;

Expand Down
6 changes: 3 additions & 3 deletions tooling/jbang/MySQLReactiveTest.java.qute
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
* Copyright: Red Hat Inc. and Hibernate Authors
*/

//DEPS io.vertx:vertx-mysql-client:$\{vertx.version:4.5.1}
//DEPS io.vertx:vertx-unit:$\{vertx.version:4.5.1}
//DEPS io.vertx:vertx-mysql-client:$\{vertx.version:4.5.2}
//DEPS io.vertx:vertx-unit:$\{vertx.version:4.5.2}
//DEPS org.hibernate.reactive:hibernate-reactive-core:$\{hibernate-reactive.version:2.2.0.Final}
//DEPS org.assertj:assertj-core:3.24.2
//DEPS junit:junit:4.13.2
Expand Down Expand Up @@ -72,7 +72,7 @@ public class {baseName} {
}

@ClassRule
public final static MySQLContainer<?> database = new MySQLContainer<>( imageName( "docker.io", "mysql", "8.0.33" ) );
public final static MySQLContainer<?> database = new MySQLContainer<>( imageName( "docker.io", "mysql", "8.3.0" ) );

private Mutiny.SessionFactory sessionFactory;

Expand Down
6 changes: 3 additions & 3 deletions tooling/jbang/PostgreSQLReactiveTest.java.qute
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
* Copyright: Red Hat Inc. and Hibernate Authors
*/

//DEPS io.vertx:vertx-pg-client:$\{vertx.version:4.5.1}
//DEPS io.vertx:vertx-unit:$\{vertx.version:4.5.1}
//DEPS io.vertx:vertx-pg-client:$\{vertx.version:4.5.2}
//DEPS io.vertx:vertx-unit:$\{vertx.version:4.5.2}
//DEPS org.hibernate.reactive:hibernate-reactive-core:$\{hibernate-reactive.version:2.2.0.Final}
//DEPS org.assertj:assertj-core:3.24.2
//DEPS junit:junit:4.13.2
Expand Down Expand Up @@ -67,7 +67,7 @@ public class {baseName} {
}

@ClassRule
public final static PostgreSQLContainer database = new PostgreSQLContainer( imageName( "docker.io", "postgres", "15.2" ) );
public final static PostgreSQLContainer database = new PostgreSQLContainer( imageName( "docker.io", "postgres", "16.1" ) );

private Mutiny.SessionFactory sessionFactory;

Expand Down
Loading
Loading