Skip to content

Commit 772df9b

Browse files
author
Dave Syer
committed
Add inputs to gradle bootRepackage task
See gh-1113
1 parent 0768402 commit 772df9b

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

spring-boot-samples/spring-boot-sample-web-ui/build.gradle

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ apply plugin: 'spring-boot'
2525

2626
mainClassName = "sample.ui.SampleWebUiApplication"
2727

28+
springBoot {
29+
classifier = 'exec'
30+
}
31+
2832
jar {
2933
baseName = 'spring-boot-sample-web-ui'
3034
version = '0.0.0'

spring-boot-tools/spring-boot-gradle-plugin/src/main/groovy/org/springframework/boot/gradle/repackage/RepackagePluginFeatures.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ public void execute(Jar archive) {
9393
File file = archive.getArchivePath();
9494
String classifier = this.task.getClassifier();
9595
if (classifier != null) {
96+
this.task.getInputs().file(archive);
9697
String withClassifer = file.getName();
9798
withClassifer = StringUtils.stripFilenameExtension(withClassifer)
9899
+ "-" + classifier + "."

0 commit comments

Comments
 (0)