Skip to content

Commit e1dae53

Browse files
devonfw#499: added next version to native
added next version to native added revision to native profile finalName changed native phase from package to compile
1 parent d42081e commit e1dae53

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

.github/workflows/nightly-build.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ jobs:
5454
shell: bash
5555
run: |
5656
cd cli
57-
mvn -B -ntp -Dideasy.assembly.id=${{ matrix.os }} -Pnative -DskipTests=true package
57+
mvn -B -ntp -Dideasy.assembly.id=${{ matrix.os }} -Pnative -DskipTests=true compile
5858
- name: Upload native image
5959
uses: actions/upload-artifact@v4
6060
with:

.github/workflows/release.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,9 @@ jobs:
5959
maven_config="$(cat .mvn/maven.config)"
6060
current_version="${maven_config/#*-Drevision=}"
6161
current_version="${current_version/ */}"
62+
next_version="${current_version/-SNAPSHOT/}"
6263
cd cli
63-
mvn -B -ntp -Dideasy.assembly.id=${{ matrix.os }} -Pnative -DskipTests=true package
64+
mvn -B -ntp -Drevision=${next_version} -Dideasy.assembly.id=${{ matrix.os }} -Pnative -DskipTests=true compile
6465
- name: Upload native image
6566
uses: actions/upload-artifact@v4
6667
with:

cli/pom.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@
158158
<goals>
159159
<goal>compile-no-fork</goal>
160160
</goals>
161-
<phase>package</phase>
161+
<phase>compile</phase>
162162
</execution>
163163
<execution>
164164
<id>test-native</id>
@@ -196,7 +196,7 @@
196196
<goal>single</goal>
197197
</goals>
198198
<configuration>
199-
<finalName>${project.artifactId}</finalName>
199+
<finalName>${project.artifactId}-${revision}-</finalName>
200200
<appendAssemblyId>true</appendAssemblyId>
201201
<descriptors>
202202
<descriptor>/src/main/assembly/release-${ideasy.assembly.id}.xml</descriptor>

0 commit comments

Comments
 (0)