I am trying to learn using gradle with springboot from maven so I wanted to know how I can run my project in command line to pick up a different configuration file. The scenario here is I have my properties eg.
application-qa.properties and application.properties
however If run gradle with something like ./gradlew -PspringProfile=qa bootRun
It loads only the default properties in application.properties and not the qa properties.
How do I accomplish that with gradle as with maven before?
This is what I have tried. I created gradle run config in IntelliJ but this has not also worked,
Is there a commad-line option?