Skip to content

Commit 7601d7b

Browse files
chore(build): fix BOM publish to maven central (7339)
chore(build): fix BOM publish to maven central --- Merge branch 'main' into bom-release-fix
1 parent dbd5db2 commit 7601d7b

File tree

3 files changed

+13
-3
lines changed

3 files changed

+13
-3
lines changed

.github/workflows/release-snapshots.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,5 +61,7 @@ jobs:
6161
server-password: MAVEN_CENTRAL_PASSWORD
6262
gpg-private-key: ${{ secrets.SIGNINGKEY }}
6363
gpg-passphrase: SIGNINGPASSWORD
64+
- name: Generate BOM
65+
run: ./mvnw ${MAVEN_ARGS} clean sundr:generate-bom
6466
- name: Build and release Java modules
65-
run: ./mvnw ${MAVEN_ARGS} ${RELEASE_MAVEN_ARGS} clean deploy
67+
run: ./mvnw ${MAVEN_ARGS} ${RELEASE_MAVEN_ARGS} deploy

.github/workflows/release.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,5 +68,7 @@ jobs:
6868
server-password: MAVEN_CENTRAL_PASSWORD
6969
gpg-private-key: ${{ secrets.SIGNINGKEY }}
7070
gpg-passphrase: SIGNINGPASSWORD
71-
- name: Build and release Java 8 modules
72-
run: ./mvnw ${MAVEN_ARGS} ${RELEASE_MAVEN_ARGS} clean deploy
71+
- name: Generate BOM
72+
run: ./mvnw ${MAVEN_ARGS} clean sundr:generate-bom
73+
- name: Build and release Java modules
74+
run: ./mvnw ${MAVEN_ARGS} ${RELEASE_MAVEN_ARGS} deploy

pom.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,7 @@
235235
<module>kubernetes-client-deps-compatibility-tests</module>
236236
<module>log4j</module>
237237
<module>kubernetes-examples</module>
238+
<!-- BOM modules are added via profile activation at build time -->
238239
</modules>
239240

240241
<dependencyManagement>
@@ -1300,6 +1301,11 @@
13001301
<properties>
13011302
<karaf.itest.skip>true</karaf.itest.skip>
13021303
</properties>
1304+
<!-- make sure that these modules exists before running release-->
1305+
<modules>
1306+
<module>target/classes/kubernetes-client-bom</module>
1307+
<module>target/classes/kubernetes-client-bom-with-deps</module>
1308+
</modules>
13031309
<build>
13041310
<plugins>
13051311
<plugin>

0 commit comments

Comments
 (0)