HHH-15484 Switch GraalVM native-image dependencies to org.graalvm.sdk:graal-sdk

This commit is contained in:
Sanne Grinovero 2022-09-06 23:36:12 +01:00 committed by Sanne Grinovero
parent c0afae8cb3
commit b57f4a6b12
3 changed files with 1 additions and 5 deletions

View File

@ -12,7 +12,7 @@ apply from: rootProject.file( 'gradle/published-java-module.gradle' )
dependencies { dependencies {
//No need for transitive dependencies: this is all just metadata to be used as companion jar. //No need for transitive dependencies: this is all just metadata to be used as companion jar.
compileOnly project( ':hibernate-core' ) compileOnly project( ':hibernate-core' )
compileOnly "org.graalvm.nativeimage:svm:22.0.0.2" compileOnly "org.graalvm.sdk:graal-sdk:22.2.0"
testImplementation project( ':hibernate-core' ) testImplementation project( ':hibernate-core' )
} }

View File

@ -12,7 +12,6 @@ import java.util.ArrayList;
import org.hibernate.internal.util.ReflectHelper; import org.hibernate.internal.util.ReflectHelper;
import com.oracle.svm.core.annotate.AutomaticFeature;
import org.graalvm.nativeimage.hosted.Feature; import org.graalvm.nativeimage.hosted.Feature;
import org.graalvm.nativeimage.hosted.RuntimeReflection; import org.graalvm.nativeimage.hosted.RuntimeReflection;
@ -34,7 +33,6 @@ import org.graalvm.nativeimage.hosted.RuntimeReflection;
* </p> * </p>
* @author Sanne Grinovero * @author Sanne Grinovero
*/ */
@AutomaticFeature
public class GraalVMStaticAutofeature implements Feature { public class GraalVMStaticAutofeature implements Feature {
public void beforeAnalysis(Feature.BeforeAnalysisAccess before) { public void beforeAnalysis(Feature.BeforeAnalysisAccess before) {

View File

@ -14,7 +14,6 @@ import java.util.concurrent.atomic.AtomicBoolean;
import org.hibernate.internal.build.AllowSysOut; import org.hibernate.internal.build.AllowSysOut;
import org.hibernate.internal.util.ReflectHelper; import org.hibernate.internal.util.ReflectHelper;
import com.oracle.svm.core.annotate.AutomaticFeature;
import org.graalvm.nativeimage.hosted.Feature; import org.graalvm.nativeimage.hosted.Feature;
import org.graalvm.nativeimage.hosted.RuntimeReflection; import org.graalvm.nativeimage.hosted.RuntimeReflection;
@ -33,7 +32,6 @@ import org.graalvm.nativeimage.hosted.RuntimeReflection;
* *
* @author Sanne Grinovero * @author Sanne Grinovero
*/ */
@AutomaticFeature
public final class QueryParsingSupport implements Feature { public final class QueryParsingSupport implements Feature {
private final AtomicBoolean triggered = new AtomicBoolean( false); private final AtomicBoolean triggered = new AtomicBoolean( false);