From 59fc72d6d8e2ceddc793c09b848edba452a6d202 Mon Sep 17 00:00:00 2001 From: Luke Bemish Date: Sun, 11 Aug 2024 22:24:55 -0500 Subject: [PATCH] Use implementation instead of adding to wrong configurations --- .../sourcesets/SourceSetDependencyExtensionImpl.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/common/src/main/java/net/neoforged/gradle/common/extensions/sourcesets/SourceSetDependencyExtensionImpl.java b/common/src/main/java/net/neoforged/gradle/common/extensions/sourcesets/SourceSetDependencyExtensionImpl.java index 5cab21e1..56e40cbd 100644 --- a/common/src/main/java/net/neoforged/gradle/common/extensions/sourcesets/SourceSetDependencyExtensionImpl.java +++ b/common/src/main/java/net/neoforged/gradle/common/extensions/sourcesets/SourceSetDependencyExtensionImpl.java @@ -44,11 +44,7 @@ public void on(SourceSet sourceSet) { sourceSetInheritanceExtension.from(sourceSet); project.getDependencies().add( - target.getCompileClasspathConfigurationName(), - sourceSet.getOutput() - ); - project.getDependencies().add( - target.getRuntimeClasspathConfigurationName(), + target.getImplementationConfigurationName(), sourceSet.getOutput() ); }