Merge branch '2.0.x'

This commit is contained in:
Andy Wilkinson 2018-10-04 15:56:11 +01:00
commit 76849c12e5
1 changed files with 5 additions and 4 deletions

View File

@ -66,10 +66,11 @@ final class ApplicationPluginAction implements PluginApplicationAction {
.fromString(loadResource("/windowsStartScript.txt")));
project.getConfigurations().all((configuration) -> {
if ("bootArchives".equals(configuration.getName())) {
distribution.getContents()
.with(project.copySpec().into("lib")
.from((Callable<FileCollection>) () -> configuration
.getArtifacts().getFiles()));
CopySpec libCopySpec = project.copySpec().into("lib")
.from((Callable<FileCollection>) () -> configuration
.getArtifacts().getFiles());
libCopySpec.setFileMode(0644);
distribution.getContents().with(libCopySpec);
bootStartScripts.setClasspath(configuration.getArtifacts().getFiles());
}
});