@@ -43,10 +43,11 @@ repositories {
43
43
sourceSets {
44
44
main {
45
45
java {
46
- srcDir buildDir. getAbsolutePath()+ ' /javasdk/NRSDK/src/'
46
+ srcDirs = [ buildDir. getAbsolutePath()+ ' /javasdk/NRSDK/src/' , buildDir . getAbsolutePath() + ' /javasdk/NRSDK/addons/ ' ]
47
47
}
48
48
resources {
49
- srcDir buildDir. getAbsolutePath()+ ' /javasdk/NRSDK/addons/'
49
+ srcDirs = [buildDir. getAbsolutePath()+ ' /javasdk/NRSDK/src/' , buildDir. getAbsolutePath()+ ' /javasdk/NRSDK/addons/' ]
50
+ includes = [" **/*.fxml" ," **/*.xml" ," **/*.png" ]
50
51
}
51
52
}
52
53
}
@@ -58,15 +59,25 @@ dependencies {
58
59
compile fileTree (dir : buildDir. getAbsolutePath()+ ' /javasdk/NRSDK/lib_addons/' , includes : [' *.jar' ])
59
60
}
60
61
61
-
62
62
// create a fat-jar (class files plus dependencies
63
63
// excludes VRL.jar (plugin jar files must not start with 'vrl-\\d+')
64
64
jar {
65
65
66
- // dependencies except VRL
67
- from configurations. runtime. asFileTree.
68
- filter({file -> return ! file. name. startsWith(" vrl-0" )}).
69
- 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
+
70
81
71
82
// project class files compiled from source
72
83
from files(sourceSets. main. output. classesDir)
0 commit comments