Skip to content

Commit 5c36d90

Browse files
stevehouelPankaj Agrawal
authored andcommitted
refactor: improve parent pom file
1 parent 808e0e4 commit 5c36d90

2 files changed

Lines changed: 68 additions & 1 deletion

File tree

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,4 @@ jobs:
2727
with:
2828
java-version: ${{ matrix.java }}
2929
- name: Build with Maven
30-
run: mvn -B package -P !build-extras -Dmaven.javadoc.skip=true --file pom.xml
30+
run: mvn -B package --file pom.xml

powertools-parent/pom.xml

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,4 +221,71 @@
221221
</pluginManagement>
222222
</build>
223223

224+
<profiles>
225+
<profile>
226+
<id>sign</id>
227+
<build>
228+
<plugins>
229+
<plugin>
230+
<groupId>org.apache.maven.plugins</groupId>
231+
<artifactId>maven-gpg-plugin</artifactId>
232+
<executions>
233+
<execution>
234+
<id>sign-artifacts</id>
235+
<phase>verify</phase>
236+
<goals>
237+
<goal>sign</goal>
238+
</goals>
239+
<configuration>
240+
<gpgArguments>
241+
<arg>--pinentry-mode</arg>
242+
<arg>loopback</arg>
243+
</gpgArguments>
244+
</configuration>
245+
</execution>
246+
</executions>
247+
</plugin>
248+
</plugins>
249+
</build>
250+
</profile>
251+
<profile>
252+
<id>build-extras</id>
253+
<activation>
254+
<activeByDefault>true</activeByDefault>
255+
</activation>
256+
<build>
257+
<plugins>
258+
<plugin>
259+
<groupId>org.apache.maven.plugins</groupId>
260+
<artifactId>maven-source-plugin</artifactId>
261+
<executions>
262+
<execution>
263+
<id>attach-sources</id>
264+
<goals>
265+
<goal>jar-no-fork</goal>
266+
</goals>
267+
</execution>
268+
</executions>
269+
</plugin>
270+
<plugin>
271+
<groupId>org.apache.maven.plugins</groupId>
272+
<artifactId>maven-javadoc-plugin</artifactId>
273+
<configuration>
274+
<additionalparam>-Xdoclint:none</additionalparam>
275+
<detectJavaApiLink>false</detectJavaApiLink>
276+
</configuration>
277+
<executions>
278+
<execution>
279+
<id>attach-javadocs</id>
280+
<goals>
281+
<goal>jar</goal>
282+
</goals>
283+
</execution>
284+
</executions>
285+
</plugin>
286+
</plugins>
287+
</build>
288+
</profile>
289+
</profiles>
290+
224291
</project>

0 commit comments

Comments
 (0)