cpe
03/27/2020, 11:53 AMtasks.register("bootRunDev") {
System.setProperty("spring.profiles.active", "dev")
finalizedBy(tasks.bootRun)
}
However, this is not working - the property is not recognized. I also tried to extend the BootRun
Profile:
task<BootRun>("bootRunDev") {
systemProperties["spring.profiles.active"] = "dev"
dependsOn("bootRun")
}
Both approaches don’t work.
Is there a way to do it?Lex Luthor
04/22/2020, 11:54 PMtasks.create("bootRunDev") {
val bootRun: BootRun by project.tasks
bootRun.args = listOf("--spring.profiles.active=dev")
dependsOn(bootRun)
}