From 1975ce960b90be6308cf560742e1d68ad792b507 Mon Sep 17 00:00:00 2001
From: David Georg Reichelt <davidgeorg_reichelt@dagere.de>
Date: Tue, 13 Jul 2021 16:29:54 +0200
Subject: [PATCH] Create executable benchmark jar

---
 benchmark/build.gradle | 18 +++++++++++++++---
 1 file changed, 15 insertions(+), 3 deletions(-)

diff --git a/benchmark/build.gradle b/benchmark/build.gradle
index 514b30e..baed113 100644
--- a/benchmark/build.gradle
+++ b/benchmark/build.gradle
@@ -7,6 +7,18 @@ dependencies {
     implementation 'com.beust:jcommander:1.72'
 }
 
-application {
-    mainClass = 'moobench.benchmark.BenchmarkMain'
-}
+jar {
+    
+    manifest {
+        attributes 'Implementation-Title': 'Moobench Benchmark',
+                   'Implementation-Version': '0.1-SNAPSHOT',
+                   'Main-Class': 'moobench.benchmark.BenchmarkMain'
+    }
+    
+    from sourceSets.main.output
+
+	dependsOn configurations.runtimeClasspath
+	from {
+    	configurations.runtimeClasspath.findAll { it.name.endsWith('jar') }.collect { zipTree(it) }
+	}
+}
\ No newline at end of file
-- 
GitLab