Skip to content

Commit

Permalink
Merge pull request #35873 from zakkak/2023-09-12-rm-more-arteftacts
Browse files Browse the repository at this point in the history
Exclude new GraalVM dependencies that are part of GraalVM/Mandrel
  • Loading branch information
zakkak authored Sep 13, 2023
2 parents 3eaf30e + 9838aae commit 08961a5
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1003,11 +1003,15 @@ private NativeImageSourceJarBuildItem buildNativeImageThinJar(CurateOutcomeBuild

// Remove svm and graal-sdk artifacts as they are provided by GraalVM itself
if (classLoadingConfig.removedArtifacts.isEmpty()) {
classLoadingConfig.removedArtifacts = Optional.of(new ArrayList<>(2));
classLoadingConfig.removedArtifacts = Optional.of(new ArrayList<>(6));
}
List<String> removedArtifacts = classLoadingConfig.removedArtifacts.get();
removedArtifacts.add("org.graalvm.nativeimage:svm");
removedArtifacts.add("org.graalvm.sdk:graal-sdk");
removedArtifacts.add("org.graalvm.sdk:nativeimage");
removedArtifacts.add("org.graalvm.sdk:word");
removedArtifacts.add("org.graalvm.sdk:collections");
removedArtifacts.add("org.graalvm.polyglot:polyglot");

doLegacyThinJarGeneration(curateOutcomeBuildItem, outputTargetBuildItem, transformedClasses,
applicationArchivesBuildItem, applicationInfo, packageConfig, generatedResources, libDir, allClasses,
Expand Down

0 comments on commit 08961a5

Please sign in to comment.