Skip to content

Commit 30be84b

Browse files
committed
use revision
Signed-off-by: Gregor Zeitlinger <[email protected]>
1 parent 229e7f6 commit 30be84b

File tree

4 files changed

+9
-3
lines changed

4 files changed

+9
-3
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
gpg-passphrase: MAVEN_GPG_PASSPHRASE
4848

4949
- name: Publish to Apache Maven Central
50-
run: mvn deploy -P release -Dmaven.test.skip=true
50+
run: mvn deploy -P release,bom -Dmaven.test.skip=true
5151
env:
5252
MAVEN_USERNAME: ${{ secrets.SONATYPE_MAVEN_REPOSITORY_USERNAME }}
5353
MAVEN_CENTRAL_TOKEN: ${{ secrets.SONATYPE_MAVEN_REPOSITORY_PASSWORD }}

mise.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ run = "./mvnw verify"
3232

3333
[tasks.build]
3434
description = "build all modules wihthout tests"
35-
run = "./mvnw install -DskipTests"
35+
run = "./mvnw install -DskipTests -Pbom"
3636

3737
[tasks.lint]
3838
run = "scripts/super-linter.sh"

pom.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -446,6 +446,12 @@
446446
</dependencies>
447447
</dependencyManagement>
448448
</profile>
449+
<profile>
450+
<id>bom</id>
451+
<modules>
452+
<module>prometheus-metrics-bom</module>
453+
</modules>
454+
</profile>
449455
<profile>
450456
<id>javadoc</id>
451457
<build>

scripts/build-release.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ set -euo pipefail
44

55
VERSION=${TAG#v}
66

7-
mvn -B package -P release -Drevision="$VERSION" -Dmaven.test.skip=true
7+
mvn -B package -P release,bom -Drevision="$VERSION" -Dmaven.test.skip=true

0 commit comments

Comments
 (0)