remapJar should, by default, add nested dependencies
parent
788df9cfc7
commit
38c395b2e7
|
@ -291,6 +291,8 @@ public class AbstractPlugin implements Plugin<Project> {
|
|||
remapJarTask.setInput(jarTask.getArchivePath());
|
||||
}
|
||||
|
||||
remapJarTask.setAddNestedDependencies(true);
|
||||
|
||||
remapJarTask.doLast(task -> project1.getArtifacts().add("archives", remapJarTask.getOutput()));
|
||||
remapJarTask.dependsOn(project1.getTasks().getByName("jar"));
|
||||
project1.getTasks().getByName("build").dependsOn(remapJarTask);
|
||||
|
|
Loading…
Reference in New Issue