mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-09-03 04:26:12 +08:00
Add inputs to gradle bootRepackage task
See gh-1113
This commit is contained in:
parent
0768402d49
commit
772df9bea7
@ -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 + "."
|
||||
|
Loading…
Reference in New Issue
Block a user