Don't overwrite information set in RemapJar configure blocks after configure (#52)
This commit is contained in:
parent
a6507ef7a1
commit
22507be8da
1 changed files with 1 additions and 1 deletions
|
@ -259,7 +259,7 @@ public class AbstractPlugin implements Plugin<Project> {
|
|||
AbstractArchiveTask jarTask = (AbstractArchiveTask) project1.getTasks().getByName("jar");
|
||||
|
||||
RemapJar remapJarTask = (RemapJar) project1.getTasks().findByName("remapJar");
|
||||
remapJarTask.jar = jarTask.getArchivePath();
|
||||
if (remapJarTask.jar==null) remapJarTask.jar = jarTask.getArchivePath();
|
||||
remapJarTask.doLast(task -> project1.getArtifacts().add("archives", remapJarTask.jar));
|
||||
remapJarTask.dependsOn(project1.getTasks().getByName("jar"));
|
||||
project1.getTasks().getByName("build").dependsOn(remapJarTask);
|
||||
|
|
Loading…
Reference in a new issue