plugins { | |
id 'java-library' | |
} | |
repositories { | |
jcenter() | |
} | |
dependencies { | |
api 'org.apache.commons:commons-math3:3.6.1' | |
implementation 'com.google.guava:guava:26.0-jre' | |
testImplementation 'junit:junit:4.12' | |
} | |
def getEnv() { | |
String d = System.getProperty('env') | |
return d; | |
} | |
task replaceYml() { | |
ant.replaceregexp(file: "src/main/resources/application.yml", match: "^.*active:\\s+(.*)", replace: " active: " + getEnv(), byline: "true", encoding: "UTF-8") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment