Skip to content

Commit 41e53e4

Browse files
author
David
committed
fix(maven):
* scm : project moved to its own repo * added release profile for ossrh * removed duplicated plugins
1 parent a2e31d1 commit 41e53e4

File tree

1 file changed

+100
-70
lines changed

1 file changed

+100
-70
lines changed

pom.xml

+100-70
Original file line numberDiff line numberDiff line change
@@ -46,23 +46,12 @@
4646
</developers>
4747

4848
<scm>
49-
<connection>scm:git:https://github.com/bodiam/markdown-to-asciidoc.git</connection>
50-
<url>https://github.com/bodiam/markdown-to-asciidoc.git</url>
51-
<developerConnection>scm:git:https://github.com/bodiam/markdown-to-asciidoc.git</developerConnection>
49+
<connection>scm:git:https://github.com/markdown-asciidoc/markdown-to-asciidoc.git</connection>
50+
<url>https://github.com/markdown-asciidoc/markdown-to-asciidoc.git</url>
51+
<developerConnection>scm:git:https://github.com/markdown-asciidoc/markdown-to-asciidoc.git</developerConnection>
5252
<tag>HEAD</tag>
5353
</scm>
5454

55-
<distributionManagement>
56-
<snapshotRepository>
57-
<id>ossrh</id>
58-
<url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
59-
</snapshotRepository>
60-
<repository>
61-
<id>ossrh</id>
62-
<url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url>
63-
</repository>
64-
</distributionManagement>
65-
6655
<properties>
6756
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
6857
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
@@ -139,98 +128,139 @@
139128
<plugin>
140129
<groupId>org.apache.maven.plugins</groupId>
141130
<artifactId>maven-surefire-plugin</artifactId>
142-
<version>3.1.2</version>
131+
<version>3.2.3</version>
143132
<configuration>
144133
<argLine>--add-opens java.base/java.lang=ALL-UNNAMED</argLine>
145134
</configuration>
146135
</plugin>
147-
<plugin>
148-
<groupId>org.apache.maven.plugins</groupId>
149-
<artifactId>maven-source-plugin</artifactId>
150-
<version>2.2.1</version>
151-
<executions>
152-
<execution>
153-
<id>attach-sources</id>
154-
<goals>
155-
<goal>jar</goal>
156-
</goals>
157-
</execution>
158-
</executions>
159-
</plugin>
160-
<plugin>
161-
<groupId>org.apache.maven.plugins</groupId>
162-
<artifactId>maven-javadoc-plugin</artifactId>
163-
<version>3.5.0</version>
164-
<configuration>
165-
<!-- disable javadoc warnings -->
166-
<doclint>none</doclint>
167-
</configuration>
168-
<executions>
169-
<execution>
170-
<id>attach-javadocs</id>
171-
<goals>
172-
<goal>jar</goal>
173-
</goals>
174-
</execution>
175-
</executions>
176-
</plugin>
177136
</plugins>
178137
</build>
179138

180139
<profiles>
181140
<profile>
182-
<id>ci-cd</id>
141+
<id>ossrh</id>
142+
<distributionManagement>
143+
<repository>
144+
<id>ossrh</id>
145+
<name>Central Repository OSSRH</name>
146+
<url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url>
147+
</repository>
148+
<snapshotRepository>
149+
<id>ossrh</id>
150+
<name>Central Repository OSSRH</name>
151+
<url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
152+
</snapshotRepository>
153+
</distributionManagement>
183154
<build>
184155
<plugins>
185156
<plugin>
186-
<groupId>org.sonatype.plugins</groupId>
187-
<artifactId>nexus-staging-maven-plugin</artifactId>
188-
<version>1.6.13</version>
189-
<extensions>true</extensions>
157+
<groupId>org.apache.maven.plugins</groupId>
158+
<artifactId>maven-gpg-plugin</artifactId>
159+
<version>3.1.0</version>
160+
<executions>
161+
<execution>
162+
<id>sign-artifacts</id>
163+
<phase>verify</phase>
164+
<goals>
165+
<goal>sign</goal>
166+
</goals>
167+
</execution>
168+
</executions>
190169
<configuration>
191-
<serverId>ossrh</serverId>
192-
<nexusUrl>https://s01.oss.sonatype.org</nexusUrl>
193-
<autoReleaseAfterClose>${env.AUTO_RELEASE_AFTER_CLOSE}</autoReleaseAfterClose>
170+
<!-- Prevent gpg from using pinentry programs. Fixes: gpg: signing
171+
failed: Inappropriate ioctl for device -->
172+
<gpgArguments>
173+
<arg>--pinentry-mode</arg>
174+
<arg>loopback</arg>
175+
</gpgArguments>
194176
</configuration>
195177
</plugin>
196178
<plugin>
197179
<groupId>org.apache.maven.plugins</groupId>
198-
<artifactId>maven-release-plugin</artifactId>
199-
<version>2.5.3</version>
200-
<configuration>
201-
<tagNameFormat>@{project.version}</tagNameFormat>
202-
</configuration>
180+
<artifactId>maven-source-plugin</artifactId>
181+
<version>3.3.0</version>
203182
<executions>
204183
<execution>
205-
<id>default</id>
184+
<id>attach-sources</id>
206185
<goals>
207-
<goal>perform</goal>
186+
<goal>jar-no-fork</goal>
208187
</goals>
209188
</execution>
210189
</executions>
211190
</plugin>
212191
<plugin>
213192
<groupId>org.apache.maven.plugins</groupId>
214-
<artifactId>maven-gpg-plugin</artifactId>
193+
<artifactId>maven-javadoc-plugin</artifactId>
194+
<version>3.6.0</version>
215195
<executions>
216196
<execution>
217-
<id>sign-artifacts</id>
197+
<id>attach-javadocs</id>
198+
<goals>
199+
<goal>jar</goal>
200+
</goals>
201+
</execution>
202+
</executions>
203+
</plugin>
204+
<plugin>
205+
<groupId>org.jetbrains.dokka</groupId>
206+
<artifactId>dokka-maven-plugin</artifactId>
207+
<version>1.9.10</version>
208+
<executions>
209+
<execution>
210+
<phase>package</phase>
211+
<goals>
212+
<goal>javadocJar</goal>
213+
</goals>
214+
</execution>
215+
</executions>
216+
</plugin>
217+
<plugin>
218+
<groupId>org.apache.maven.plugins</groupId>
219+
<artifactId>maven-release-plugin</artifactId>
220+
<version>3.0.1</version>
221+
<configuration>
222+
<scmCommentPrefix>[ci skip]</scmCommentPrefix>
223+
</configuration>
224+
</plugin>
225+
</plugins>
226+
</build>
227+
</profile>
228+
<profile>
229+
<id>github</id>
230+
<distributionManagement>
231+
<repository>
232+
<id>github</id>
233+
<name>GitHub Packages</name>
234+
<url>https://maven.pkg.github.com/text2confl/text2confl</url>
235+
</repository>
236+
</distributionManagement>
237+
</profile>
238+
<profile>
239+
<id>coverage</id>
240+
<build>
241+
<plugins>
242+
<plugin>
243+
<groupId>org.jacoco</groupId>
244+
<artifactId>jacoco-maven-plugin</artifactId>
245+
<version>0.8.11</version>
246+
<executions>
247+
<execution>
248+
<id>prepare-agent</id>
249+
<goals>
250+
<goal>prepare-agent</goal>
251+
</goals>
252+
</execution>
253+
<execution>
254+
<id>jacoco-report</id>
218255
<phase>verify</phase>
219256
<goals>
220-
<goal>sign</goal>
257+
<goal>report</goal>
221258
</goals>
222-
<configuration>
223-
<gpgArguments>
224-
<arg>--pinentry-mode</arg>
225-
<arg>loopback</arg>
226-
</gpgArguments>
227-
</configuration>
228259
</execution>
229260
</executions>
230261
</plugin>
231262
</plugins>
232263
</build>
233264
</profile>
234265
</profiles>
235-
236266
</project>

0 commit comments

Comments
 (0)