From 1b5f99c77f7e339a9a18d91202bb7f5fa9f6aaa3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Manteaux?= Date: Thu, 19 Sep 2024 16:45:32 +0200 Subject: [PATCH] Fix build --- plume-db-querydsl/pom.xml | 4 ++++ .../db/querydsl/transaction/TransactionManagerQuerydsl.java | 6 +++--- plume-framework-dependencies/pom.xml | 6 ++++++ 3 files changed, 13 insertions(+), 3 deletions(-) diff --git a/plume-db-querydsl/pom.xml b/plume-db-querydsl/pom.xml index 44bdc0a..55d19ee 100644 --- a/plume-db-querydsl/pom.xml +++ b/plume-db-querydsl/pom.xml @@ -52,6 +52,10 @@ lombok provided + + com.pivovarit + throwing-function + diff --git a/plume-db-querydsl/src/main/java/com/coreoz/plume/db/querydsl/transaction/TransactionManagerQuerydsl.java b/plume-db-querydsl/src/main/java/com/coreoz/plume/db/querydsl/transaction/TransactionManagerQuerydsl.java index ede632c..bda9886 100644 --- a/plume-db-querydsl/src/main/java/com/coreoz/plume/db/querydsl/transaction/TransactionManagerQuerydsl.java +++ b/plume-db-querydsl/src/main/java/com/coreoz/plume/db/querydsl/transaction/TransactionManagerQuerydsl.java @@ -12,12 +12,13 @@ import com.typesafe.config.Config; import jakarta.inject.Inject; import jakarta.inject.Singleton; -import lombok.SneakyThrows; import javax.sql.DataSource; import java.sql.Connection; import java.util.function.Supplier; +import static com.pivovarit.function.ThrowingSupplier.unchecked; + @Singleton public class TransactionManagerQuerydsl extends TransactionManager { @@ -84,8 +85,7 @@ private > T autoCloseQuery(T query) { return query; } - @SneakyThrows private Supplier getConnectionProvider() { - return dataSource()::getConnection; + return unchecked(dataSource()::getConnection); } } diff --git a/plume-framework-dependencies/pom.xml b/plume-framework-dependencies/pom.xml index 8d0970f..a314956 100644 --- a/plume-framework-dependencies/pom.xml +++ b/plume-framework-dependencies/pom.xml @@ -38,6 +38,7 @@ 4.1.2 4.8.161 3.9.6 + 1.5.1 4.13.2 3.23.1 @@ -134,6 +135,11 @@ lombok ${lombok.version} + + com.pivovarit + throwing-function + ${throwing-function.version} + com.typesafe config