Compare commits
5 Commits
1.0.0
...
468d9660c4
| Author | SHA1 | Date | |
|---|---|---|---|
| 468d9660c4 | |||
| a43f5b30f7 | |||
| 4ebd9a7262 | |||
| ad4179a517 | |||
|
|
f7705e15e5 |
14
.github/workflows/ci.yaml
vendored
14
.github/workflows/ci.yaml
vendored
@@ -11,6 +11,8 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Check out repository code
|
- name: Check out repository code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Setup JDK
|
- name: Setup JDK
|
||||||
uses: actions/setup-java@v4
|
uses: actions/setup-java@v4
|
||||||
@@ -19,7 +21,10 @@ jobs:
|
|||||||
java-version: '21'
|
java-version: '21'
|
||||||
|
|
||||||
- name: Build Runner
|
- name: Build Runner
|
||||||
run: ./mvnw --no-transfer-progress clean verify -Pnative -Dquarkus.native.remote-container-build=true
|
run: |
|
||||||
|
./mvnw -B --no-transfer-progress clean validate -Prelease
|
||||||
|
./mvnw -B --no-transfer-progress versions:commit
|
||||||
|
./mvnw -B --no-transfer-progress clean verify -Pnative -Dquarkus.native.remote-container-build=true -Djgitver.skip=true
|
||||||
|
|
||||||
- name: Add coverage to PR
|
- name: Add coverage to PR
|
||||||
id: jacoco
|
id: jacoco
|
||||||
@@ -38,3 +43,10 @@ jobs:
|
|||||||
- name: Deploy
|
- name: Deploy
|
||||||
if: github.ref_name == 'main'
|
if: github.ref_name == 'main'
|
||||||
run: "docker compose up -d"
|
run: "docker compose up -d"
|
||||||
|
|
||||||
|
- name: create tag
|
||||||
|
if: github.ref_name == 'main'
|
||||||
|
run: |
|
||||||
|
version = var=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)
|
||||||
|
git tag ${version} -m "release ${version}"
|
||||||
|
git push origin ${version}
|
||||||
|
|||||||
8
.mvn/extensions.xml
Normal file
8
.mvn/extensions.xml
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
<extensions xmlns="http://maven.apache.org/EXTENSIONS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
|
xsi:schemaLocation="http://maven.apache.org/EXTENSIONS/1.0.0 http://maven.apache.org/xsd/core-extensions-1.0.0.xsd">
|
||||||
|
<extension>
|
||||||
|
<groupId>fr.brouillard.oss</groupId>
|
||||||
|
<artifactId>jgitver-maven-plugin</artifactId>
|
||||||
|
<version>1.9.0</version>
|
||||||
|
</extension>
|
||||||
|
</extensions>
|
||||||
53
pom.xml
53
pom.xml
@@ -4,7 +4,7 @@
|
|||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<groupId>de.arindy</groupId>
|
<groupId>de.arindy</groupId>
|
||||||
<artifactId>dice-tower</artifactId>
|
<artifactId>dice-tower</artifactId>
|
||||||
<version>1.0.0-SNAPSHOT</version>
|
<version>0</version>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<compiler-plugin.version>3.13.0</compiler-plugin.version>
|
<compiler-plugin.version>3.13.0</compiler-plugin.version>
|
||||||
@@ -21,6 +21,13 @@
|
|||||||
<rxjava-version>2.2.8</rxjava-version>
|
<rxjava-version>2.2.8</rxjava-version>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
|
<scm>
|
||||||
|
<connection>scm:git:https://git.arindy.de/arindy/dice-tower.git</connection>
|
||||||
|
<developerConnection>scm:git:https://git.arindy.de/arindy/dice-tower.git</developerConnection>
|
||||||
|
<url>https://git.arindy.de/arindy/dice-tower</url>
|
||||||
|
<tag>HEAD</tag>
|
||||||
|
</scm>
|
||||||
|
|
||||||
<dependencyManagement>
|
<dependencyManagement>
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency>
|
<dependency>
|
||||||
@@ -267,5 +274,49 @@
|
|||||||
<quarkus.native.enabled>true</quarkus.native.enabled>
|
<quarkus.native.enabled>true</quarkus.native.enabled>
|
||||||
</properties>
|
</properties>
|
||||||
</profile>
|
</profile>
|
||||||
|
<profile>
|
||||||
|
<id>release</id>
|
||||||
|
<build>
|
||||||
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.codehaus.mojo</groupId>
|
||||||
|
<artifactId>build-helper-maven-plugin</artifactId>
|
||||||
|
<version>3.0.0</version>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<id>regex-property</id>
|
||||||
|
<goals>
|
||||||
|
<goal>regex-property</goal>
|
||||||
|
</goals>
|
||||||
|
<configuration>
|
||||||
|
<name>tag.version</name>
|
||||||
|
<value>${jgitver.calculated_version}</value>
|
||||||
|
<regex>-SNAPSHOT</regex>
|
||||||
|
<replacement></replacement>
|
||||||
|
<failIfNoMatch>true</failIfNoMatch>
|
||||||
|
</configuration>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.codehaus.mojo</groupId>
|
||||||
|
<artifactId>versions-maven-plugin</artifactId>
|
||||||
|
<version>2.18.0</version>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<id>release-version</id>
|
||||||
|
<phase>validate</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>set</goal>
|
||||||
|
</goals>
|
||||||
|
<configuration>
|
||||||
|
<newVersion>${tag.version}</newVersion>
|
||||||
|
</configuration>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
|
</build>
|
||||||
|
</profile>
|
||||||
</profiles>
|
</profiles>
|
||||||
</project>
|
</project>
|
||||||
|
|||||||
Reference in New Issue
Block a user