Skip to content

Commit

Permalink
Ensure that there is a single Version file
Browse files Browse the repository at this point in the history
  • Loading branch information
nextgens committed Oct 13, 2017
1 parent 5b0dd92 commit 5884b2e
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -69,18 +69,22 @@ task compileVersion (type: JavaCompile) {
source = "${version_buildir}"
include "${version_src}"
classpath = files(sourceSets.main.compileClasspath, sourceSets.main.output.classesDir)
destinationDir = file("${version_buildir}")
destinationDir = file("${buildDir}/java/version/")
}
compileVersion.dependsOn buildInfo
processResources.dependsOn compileVersion

jar {
task jar (type: Jar, overwrite: true) {
from (compileVersion) {
include 'freenet/node/Version**class'
}
from ("${buildDir}/classes/java/main/") {
exclude 'freenet/node/Version.class'
exclude 'freenet/node/Version$1.class'
}
preserveFileTimestamps = false
reproducibleFileOrder = true
// FIXME: duplicatesStrategy = "exclude"
duplicatesStrategy = "exclude"
archivesBaseName = "freenet"
manifest {
attributes("Permissions": "all-permissions")
Expand Down

0 comments on commit 5884b2e

Please sign in to comment.