parent
0768402d49
commit
772df9bea7
|
@ -25,6 +25,10 @@ apply plugin: 'spring-boot'
|
||||||
|
|
||||||
mainClassName = "sample.ui.SampleWebUiApplication"
|
mainClassName = "sample.ui.SampleWebUiApplication"
|
||||||
|
|
||||||
|
springBoot {
|
||||||
|
classifier = 'exec'
|
||||||
|
}
|
||||||
|
|
||||||
jar {
|
jar {
|
||||||
baseName = 'spring-boot-sample-web-ui'
|
baseName = 'spring-boot-sample-web-ui'
|
||||||
version = '0.0.0'
|
version = '0.0.0'
|
||||||
|
|
|
@ -93,6 +93,7 @@ public class RepackagePluginFeatures implements PluginFeatures {
|
||||||
File file = archive.getArchivePath();
|
File file = archive.getArchivePath();
|
||||||
String classifier = this.task.getClassifier();
|
String classifier = this.task.getClassifier();
|
||||||
if (classifier != null) {
|
if (classifier != null) {
|
||||||
|
this.task.getInputs().file(archive);
|
||||||
String withClassifer = file.getName();
|
String withClassifer = file.getName();
|
||||||
withClassifer = StringUtils.stripFilenameExtension(withClassifer)
|
withClassifer = StringUtils.stripFilenameExtension(withClassifer)
|
||||||
+ "-" + classifier + "."
|
+ "-" + classifier + "."
|
||||||
|
|
Loading…
Reference in New Issue