Skip to content

Commit

Permalink
Bump DB2 Driver to 12.1.0.0
Browse files Browse the repository at this point in the history
It also uses the jakarta.transaction packages, so no need to transform it
  • Loading branch information
gastaldi committed Nov 26, 2024
1 parent e77760f commit bcadf36
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 95 deletions.
2 changes: 1 addition & 1 deletion bom/application/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@
<adal4j.version>1.6.7</adal4j.version>
<oracle-jdbc.version>23.5.0.24.07</oracle-jdbc.version>
<derby-jdbc.version>10.16.1.1</derby-jdbc.version>
<db2-jdbc.version>11.5.8.0</db2-jdbc.version>
<db2-jdbc.version>12.1.0.0</db2-jdbc.version>
<shrinkwrap.version>1.2.6</shrinkwrap.version>
<hamcrest.version>2.2</hamcrest.version><!-- The version needs to be compatible with both REST Assured and Awaitility -->
<junit.jupiter.version>5.10.5</junit.jupiter.version>
Expand Down
2 changes: 1 addition & 1 deletion build-parent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
<!-- Database images for JDBC/Reactive/Hibernate tests and devservices -->
<postgres.image>docker.io/postgres:17</postgres.image>
<mariadb.image>docker.io/mariadb:10.11</mariadb.image>
<db2.image>icr.io/db2_community/db2:11.5.9.0</db2.image>
<db2.image>icr.io/db2_community/db2:12.1.0.0</db2.image>
<mssql.image>mcr.microsoft.com/mssql/server:2022-latest</mssql.image>
<mysql.image>docker.io/mysql:8.4</mysql.image>
<oracle.image>docker.io/gvenzl/oracle-free:23-slim-faststart</oracle.image>
Expand Down
5 changes: 0 additions & 5 deletions extensions/jdbc/jdbc-db2/deployment/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,6 @@
<artifactId>assertj-core</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.eclipse.transformer</groupId>
<artifactId>org.eclipse.transformer</artifactId>
<version>0.5.0</version>
</dependency>
</dependencies>

<build>
Expand Down

This file was deleted.

5 changes: 5 additions & 0 deletions extensions/jdbc/jdbc-db2/runtime/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@
<groupId>io.quarkus</groupId>
<artifactId>quarkus-agroal</artifactId>
</dependency>
<dependency>
<groupId>org.graalvm.sdk</groupId>
<artifactId>nativeimage</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-kubernetes-service-binding</artifactId>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
package io.quarkus.jdbc.db2.runtime.graal;

import java.sql.SQLException;

import com.ibm.db2.jcc.am.Connection;
import com.oracle.svm.core.annotate.Substitute;
import com.oracle.svm.core.annotate.TargetClass;

@TargetClass(Connection.class)
public final class ConnectionSubstitution {

@Substitute
private void checkForLicenseRestrictions() throws SQLException {
// Do nothing
}
}

0 comments on commit bcadf36

Please sign in to comment.