Topcoder Direct AWS Lambda Function - Add Replace Tokens Logic When Copying in Gradle

Key Information

Register
Submit
The challenge is finished.

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.
jndi host and port
informix host, port, username and password
auth0 client id and client secret
2. Update src/main/resources/config.properties  to use tokens
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 

 

Final Submission Guidelines

New/Updated files

ELIGIBLE EVENTS:

2016 TopCoder(R) Open

REVIEW STYLE:

Final Review:

Community Review Board

Approval:

User Sign-Off

SHARE:

ID: 30053929