Browse Source

improved copying of licenses.

Signed-off-by: weisj <weisj@arcor.de>
pull/33/head
weisj 5 years ago
parent
commit
2389fa2307
  1. 3
      .gitignore
  2. 30
      build.gradle
  3. 30
      build_x64.gradle
  4. 30
      build_x86.gradle

3
.gitignore vendored

@ -44,3 +44,6 @@ venv/
Thumbs.db Thumbs.db
/.recommenders/ /.recommenders/
/key.gpg /key.gpg
# Project
bin/

30
build.gradle

@ -243,31 +243,15 @@ task buildLibraries {
finalizedBy(copyLibraries) finalizedBy(copyLibraries)
} }
task put_files_in_META_INF { tasks.withType(Jar) {
def resDir = new File(buildDir, 'generated/files_for_META_INF/') from(project.projectDir) {
def destDir = new File(resDir, 'META-INF/') include("LICENSE")
java { into("META-INF/license")
sourceSets {
main.resources {
srcDir resDir
} }
from("${project.projectDir}/licenses") {
include("*")
into("META-INF/license")
} }
}
doLast {
destDir.mkdirs()
copy {
from 'licenses'
into destDir
}
copy {
from 'LICENSE'
into destDir
}
}
}
processResources {
dependsOn('put_files_in_META_INF')
} }
shadowJar { shadowJar {

30
build_x64.gradle

@ -237,31 +237,15 @@ task buildLibraries {
finalizedBy(copyLibraries) finalizedBy(copyLibraries)
} }
task put_files_in_META_INF { tasks.withType(Jar) {
def resDir = new File(buildDir, 'generated/files_for_META_INF/') from(project.projectDir) {
def destDir = new File(resDir, 'META-INF/') include("LICENSE")
java { into("META-INF/license")
sourceSets {
main.resources {
srcDir resDir
} }
from("${project.projectDir}/licenses") {
include("*")
into("META-INF/license")
} }
}
doLast {
destDir.mkdirs()
copy {
from 'licenses'
into destDir
}
copy {
from 'LICENSE'
into destDir
}
}
}
processResources {
dependsOn('put_files_in_META_INF')
} }
shadowJar { shadowJar {

30
build_x86.gradle

@ -237,31 +237,15 @@ task buildLibraries {
finalizedBy(copyLibraries) finalizedBy(copyLibraries)
} }
task put_files_in_META_INF { tasks.withType(Jar) {
def resDir = new File(buildDir, 'generated/files_for_META_INF/') from(project.projectDir) {
def destDir = new File(resDir, 'META-INF/') include("LICENSE")
java { into("META-INF/license")
sourceSets {
main.resources {
srcDir resDir
} }
from("${project.projectDir}/licenses") {
include("*")
into("META-INF/license")
} }
}
doLast {
destDir.mkdirs()
copy {
from 'licenses'
into destDir
}
copy {
from 'LICENSE'
into destDir
}
}
}
processResources {
dependsOn('put_files_in_META_INF')
} }
shadowJar { shadowJar {

Loading…
Cancel
Save