Skip to content

Commit

Permalink
Upgrade H2 to 2.2.220
Browse files Browse the repository at this point in the history
(cherry picked from commit aa83e46)
  • Loading branch information
gsmet committed Aug 10, 2023
1 parent 63c7aa5 commit 8022a3f
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bom/application/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@
<httpasync.version>4.1.5</httpasync.version>
<cronutils.version>9.2.1</cronutils.version>
<quartz.version>2.3.2</quartz.version>
<h2.version>2.1.214</h2.version> <!-- When updating, needs to be matched in io.quarkus.hibernate.orm.runtime.config.DialectVersions -->
<h2.version>2.2.220</h2.version> <!-- When updating, needs to be matched in io.quarkus.hibernate.orm.runtime.config.DialectVersions -->
<postgresql-jdbc.version>42.6.0</postgresql-jdbc.version>
<mariadb-jdbc.version>3.1.4</mariadb-jdbc.version>
<mysql-jdbc.version>8.0.30</mysql-jdbc.version>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public static final class Defaults {
public static final String ORACLE = "12";

// This must be aligned on the H2 version in the Quarkus BOM
public static final String H2 = "2.1.210";
public static final String H2 = "2.2.220";

private Defaults() {
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package io.quarkus.jdbc.h2.deployment;

import java.util.Set;

import io.quarkus.agroal.spi.JdbcDriverBuildItem;
import io.quarkus.arc.deployment.AdditionalBeanBuildItem;
import io.quarkus.arc.processor.BuiltinScope;
Expand All @@ -12,10 +14,12 @@
import io.quarkus.deployment.annotations.BuildProducer;
import io.quarkus.deployment.annotations.BuildStep;
import io.quarkus.deployment.builditem.FeatureBuildItem;
import io.quarkus.deployment.builditem.RemovedResourceBuildItem;
import io.quarkus.deployment.builditem.SslNativeConfigBuildItem;
import io.quarkus.deployment.builditem.nativeimage.NativeImageEnableModule;
import io.quarkus.deployment.builditem.nativeimage.RuntimeInitializedClassBuildItem;
import io.quarkus.jdbc.h2.runtime.H2AgroalConnectionConfigurer;
import io.quarkus.maven.dependency.ArtifactKey;

public class JDBCH2Processor {

Expand Down Expand Up @@ -62,4 +66,10 @@ NativeImageEnableModule registerNetModuleForNative() {
//Compiling H2 to native requires activating the jdk.net module of the JDK
return new NativeImageEnableModule("jdk.net");
}

@BuildStep
void excludeNativeImageDirectives(BuildProducer<RemovedResourceBuildItem> removedResources) {
removedResources.produce(new RemovedResourceBuildItem(ArtifactKey.fromString("com.h2database:h2"),
Set.of("META-INF/native-image/reflect-config.json")));
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package io.quarkus.jdbc.h2.runtime.graalvm;

import com.oracle.svm.core.annotate.Delete;
import com.oracle.svm.core.annotate.TargetClass;

@Delete
@TargetClass(className = "org.h2.fulltext.FullTextLucene")
public final class DeleteFullTextLucene {

}

0 comments on commit 8022a3f

Please sign in to comment.