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
Just for reference if anyone will have this issue:
Vlad answer didn't quite worked for me but this one works great with 2.4,
task local <<{ bootRun { systemProperty "spring.profiles.active", "local" } } local.finalizedBy bootRun
then gradle local
gradle local