Skip to content

Commit 2036c77

Browse files
committed
excluding files that prohibit jar from running
1 parent a7e57f2 commit 2036c77

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

build.gradle

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,11 @@ project(':rss-middletier') {
7878
}
7979

8080
jar {
81-
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
81+
from(configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }) {
82+
exclude "META-INF/*.SF"
83+
exclude "META-INF/*.DSA"
84+
exclude "META-INF/*.RSA"
85+
}
8286
manifest { attributes 'Main-Class': 'com.netflix.recipes.rss.server.MiddleTierServer' }
8387
}
8488
}
@@ -94,7 +98,11 @@ project(':rss-edge') {
9498
}
9599

96100
jar {
97-
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
101+
from(configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }) {
102+
exclude "META-INF/*.SF"
103+
exclude "META-INF/*.DSA"
104+
exclude "META-INF/*.RSA"
105+
}
98106
manifest { attributes 'Main-Class': 'com.netflix.recipes.rss.server.EdgeServer' }
99107
}
100108
}

0 commit comments

Comments
 (0)