From aa9da448f31128685cbc0c48e45fbeca0da8eb83 Mon Sep 17 00:00:00 2001
From: SebastianEbert <sebastian.ebert@tu-dresden.de>
Date: Mon, 6 Dec 2021 17:10:14 +0100
Subject: [PATCH] updated ci

---
 build.gradle | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

diff --git a/build.gradle b/build.gradle
index b2fb55ae..28208c9f 100644
--- a/build.gradle
+++ b/build.gradle
@@ -49,4 +49,32 @@ subprojects {
   }
 }
 
+publishing {
+    publications {
+        maven(MavenPublication) {
+            artifactId = 'rosjava'
+            // Comment rs: components.java does not include relast.preprocessor
+            // from components.java
+            artifact("build/libs/rosjava-${version}.jar") {
+                extension 'jar'
+            }
+        }
+    }
+    repositories {
+        maven {
+            url "https://git-st.inf.tu-dresden.de/api/v4/projects/1106/packages/maven"
+
+            credentials(HttpHeaderCredentials) {
+                name = 'Job-Token'
+                value = System.getenv("CI_JOB_TOKEN")
+            }
+            authentication {
+                header(HttpHeaderAuthentication)
+            }
+        }
+
+    }
+}
+
+
 defaultTasks 'publish', 'installDist'
-- 
GitLab