File tree 1 file changed +15
-5
lines changed
1 file changed +15
-5
lines changed Original file line number Diff line number Diff line change @@ -59,15 +59,25 @@ dependencies {
59
59
compile fileTree (dir : buildDir. getAbsolutePath()+ ' /javasdk/NRSDK/lib_addons/' , includes : [' *.jar' ])
60
60
}
61
61
62
-
63
62
// create a fat-jar (class files plus dependencies
64
63
// excludes VRL.jar (plugin jar files must not start with 'vrl-\\d+')
65
64
jar {
66
65
67
- // dependencies except VRL
68
- from configurations. runtime. asFileTree.
69
- filter({file -> return ! file. name. startsWith(" vrl-0" )}).
70
- files. collect { zipTree(it) }
66
+ // remove the security files (from mail.jar / activation.jar) so that the jar will be executable.
67
+
68
+ doFirst {
69
+ // dependencies except VRL
70
+ from (configurations. runtime. asFileTree.
71
+ filter({file -> return ! file. name. startsWith(" vrl-0" )}).
72
+ files. collect { zipTree(it) } ){
73
+ exclude ' META-INF/MANIFEST.MF'
74
+ exclude ' META-INF/*.SF'
75
+ exclude ' META-INF/*.DSA'
76
+ exclude ' META-INF/*.RSA'
77
+ }
78
+ }
79
+
80
+
71
81
72
82
// project class files compiled from source
73
83
from files(sourceSets. main. output. classesDir)
You can’t perform that action at this time.
0 commit comments