Skip to content

Commit

Permalink
Don't include GraalVM dependencies in lib directory
Browse files Browse the repository at this point in the history
In preparation for oracle/graal#5232
  • Loading branch information
zakkak committed Oct 17, 2022
1 parent be24d38 commit 8d5ddbd
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -416,6 +416,7 @@ public boolean test(String path) {
* <p>
* <ul>
* <li>The dependency is not optional or</li>
* <li>The dependency is not provided by GraalVM or</li>
* <li>The dependency is part of the optional dependencies to include or</li>
* <li>The optional dependencies to include are absent</li>
* </ul>
Expand All @@ -429,6 +430,9 @@ private static boolean includeAppDep(ResolvedDependency appDep, Optional<Set<Art
if (!appDep.isJar()) {
return false;
}
if (appDep.getGroupId().equals("org.graalvm.nativeimage") || appDep.getGroupId().equals("org.graalvm.sdk")) {
return false;
}
if (appDep.isOptional()) {
return optionalDependencies.map(appArtifactKeys -> appArtifactKeys.contains(appDep.getKey()))
.orElse(true);
Expand Down

0 comments on commit 8d5ddbd

Please sign in to comment.