Challenge Overview
For this challenge, you are expected to update the gradle build to add replace tokens logic when build.
For different environments, we need to update files in src/main/resources directory manually. so'd like to improve this.
1. Add a token.properties file in base directory, to contains the tokens to replace in src/main/resources/config.properties
Following fields need to be toknized.
3. Update the gradle configuration to use the token.properties file to replace token when build.
How to verify
to verify it is easy, after running 'gradle build', you can check buid/resources/main/config.properties to see the value are populated properly as same as the original src/main/resources/config.properties
For different environments, we need to update files in src/main/resources directory manually. so'd like to improve this.
1. Add a token.properties file in base directory, to contains the tokens to replace in src/main/resources/config.properties
Following fields need to be toknized.
2. Update src/main/resources/config.properties to use tokensjndi host and port
informix host, port, username and password
auth0 client id and client secret
3. Update the gradle configuration to use the token.properties file to replace token when build.
How to verify
to verify it is easy, after running 'gradle build', you can check buid/resources/main/config.properties to see the value are populated properly as same as the original src/main/resources/config.properties