In my project I have Gradle task for integration test in sub-module:
task intTest(type: Test) {
...
system.properties System.properties
...
this is the main point to inject all your system params into test environment. So, now you can run gradle like this to pass param with ABC value and use its value by ${param} in your code
gradle :some-service:intTest -Dparam=ABC