diff build.gradle @ 11:edc70340506d draft default tip

networkbenchmark jar log4j conflict
author suruga
date Wed, 19 Apr 2017 21:36:44 +0900
parents 6c584862fe93
children
line wrap: on
line diff
--- a/build.gradle	Mon Apr 17 20:48:17 2017 +0900
+++ b/build.gradle	Wed Apr 19 21:36:44 2017 +0900
@@ -14,8 +14,8 @@
 dependencies {
     compile fileTree(dir: 'lib', include: '*.jar')
     compile "commons-collections:commons-collections:3.2.1"
-    compile "org.apache.maven.surefire:surefire-junit4:2.13"
-    compile "com.google.guava:guava:12.0"
+    //compile "org.apache.maven.surefire:surefire-junit4:2.13"
+    //compile "com.google.guava:guava:12.0"
     compile group: 'org.eclipse.jetty', name: 'jetty-server', version: '9.3.13.v20161014'
     compile group: 'org.eclipse.jetty', name: 'jetty-servlet', version: '9.3.13.v20161014'
     compile group: 'org.eclipse.jetty', name: 'jetty-webapp', version: '9.3.13.v20161014'
@@ -25,17 +25,32 @@
     compile group: 'cr.ie.u_ryukyu.ac.jp', name: 'jungle-core', version: '1.0', ext: 'jar'
     compile group: 'cr.ie.u_ryukyu.ac.jp', name: 'Alice', version: '1.1', ext: 'jar'
     jar {
-      manifest {
-        attributes 'Implementation-Title': 'Gradle Quickstart', 'Implementation-Version': version
-      }
-      from configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
+        manifest {
+            attributes 'Implementation-Title': 'Gradle Quickstart', 'Implementation-Version': version
+        }
+        //from configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
     }
+    uploadArchives {
+        repositories {
+            flatDir {
+                dirs '.'
+            }
+        }
+    }
+}
 
-  uploadArchives {
-    repositories {
-      flatDir {
-        dirs '.'
-      }
-    }
-  }
-}
+    task NetworkBenchmark(type: Jar) {
+        exclude 'META-INF/*.RSA', 'META-INF/*.SF', 'META-INF/*.DSA'
+        baseName = "networkBenchmark"
+        manifest {
+            attributes(
+                    "Main-Class": 'jp.ac.u_ryukyu.ie.cr.jungle.networkBenchmark.NetworkBenchmark',
+                    "Implementation-Title": 'NetworkBenchmark',
+                    "Implementation-Description": 'Quickstart',
+                    "Implementation-Version": version,
+                    "Assembly-Date": new java.util.Date().toString()
+            )
+        }
+        from configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
+        with jar
+    }
\ No newline at end of file