Commit 772df9be authored by Dave Syer's avatar Dave Syer

Add inputs to gradle bootRepackage task

See gh-1113
parent 0768402d
......@@ -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'
......
......@@ -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 + "."
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment