I\'m using Gradle spring-boot plugin and I need to select a spring active profile for the test run.
spring-boot
How do I pass spring.profiles.active sy
spring.profiles.active
According to the spring-boot-gradle-plugin documentation you should be able to pass arguments like this
./gradlew bootRun --args='--spring.profiles.active=dev'
Seems like this is a new gradle feature since 4.9. I used it in my project and it worked out of the box.