mirror of
https://github.com/architectury/architectury-loom.git
synced 2026-04-02 13:37:45 -05:00
Fix mods being always being applied to the main sourceset and not the target. (#719)
This commit is contained in:
@@ -37,6 +37,7 @@ import org.gradle.api.plugins.JavaPlugin;
|
||||
import org.gradle.api.provider.Property;
|
||||
import org.gradle.api.provider.Provider;
|
||||
import org.gradle.api.tasks.Internal;
|
||||
import org.gradle.api.tasks.SourceSet;
|
||||
import org.jetbrains.annotations.ApiStatus;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
@@ -53,6 +54,7 @@ public abstract class RemapConfigurationSettings implements Named {
|
||||
public RemapConfigurationSettings(String name) {
|
||||
this.name = name;
|
||||
|
||||
getSourceSet().finalizeValueOnRead();
|
||||
getTargetConfigurationName().finalizeValueOnRead();
|
||||
getClientSourceConfigurationName().finalizeValueOnRead();
|
||||
getOnCompileClasspath().finalizeValueOnRead();
|
||||
@@ -65,6 +67,11 @@ public abstract class RemapConfigurationSettings implements Named {
|
||||
return name;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return The target source set
|
||||
*/
|
||||
public abstract Property<SourceSet> getSourceSet();
|
||||
|
||||
/**
|
||||
* @return The target configuration name
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user