I\'m trying to set up gradle to launch the bootRun process with various spring profiles enabled.
bootRun
My current bootRun configuration looks lik
In your build.gradle file simply use the following snippet
build.gradle
bootRun { args = ["--spring.profiles.active=${project.properties['profile'] ?: 'prod'}"] }
And then run following command to use dev profile:
dev
./gradlew bootRun -Pprofile=dev