SpringBoot: unable to create fully executable jar with 2.0.0-M3
I have a project with multiple Gradle modules and I tried to upgrade to 2.0.0-M3. Following the instructions here , I added this to my build script:
springBoot {
executable = true
}
But when I create I get the following error:
Could not set unknown property 'executable' for object of type org.springframework.boot.gradle.dsl.SpringBootExtension.
Is it something broken in the milestone or am I doing something wrong?
source to share
The configuration for this changed in Spring Boot 2.0. Instead of customizing it on an extension springBoot
, it is now customized for a separate task BootJar
orBootWar
. For example:
bootJar {
launchScript {
included = true
}
}
As with Spring Boot 2.0 M4, this configuration has been simplified even further:
bootJar {
launchScript()
}
You might want to open the issue to fix the documentation you linked to as it is out of date.
source to share