-
-
Save calclavia/60b30c497adce5587f70 to your computer and use it in GitHub Desktop.
Create property file with Gradle
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def propertyFile = file "src/main/resources/META-INF/some.properties" | |
def props = new Properties() | |
propertyFile.withReader { props.load(it) } | |
props.setProperty("version", project.version) | |
propertyFile.withWriter { props.store(it) } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://discuss.gradle.org/t/any-way-to-send-gradle-parameters-to-jenkins/26521/3