Cordapps now exclude the META-INF of dependencies.

This commit is contained in:
Clinton Alexander 2017-07-06 15:14:07 +01:00
parent 8fc76b3803
commit 68068e5640
2 changed files with 4 additions and 2 deletions

View File

@ -1,4 +1,4 @@
gradlePluginsVersion=0.13.1 gradlePluginsVersion=0.13.2
kotlinVersion=1.1.1 kotlinVersion=1.1.1
guavaVersion=21.0 guavaVersion=21.0
bouncycastleVersion=1.57 bouncycastleVersion=1.57

View File

@ -24,7 +24,9 @@ class Cordformation implements Plugin<Project> {
// Note: project.afterEvaluate did not have full dependency resolution completed, hence a task is used instead // Note: project.afterEvaluate did not have full dependency resolution completed, hence a task is used instead
def task = project.task('configureCordappFatJar') { def task = project.task('configureCordappFatJar') {
doLast { doLast {
project.tasks.jar.from getDirectNonCordaDependencies(project).collect { project.zipTree(it) }.flatten() project.tasks.jar.from getDirectNonCordaDependencies(project).collect {
project.zipTree(it).matching { exclude { it.path.contains('META-INF') } }
}.flatten()
} }
} }
project.tasks.jar.dependsOn task project.tasks.jar.dependsOn task