|
@@ -12,9 +12,24 @@
|
|
|
apply plugin: 'java'
|
|
|
apply plugin: 'application'
|
|
|
|
|
|
+version = '1.0'
|
|
|
+
|
|
|
mainClassName = 'ui.view.Main'
|
|
|
|
|
|
+// the fatJar includes all dependencies (all used libraries)
|
|
|
+task fatJar(type:Jar){
|
|
|
+ manifest{
|
|
|
+ attributes 'Implmenetation-Title': 'Cyber Physical Systems',
|
|
|
+ 'Implementation-Version': version,
|
|
|
+ 'Main-Class': 'ui.view.Main'
|
|
|
+ }
|
|
|
+ baseName = project.name + '-all'
|
|
|
+ from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
|
|
|
+ with jar
|
|
|
+}
|
|
|
+
|
|
|
jar {
|
|
|
+
|
|
|
manifest {
|
|
|
attributes 'Main-Class': 'ui.view.Main'
|
|
|
}
|
|
@@ -45,7 +60,7 @@ repositories {
|
|
|
|
|
|
dependencies {
|
|
|
compile fileTree(dir: 'jars', include: ['*.jar'])
|
|
|
- compile fileTree(dir: 'jars/commons-compress-1.13', include: ['*.jar'])
|
|
|
+ compile fileTree(dir: 'jars/commons-compress-1.13', include: ['*.jar'])
|
|
|
testCompile group: 'junit', name: 'junit', version: '4.+'
|
|
|
}
|
|
|
/*
|