I have a Spring Boot Gradle project with yml configuration:
spring:
datasource:
username:
password:
url:
When I run ./gradlew clean build
Gradle runs all my tests.
How can I pass datasource parameters using command-line?
I tried something like ./gradlew clean build -Dspring.datasource.url...
but it doesn't work.
I Also tried ./gradlew clean build -Pspring.datasource.url
, created a variable inside gradle.build and then set systemProperty, but it also doesn't work.
Does anyone have an easy solution?