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. 32
      build.gradle
  3. 32
      build_x64.gradle
  4. 32
      build_x86.gradle
  5. 2
      settings.gradle

3
.gitignore vendored

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

32
build.gradle

@ -243,33 +243,17 @@ task buildLibraries {
finalizedBy(copyLibraries)
}
task put_files_in_META_INF {
def resDir = new File(buildDir, 'generated/files_for_META_INF/')
def destDir = new File(resDir, 'META-INF/')
java {
sourceSets {
main.resources {
srcDir resDir
}
}
tasks.withType(Jar) {
from(project.projectDir) {
include("LICENSE")
into("META-INF/license")
}
doLast {
destDir.mkdirs()
copy {
from 'licenses'
into destDir
}
copy {
from 'LICENSE'
into destDir
}
from("${project.projectDir}/licenses") {
include("*")
into("META-INF/license")
}
}
processResources {
dependsOn('put_files_in_META_INF')
}
shadowJar {
exclude 'help/'
exclude 'icons/'
@ -286,4 +270,4 @@ shadowJar {
exclude 'com/sun/jna/sunos-sparcv9/'
exclude 'com/sun/jna/sunos-x86/'
exclude 'com/sun/jna/sunos-x86-64/'
}
}

32
build_x64.gradle

@ -237,33 +237,17 @@ task buildLibraries {
finalizedBy(copyLibraries)
}
task put_files_in_META_INF {
def resDir = new File(buildDir, 'generated/files_for_META_INF/')
def destDir = new File(resDir, 'META-INF/')
java {
sourceSets {
main.resources {
srcDir resDir
}
}
tasks.withType(Jar) {
from(project.projectDir) {
include("LICENSE")
into("META-INF/license")
}
doLast {
destDir.mkdirs()
copy {
from 'licenses'
into destDir
}
copy {
from 'LICENSE'
into destDir
}
from("${project.projectDir}/licenses") {
include("*")
into("META-INF/license")
}
}
processResources {
dependsOn('put_files_in_META_INF')
}
shadowJar {
exclude 'help/'
exclude 'icons/'
@ -280,4 +264,4 @@ shadowJar {
exclude 'com/sun/jna/sunos-sparcv9/'
exclude 'com/sun/jna/sunos-x86/'
exclude 'com/sun/jna/sunos-x86-64/'
}
}

32
build_x86.gradle

@ -237,33 +237,17 @@ task buildLibraries {
finalizedBy(copyLibraries)
}
task put_files_in_META_INF {
def resDir = new File(buildDir, 'generated/files_for_META_INF/')
def destDir = new File(resDir, 'META-INF/')
java {
sourceSets {
main.resources {
srcDir resDir
}
}
tasks.withType(Jar) {
from(project.projectDir) {
include("LICENSE")
into("META-INF/license")
}
doLast {
destDir.mkdirs()
copy {
from 'licenses'
into destDir
}
copy {
from 'LICENSE'
into destDir
}
from("${project.projectDir}/licenses") {
include("*")
into("META-INF/license")
}
}
processResources {
dependsOn('put_files_in_META_INF')
}
shadowJar {
exclude 'help/'
exclude 'icons/'
@ -280,4 +264,4 @@ shadowJar {
exclude 'com/sun/jna/sunos-sparcv9/'
exclude 'com/sun/jna/sunos-x86/'
exclude 'com/sun/jna/sunos-x86-64/'
}
}

2
settings.gradle

@ -1 +1 @@
rootProject.name = 'darklaf'
rootProject.name = 'darklaf'
Loading…
Cancel
Save