Skip to content
Snippets Groups Projects
Commit bb4b665e authored by Cserép Máté's avatar Cserép Máté
Browse files

Create JAR output and save as artifact in CI.

parent e830b9f7
No related branches found
No related tags found
1 merge request!52Create JAR output and save as artifact in CI.
Pipeline #31703 passed
......@@ -17,4 +17,12 @@ build:
test:
stage: test
script:
- mvn test
\ No newline at end of file
- mvn test
install:
stage: deploy
script:
- mvn install
artifacts:
paths:
- target/*.jar
......@@ -12,6 +12,7 @@
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<junit.version>5.7.1</junit.version>
<maven-jar-plugin.version>3.2.0</maven-jar-plugin.version>
</properties>
<dependencies>
......@@ -97,6 +98,19 @@
</argLine>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>${maven-jar-plugin.version}</version>
<configuration>
<archive>
<manifest>
<addClasspath>true</addClasspath>
<mainClass>bitsplease.mummymayhem.MainWindow</mainClass>
</manifest>
</archive>
</configuration>
</plugin>
</plugins>
</build>
</project>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment