From 4a5bdc0fbcfd4f37c9fdd3e20a6be46068e0814c Mon Sep 17 00:00:00 2001 From: Rafael Winterhalter Date: Wed, 9 Aug 2023 22:53:32 +0200 Subject: [PATCH] Add platform loader to Gradle provided class file locator. --- .../java/net/bytebuddy/build/gradle/AbstractByteBuddyTask.java | 1 + 1 file changed, 1 insertion(+) diff --git a/byte-buddy-gradle-plugin/src/main/java/net/bytebuddy/build/gradle/AbstractByteBuddyTask.java b/byte-buddy-gradle-plugin/src/main/java/net/bytebuddy/build/gradle/AbstractByteBuddyTask.java index 261e9d208b..049c950018 100644 --- a/byte-buddy-gradle-plugin/src/main/java/net/bytebuddy/build/gradle/AbstractByteBuddyTask.java +++ b/byte-buddy-gradle-plugin/src/main/java/net/bytebuddy/build/gradle/AbstractByteBuddyTask.java @@ -418,6 +418,7 @@ protected void doApply(Plugin.Engine.Source source, Plugin.Engine.Target target) } } List classFileLocators = new ArrayList(); + classFileLocators.add(ClassFileLocator.ForClassLoader.ofPlatformLoader()); for (File artifact : classPath()) { classFileLocators.add(artifact.isFile() ? ClassFileLocator.ForJarFile.of(artifact)