mirror of
https://github.com/architectury/architectury-loom.git
synced 2026-03-30 13:05:27 -05:00
Use conventions in RemapConfiguration to avoid need for afterEvaluate. (#514)
This commit is contained in:
@@ -107,9 +107,9 @@ public class RemapConfiguration {
|
||||
assert remapJarTask != null;
|
||||
|
||||
if (!remapJarTask.getInput().isPresent() && isDefaultRemap) {
|
||||
jarTask.setClassifier("dev");
|
||||
remapJarTask.setClassifier("");
|
||||
remapJarTask.getInput().set(jarTask.getArchivePath());
|
||||
jarTask.getArchiveClassifier().convention("dev");
|
||||
remapJarTask.getArchiveClassifier().convention("");
|
||||
remapJarTask.getInput().convention(jarTask.getArchiveFile());
|
||||
}
|
||||
|
||||
if (isDefaultRemap) {
|
||||
@@ -177,8 +177,8 @@ public class RemapConfiguration {
|
||||
|
||||
RemapSourcesJarTask remapSourcesJarTask = (RemapSourcesJarTask) project.getTasks().findByName(remapSourcesJarTaskName);
|
||||
Preconditions.checkNotNull(remapSourcesJarTask, "Could not find " + remapSourcesJarTaskName + " in " + project.getName());
|
||||
remapSourcesJarTask.getInput().set(sourcesTask.getArchiveFile());
|
||||
remapSourcesJarTask.getOutput().set(sourcesTask.getArchiveFile());
|
||||
remapSourcesJarTask.getInput().convention(sourcesTask.getArchiveFile());
|
||||
remapSourcesJarTask.getOutput().convention(sourcesTask.getArchiveFile());
|
||||
remapSourcesJarTask.dependsOn(project.getTasks().getByName(sourcesJarTaskName));
|
||||
|
||||
if (isDefaultRemap) {
|
||||
|
||||
Reference in New Issue
Block a user