Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
plugins {
id 'java-library'
repositories {
dependencies {
api 'org.apache.commons:commons-math3:3.6.1'
implementation ''
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