Compare commits

..

No commits in common. "468d9660c49da0ade51de36c8cd7033805eafc4d" and "ad4179a51767457f9af22256308d1b8c5e4c3f47" have entirely different histories.

3 changed files with 14 additions and 57 deletions

View File

@ -11,8 +11,6 @@ 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
@ -21,10 +19,7 @@ jobs:
java-version: '21' java-version: '21'
- name: Build Runner - name: Build Runner
run: | run: ./mvnw --no-transfer-progress clean verify -Pnative -Dquarkus.native.remote-container-build=true
./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
@ -43,10 +38,3 @@ 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}

13
.mvn/jgitver.config.xml Normal file
View File

@ -0,0 +1,13 @@
<configuration xmlns="http://jgitver.github.io/maven/configuration/1.1.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://jgitver.github.io/maven/configuration/1.1.0 https://jgitver.github.io/maven/configuration/jgitver-configuration-v1_1_0.xsd">
<strategy>MAVEN</strategy>
<policy>MAX</policy>
<autoIncrementPatch>true</autoIncrementPatch>
<useCommitDistance>true</useCommitDistance>
<useDirty>false</useDirty>
<useGitCommitId>true</useGitCommitId>
<gitCommitIdLength>8</gitCommitIdLength>
<nonQualifierBranches>main</nonQualifierBranches>
<useDefaultBranchingPolicy>true</useDefaultBranchingPolicy>
</configuration>

44
pom.xml
View File

@ -274,49 +274,5 @@
<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>