Add inputs to gradle bootRepackage task

See gh-1113
This commit is contained in:
Dave Syer 2014-06-20 22:24:19 +01:00
parent 0768402d49
commit 772df9bea7
2 changed files with 5 additions and 0 deletions

View File

@ -25,6 +25,10 @@ apply plugin: 'spring-boot'
mainClassName = "sample.ui.SampleWebUiApplication"
springBoot {
classifier = 'exec'
}
jar {
baseName = 'spring-boot-sample-web-ui'
version = '0.0.0'

View File

@ -93,6 +93,7 @@ public class RepackagePluginFeatures implements PluginFeatures {
File file = archive.getArchivePath();
String classifier = this.task.getClassifier();
if (classifier != null) {
this.task.getInputs().file(archive);
String withClassifer = file.getName();
withClassifer = StringUtils.stripFilenameExtension(withClassifer)
+ "-" + classifier + "."