Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- plugins {
- ...
- id "org.ajoberstar.grgit" version "3.0.0"
- }
- task createReleaseReportFile() {
- doLast {
- file("$projectDir/src/main/resources/release_note.properties").text = """## Automated generated by Gradle ##
- version=${file("VERSION").text.trim()}
- revision=${Grgit.open(dir: '.').head().id}
- time=${new SimpleDateFormat("dd-MM-yyyy HH:mm:ss").format(new Date())}
- author=${System.properties['user.name']}
- """
- }
- }
- compileJava {
- dependsOn createReleaseReportFile
- }
Add Comment
Please, Sign In to add comment