mirror of
https://github.com/architectury/architectury-loom.git
synced 2026-03-30 13:05:27 -05:00
Add option to isolate the tiny remapper instance between sub-projects. (#588)
This commit is contained in:
@@ -58,6 +58,12 @@ public abstract class AbstractRemapJarTask extends Jar {
|
||||
@Input
|
||||
public abstract Property<String> getTargetNamespace();
|
||||
|
||||
/**
|
||||
* When enabled the TinyRemapperService will not be shared across sub projects.
|
||||
*/
|
||||
@Input
|
||||
public abstract Property<Boolean> getRemapperIsolation();
|
||||
|
||||
@Inject
|
||||
protected abstract WorkerExecutor getWorkerExecutor();
|
||||
|
||||
@@ -65,6 +71,7 @@ public abstract class AbstractRemapJarTask extends Jar {
|
||||
public AbstractRemapJarTask() {
|
||||
getSourceNamespace().convention(MappingsNamespace.NAMED.toString()).finalizeValueOnRead();
|
||||
getTargetNamespace().convention(MappingsNamespace.INTERMEDIARY.toString()).finalizeValueOnRead();
|
||||
getRemapperIsolation().convention(false).finalizeValueOnRead();
|
||||
}
|
||||
|
||||
public final <P extends AbstractRemapParams> void submitWork(Class<? extends AbstractRemapAction<P>> workAction, Action<P> action) {
|
||||
|
||||
Reference in New Issue
Block a user