diff --git a/README.md b/README.md index 7ece7fc..8bfd9d0 100644 --- a/README.md +++ b/README.md @@ -14,6 +14,10 @@ Plume Framework require at least Java 11. Its modules contains connectors for Plume Framework is maintained by [Coreoz](http://coreoz.com/) and licensed under [Apache License 2.0](http://www.apache.org/licenses/LICENSE-2.0). +Upgrade from 3.x to 4.x +----------------------- +See upgrade instructions in the [release details](https://github.com/Coreoz/Plume/releases/tag/4.0.0). + Upgrade from 2.x to 3.x ----------------------- See upgrade instructions in the [release details](https://github.com/Coreoz/Plume/releases/tag/3.0.0). @@ -39,7 +43,7 @@ it is possible to adapt these connectors to work with Spring or CDI. Demo ---- -Sample projects can be found here: . +Sample projects can be found here: . Getting started --------------- diff --git a/plume-conf/pom.xml b/plume-conf/pom.xml index b1d5d27..2fdfe6e 100644 --- a/plume-conf/pom.xml +++ b/plume-conf/pom.xml @@ -5,7 +5,7 @@ com.coreoz plume-parent - 4.0.1-SNAPSHOT + 4.1.1-SNAPSHOT plume-conf diff --git a/plume-db-querydsl-codegen/pom.xml b/plume-db-querydsl-codegen/pom.xml index 244c246..3ac9ca4 100644 --- a/plume-db-querydsl-codegen/pom.xml +++ b/plume-db-querydsl-codegen/pom.xml @@ -5,7 +5,7 @@ com.coreoz plume-parent - 4.0.1-SNAPSHOT + 4.1.1-SNAPSHOT plume-db-querydsl-codegen diff --git a/plume-db-querydsl/pom.xml b/plume-db-querydsl/pom.xml index ef4f678..8d49f5d 100644 --- a/plume-db-querydsl/pom.xml +++ b/plume-db-querydsl/pom.xml @@ -5,7 +5,7 @@ com.coreoz plume-parent - 4.0.1-SNAPSHOT + 4.1.1-SNAPSHOT plume-db-querydsl diff --git a/plume-db-test/pom.xml b/plume-db-test/pom.xml index e238fc9..dc9ca63 100644 --- a/plume-db-test/pom.xml +++ b/plume-db-test/pom.xml @@ -5,7 +5,7 @@ com.coreoz plume-parent - 4.0.1-SNAPSHOT + 4.1.1-SNAPSHOT plume-db-test diff --git a/plume-db/pom.xml b/plume-db/pom.xml index b80d45e..0bd79a1 100644 --- a/plume-db/pom.xml +++ b/plume-db/pom.xml @@ -5,7 +5,7 @@ com.coreoz plume-parent - 4.0.1-SNAPSHOT + 4.1.1-SNAPSHOT plume-db diff --git a/plume-db/src/main/java/com/coreoz/plume/db/transaction/TransactionManager.java b/plume-db/src/main/java/com/coreoz/plume/db/transaction/TransactionManager.java index af3a7e3..08c7eb2 100644 --- a/plume-db/src/main/java/com/coreoz/plume/db/transaction/TransactionManager.java +++ b/plume-db/src/main/java/com/coreoz/plume/db/transaction/TransactionManager.java @@ -43,7 +43,7 @@ public T executeAndReturn(Function toExecuteOnDb) { Connection connection = null; Boolean initialAutoCommit = null; try { - connection = dataSource.getConnection(); + connection = dataSource().getConnection(); initialAutoCommit = connection.getAutoCommit(); connection.setAutoCommit(false); T result = toExecuteOnDb.apply(connection); @@ -55,7 +55,11 @@ public T executeAndReturn(Function toExecuteOnDb) { connection.rollback(); } } catch (Throwable e2) { - // never mind if the connection cannot be rolled back + // if the rollback failed, raise an exception about the rollback failure + // and the original error + RuntimeException combinedException = new RuntimeException(e2); + combinedException.addSuppressed(e); + throw combinedException; } Throwables.throwIfUnchecked(e); throw new RuntimeException(e); diff --git a/plume-framework-dependencies/pom.xml b/plume-framework-dependencies/pom.xml index bfdffc0..06f0904 100644 --- a/plume-framework-dependencies/pom.xml +++ b/plume-framework-dependencies/pom.xml @@ -5,7 +5,7 @@ com.coreoz plume-parent - 4.0.1-SNAPSHOT + 4.1.1-SNAPSHOT plume-framework-dependencies @@ -14,24 +14,23 @@ Gather versions of various libraries used by Plume Framework - 2.2.2 + 2.3.0 5.1.0 - 2.41 + 2.43.2 31.1-jre 1.18.24 - 1.2.11 - 1.7.32 + 1.4.0 + 2.0.0 1.4.2 7.1.1 5.0.1 5.0.0 1.6.0 - 8.5.8 - 2.1.212 - - 2.13.2 + 9.3.0 + 2.1.214 + 2.14.1 2.35 - 2.1.13 + 2.2.2 2.6.1 1.7 1.2.0 @@ -39,7 +38,7 @@ 2.3.0 4.13.2 - 3.22.0 + 3.23.1 1.1 @@ -201,8 +200,7 @@ com.fasterxml.jackson.core jackson-databind - - 2.13.2.2 + ${jackson.version} com.fasterxml.jackson.core @@ -257,7 +255,7 @@ io.swagger.core.v3 - swagger-annotations + swagger-annotations2 ${swagger.version} diff --git a/plume-mail/pom.xml b/plume-mail/pom.xml index f708980..d9cca6b 100644 --- a/plume-mail/pom.xml +++ b/plume-mail/pom.xml @@ -5,7 +5,7 @@ com.coreoz plume-parent - 4.0.1-SNAPSHOT + 4.1.1-SNAPSHOT plume-mail diff --git a/plume-scheduler/pom.xml b/plume-scheduler/pom.xml index f1cda06..2b40283 100644 --- a/plume-scheduler/pom.xml +++ b/plume-scheduler/pom.xml @@ -5,7 +5,7 @@ com.coreoz plume-parent - 4.0.1-SNAPSHOT + 4.1.1-SNAPSHOT plume-scheduler diff --git a/plume-services/pom.xml b/plume-services/pom.xml index 3753b2b..133bf10 100644 --- a/plume-services/pom.xml +++ b/plume-services/pom.xml @@ -5,7 +5,7 @@ com.coreoz plume-parent - 4.0.1-SNAPSHOT + 4.1.1-SNAPSHOT plume-services diff --git a/plume-web-jersey/pom.xml b/plume-web-jersey/pom.xml index d70aa56..a9fd0f0 100644 --- a/plume-web-jersey/pom.xml +++ b/plume-web-jersey/pom.xml @@ -5,7 +5,7 @@ com.coreoz plume-parent - 4.0.1-SNAPSHOT + 4.1.1-SNAPSHOT plume-web-jersey diff --git a/pom.xml b/pom.xml index dee6af3..cd5a66a 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.coreoz plume-parent - 4.0.1-SNAPSHOT + 4.1.1-SNAPSHOT pom Plume Parent