Skip to content

Commit

Permalink
fix(pom): prepare release to maven central
Browse files Browse the repository at this point in the history
  • Loading branch information
EDGA6280 committed Jul 12, 2023
1 parent cf613a1 commit ae6fc88
Showing 1 changed file with 143 additions and 3 deletions.
146 changes: 143 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,65 @@
<groupId>nl.jworks.markdown_to_asciidoc</groupId>
<artifactId>markdown_to_asciidoc</artifactId>
<version>2.0.0-SNAPSHOT</version>
<description>
fork of https://github.com/bodiam/markdown-to-asciidoc
</description>

<licenses>
<license>
<name>The Apache License, Version 2.0</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
</license>
</licenses>

<developers>
<developer>
<id>bodiam</id>
<name>Erik Pragt</name>
<email>erik.pragt@jworks.nl</email>
<url>https://github.com/bodiam</url>
</developer>
<developer>
<id>mojavelinux</id>
<name>Dan Allen</name>
<url>https://mojavelinux.com</url>
</developer>
<developer>
<id>matozoid</id>
<name>Danny van Bruggen</name>
<url>http://www.laamella.com</url>
</developer>
<developer>
<id>ahus1</id>
<name>Alexander Schwartz</name>
<email>alexander.schwartz@gmx.net</email>
<url>https://www.ahus1.de</url>
</developer>
<developer>
<id>dgautier</id>
<name>David Gautier</name>
<url>dgautier.github.io</url>
</developer>
</developers>

<scm>
<connection>scm:git:https://github.com/bodiam/markdown-to-asciidoc.git</connection>
<url>https://github.com/bodiam/markdown-to-asciidoc.git</url>
<developerConnection>scm:git:https://github.com/bodiam/markdown-to-asciidoc.git</developerConnection>
<tag>HEAD</tag>
</scm>

<distributionManagement>
<snapshotRepository>
<id>ossrh</id>
<url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
</snapshotRepository>
<repository>
<id>ossrh</id>
<url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url>
</repository>
</distributionManagement>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<kotlin.version>1.8.0</kotlin.version>
<java.version>17</java.version>
<maven.compiler.target>${java.version}</maven.compiler.target>
Expand Down Expand Up @@ -90,7 +144,93 @@
<argLine>--add-opens java.base/java.lang=ALL-UNNAMED</argLine>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>2.2.1</version>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.5.0</version>
<configuration>
<!-- disable javadoc warnings -->
<doclint>none</doclint>
</configuration>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>

<profiles>
<profile>
<id>ci-cd</id>
<build>
<plugins>
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>1.6.13</version>
<extensions>true</extensions>
<configuration>
<serverId>ossrh</serverId>
<nexusUrl>https://s01.oss.sonatype.org</nexusUrl>
<autoReleaseAfterClose>${env.AUTO_RELEASE_AFTER_CLOSE}</autoReleaseAfterClose>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>2.5.3</version>
<configuration>
<tagNameFormat>@{project.version}</tagNameFormat>
</configuration>
<executions>
<execution>
<id>default</id>
<goals>
<goal>perform</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
<configuration>
<gpgArguments>
<arg>--pinentry-mode</arg>
<arg>loopback</arg>
</gpgArguments>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>

</project>

0 comments on commit ae6fc88

Please sign in to comment.