remapJar should, by default, add nested dependencies

dev/0.11
Adrian Siekierka 2019-05-11 18:38:01 +02:00
parent 788df9cfc7
commit 38c395b2e7
1 changed files with 2 additions and 0 deletions

View File

@ -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);