I\'m trying to set up gradle to launch the bootRun process with various spring profiles enabled.
My current bootRun configuration looks lik
Kotlin edition: Define the following task in you build.gradle.kts file:
tasks.named("bootRun") {
args("--spring.profiles.active=dev")
}
This will pass the parameter --spring.profiles.active=dev to bootRun, where the profile name is dev in this case.
Every time you run gradle bootRun the profile dev is used.