From 6c9c69b573bde62fc3a9b9f38a54cbe4ec0c4583 Mon Sep 17 00:00:00 2001
From: "Bernhard J. Berger" <bernhard.berger@uni-bremen.de>
Date: Thu, 2 Mar 2023 17:06:59 +0100
Subject: [PATCH] Deploy source code to GitLab's package registry.

---
 .../definitions/{ddl => data}/si-units.ddl         |  0
 .../definitions/{ea => optimisation}/core.dl       |  0
 src/core/de.evoal.core.plugin/pom.xml              | 14 ++++++++++++++
 src/core/de.evoal.releng.parent/pom.xml            | 13 +++++++++++++
 4 files changed, 27 insertions(+)
 rename src/core/de.evoal.core.main/src/main/resources/META-INF/definitions/{ddl => data}/si-units.ddl (100%)
 rename src/core/de.evoal.core.main/src/main/resources/META-INF/definitions/{ea => optimisation}/core.dl (100%)

diff --git a/src/core/de.evoal.core.main/src/main/resources/META-INF/definitions/ddl/si-units.ddl b/src/core/de.evoal.core.main/src/main/resources/META-INF/definitions/data/si-units.ddl
similarity index 100%
rename from src/core/de.evoal.core.main/src/main/resources/META-INF/definitions/ddl/si-units.ddl
rename to src/core/de.evoal.core.main/src/main/resources/META-INF/definitions/data/si-units.ddl
diff --git a/src/core/de.evoal.core.main/src/main/resources/META-INF/definitions/ea/core.dl b/src/core/de.evoal.core.main/src/main/resources/META-INF/definitions/optimisation/core.dl
similarity index 100%
rename from src/core/de.evoal.core.main/src/main/resources/META-INF/definitions/ea/core.dl
rename to src/core/de.evoal.core.main/src/main/resources/META-INF/definitions/optimisation/core.dl
diff --git a/src/core/de.evoal.core.plugin/pom.xml b/src/core/de.evoal.core.plugin/pom.xml
index f4b0fc43..1f0849e3 100644
--- a/src/core/de.evoal.core.plugin/pom.xml
+++ b/src/core/de.evoal.core.plugin/pom.xml
@@ -228,6 +228,20 @@
 				<artifactId>maven-failsafe-plugin</artifactId>
 				<version>2.22.2</version>
 			</plugin>
+
+			<plugin>
+				<groupId>org.apache.maven.plugins</groupId>
+				<artifactId>maven-source-plugin</artifactId>
+				<version>3.2.1</version>
+				<executions>
+					<execution>
+						<id>attach-sources</id>
+						<goals>
+							<goal>jar</goal>
+						</goals>
+					</execution>
+				</executions>
+			</plugin>
 		</plugins>
 
 		<pluginManagement>
diff --git a/src/core/de.evoal.releng.parent/pom.xml b/src/core/de.evoal.releng.parent/pom.xml
index c801ed45..ccedc18f 100644
--- a/src/core/de.evoal.releng.parent/pom.xml
+++ b/src/core/de.evoal.releng.parent/pom.xml
@@ -263,6 +263,19 @@
                 </configuration>
             </plugin>
 
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-source-plugin</artifactId>
+                <executions>
+                    <execution>
+                        <id>attach-sources</id>
+                        <goals>
+                            <goal>jar</goal>
+                        </goals>
+                    </execution>
+                </executions>
+            </plugin>
+
             <plugin>
                 <artifactId>maven-dependency-plugin</artifactId>
                 <executions>
-- 
GitLab