Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
amanteaux committed Sep 19, 2024
1 parent 0409b73 commit 1b5f99c
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
4 changes: 4 additions & 0 deletions plume-db-querydsl/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@
<artifactId>lombok</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.pivovarit</groupId>
<artifactId>throwing-function</artifactId>
</dependency>

<!-- Tests -->
<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 {

Expand Down Expand Up @@ -84,8 +85,7 @@ private <T extends AbstractSQLClause<?>> T autoCloseQuery(T query) {
return query;
}

@SneakyThrows
private Supplier<Connection> getConnectionProvider() {
return dataSource()::getConnection;
return unchecked(dataSource()::getConnection);
}
}
6 changes: 6 additions & 0 deletions plume-framework-dependencies/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
<dropwizard-metrics.version>4.1.2</dropwizard-metrics.version>
<classgraph.version>4.8.161</classgraph.version>
<maven-model.version>3.9.6</maven-model.version>
<throwing-function.version>1.5.1</throwing-function.version>

<junit.version>4.13.2</junit.version>
<assertj.version>3.23.1</assertj.version>
Expand Down Expand Up @@ -134,6 +135,11 @@
<artifactId>lombok</artifactId>
<version>${lombok.version}</version>
</dependency>
<dependency>
<groupId>com.pivovarit</groupId>
<artifactId>throwing-function</artifactId>
<version>${throwing-function.version}</version>
</dependency>
<dependency>
<groupId>com.typesafe</groupId>
<artifactId>config</artifactId>
Expand Down

0 comments on commit 1b5f99c

Please sign in to comment.