Skip to content

Commit

Permalink
Replace git-properties with task that just writes out the project ver…
Browse files Browse the repository at this point in the history
…sion

The additional git properties are nice to have, however the
git-properties plugin relies on jgit and that doesn't support git
worktrees.

https://bugs.eclipse.org/bugs/show_bug.cgi?id=477475
n0mer/gradle-git-properties#14
  • Loading branch information
jpschewe committed Mar 30, 2024
1 parent 899eb76 commit 48ad841
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ plugins {
id "com.github.spotbugs" version "5.0.13"
id "de.aaschmid.cpd" version "3.3"
id "edu.sc.seis.launch4j" version "2.5.4"
id "com.gorylenko.gradle-git-properties" version "2.4.1"
id "com.github.ben-manes.versions" version "0.46.0" // adds dependencyUpdates task
id "de.undercouch.download" version "5.3.1" // file download
id "checkstyle"
Expand Down Expand Up @@ -617,13 +616,11 @@ tasks.withType(com.github.spotbugs.snom.SpotBugsTask) {
}
gitProperties {
gitPropertiesResourceDir = file("${buildDir}/resources/main/fll/resources")
}
tasks.register("writeVersion", WriteProperties) {
outputFile = file("${buildDir}/resources/main/fll/resources/git.properties")
property "git.build.version", project.version
}
tasks.named("classes") { finalizedBy("writeVersion") }
tasks.register("writeLaunchJar", Jar) {
destinationDirectory = project.buildDir
Expand Down

0 comments on commit 48ad841

Please sign in to comment.