File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
src/legacy/java/net/neoforged/moddevgradle/legacyforge/dsl Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change 1919import org .gradle .api .component .ConfigurationVariantDetails ;
2020import org .gradle .api .file .FileCollection ;
2121import org .gradle .api .file .RegularFileProperty ;
22- import org .gradle .api .plugins .JavaPlugin ;
2322import org .gradle .api .provider .Provider ;
2423import org .gradle .api .tasks .SourceSet ;
2524import org .gradle .api .tasks .TaskProvider ;
@@ -123,7 +122,7 @@ public TaskProvider<RemapJar> reobfuscate(TaskProvider<? extends AbstractArchive
123122 // Replace the publication of the jar task with the reobfuscated jar
124123 var configurations = project .getConfigurations ();
125124 var java = (AdhocComponentWithVariants ) project .getComponents ().getByName ("java" );
126- for (var configurationName : List .of (JavaPlugin . RUNTIME_ELEMENTS_CONFIGURATION_NAME , JavaPlugin . API_ELEMENTS_CONFIGURATION_NAME )) {
125+ for (var configurationName : List .of (sourceSet . getRuntimeElementsConfigurationName (), sourceSet . getApiElementsConfigurationName () )) {
127126 var config = configurations .getByName (configurationName );
128127 // Mark the original configuration as NAMED to be able to disambiguate between it and the reobfuscated jar,
129128 // this is used for example by the JarJar configuration.
You can’t perform that action at this time.
0 commit comments