-
Notifications
You must be signed in to change notification settings - Fork 41.6k
Closed
Description
Configuring the applicationName should result in the distribution directory changing, however setting applicationName = 'foo' in a project called spring-boot results in this structure:
.
├── build
│ ├── bootScripts
│ │ ├── foo
│ │ └── foo.bat
│ ├── install
│ │ └── spring-boot-boot
│ │ ├── bin
│ │ │ ├── foo
│ │ │ └── foo.bat
│ │ └── lib
│ │ └── spring-boot.jar
│ ├── libs
│ │ └── spring-boot.jar
│ └── tmp
│ └── bootJar
│ └── MANIFEST.MF
└── build.gradle
Note the install/spring-boot-boot directory, I'd expect install/foo-boot in this case. I can workaround the problem by using:
project.afterEvaluate {
project.distributions {
boot {
baseName = "${project.distributions.main.baseName}-boot"
}
}
}
FWIW, this is what the DistributionPlugin does:
We ran into this while adding a Spring Boot application plugin variant to our ospackage plugin:
Metadata
Metadata
Assignees
Labels
type: enhancementA general enhancementA general enhancement