Skip to content

Commit

Permalink
Prevent duplicated resources in the .jar files.
Browse files Browse the repository at this point in the history
  • Loading branch information
steffen-wilke committed Jan 12, 2020
1 parent 60c0466 commit 7340f5b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 32 deletions.
13 changes: 3 additions & 10 deletions build-maven.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,10 @@ apply plugin: 'signing'

sourceSets {
main.java.srcDir "src"
main.java.srcDir "resources"
main.resources.srcDir "resources"

test {
java {
srcDirs = ["tests"]
}
resources {
srcDirs = ["tests"]
} }
test.java.srcDir "tests"
test.resources.srcDir "tests"
}

repositories {
Expand Down Expand Up @@ -53,8 +48,6 @@ jar {
exclude 'META-INF/services/**'
}

from('resources') { include '**/*' }

version = 'v0.4.18-alpha'
exclude '**/*.dll'
exclude '**/*.jnilib'
Expand Down
15 changes: 3 additions & 12 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,23 +16,16 @@ natives {

apply plugin: 'java'
apply plugin: 'jacoco'
apply plugin: 'maven'

archivesBaseName = "litiengine"
version = "v0.4.18-alpha"

sourceSets {
main.java.srcDir "src"
main.java.srcDir "resources"
main.resources.srcDir "resources"

test {
java {
srcDirs = ["tests"]
}
resources {
srcDirs = ["tests"]
}
}
test.java.srcDir "tests"
test.resources.srcDir "tests"
}

repositories {
Expand Down Expand Up @@ -72,8 +65,6 @@ jar {
} {
exclude 'META-INF/services/**'
}

from('resources') { include '**/*' }

exclude '**/*.dll'
exclude '**/*.jnilib'
Expand Down
12 changes: 2 additions & 10 deletions utiliti/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,8 @@ sourceSets {
main.resources.srcDir "resources"
main.resources.srcDir "localization"

test {
java {
srcDirs = ["tests"]
}

resources {
srcDirs = ["tests"]
}
}
test.java.srcDir "tests"
test.resources.srcDir "tests"
}

dependencies {
Expand Down Expand Up @@ -51,7 +44,6 @@ jar {
exclude 'META-INF/services/**'
}

from('resources') { include '**/*' }
exclude '**/*.dll'
exclude '**/*.jnilib'
exclude '**/*.dylib'
Expand Down

0 comments on commit 7340f5b

Please sign in to comment.