Skip to content

Commit 8d0d570

Browse files
committed
jreleaser conf externalized & SBOM added as build artifact
1 parent c73d6fd commit 8d0d570

File tree

2 files changed

+33
-27
lines changed

2 files changed

+33
-27
lines changed

jreleaser.toml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
[signing]
2+
active = "ALWAYS"
3+
armored = true
4+
5+
[deploy.maven.nexus2.maven-central]
6+
active = "ALWAYS"
7+
url = "https://s01.oss.sonatype.org/service/local"
8+
snapshotUrl = "https://s01.oss.sonatype.org/content/repositories/snapshots/"
9+
closeRepository = true
10+
releaseRepository = true
11+
stagingRepositories = ["target/staging-deploy"]
12+
13+
[release.github]
14+
enabled = true
15+
owner = "OpenElements"
16+
name = "hedera-enterprise"

pom.xml

Lines changed: 17 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,11 @@
9494
<artifactId>maven-clean-plugin</artifactId>
9595
<version>3.4.0</version>
9696
</plugin>
97+
<plugin>
98+
<groupId>org.cyclonedx</groupId>
99+
<artifactId>cyclonedx-maven-plugin</artifactId>
100+
<version>2.8.0</version>
101+
</plugin>
97102
<plugin>
98103
<groupId>org.jreleaser</groupId>
99104
<artifactId>jreleaser-maven-plugin</artifactId>
@@ -139,6 +144,18 @@
139144
</execution>
140145
</executions>
141146
</plugin>
147+
<plugin>
148+
<groupId>org.cyclonedx</groupId>
149+
<artifactId>cyclonedx-maven-plugin</artifactId>
150+
<executions>
151+
<execution>
152+
<phase>package</phase>
153+
<goals>
154+
<goal>makeBom</goal>
155+
</goals>
156+
</execution>
157+
</executions>
158+
</plugin>
142159
<plugin>
143160
<groupId>org.apache.maven.plugins</groupId>
144161
<artifactId>maven-deploy-plugin</artifactId>
@@ -151,33 +168,6 @@
151168
<plugin>
152169
<groupId>org.jreleaser</groupId>
153170
<artifactId>jreleaser-maven-plugin</artifactId>
154-
<version>1.9.0</version>
155-
</plugin>
156-
<plugin>
157-
<groupId>org.jreleaser</groupId>
158-
<artifactId>jreleaser-maven-plugin</artifactId>
159-
<configuration>
160-
<jreleaser>
161-
<signing>
162-
<active>ALWAYS</active>
163-
<armored>true</armored>
164-
</signing>
165-
<deploy>
166-
<maven>
167-
<nexus2>
168-
<maven-central>
169-
<active>ALWAYS</active>
170-
<url>https://s01.oss.sonatype.org/service/local</url>
171-
<snapshotUrl>https://s01.oss.sonatype.org/content/repositories/snapshots/</snapshotUrl>
172-
<stagingRepositories>target/staging-deploy</stagingRepositories>
173-
<closeRepository>true</closeRepository>
174-
<releaseRepository>true</releaseRepository>
175-
</maven-central>
176-
</nexus2>
177-
</maven>
178-
</deploy>
179-
</jreleaser>
180-
</configuration>
181171
</plugin>
182172
</plugins>
183173
</build>

0 commit comments

Comments
 (0)