Skip to content

Commit

Permalink
Add maven central upload
Browse files Browse the repository at this point in the history
  • Loading branch information
kaklakariada committed Apr 17, 2021
1 parent 53bdaea commit f633529
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 10 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ mvn versions:display-plugin-updates
```

1. Checkout the `master` branch.
1. Update version in `pom.xml` and `README.md`, commit and push.
1. Update version in `pom.xml`, commit and push.
1. Run command

```bash
Expand Down
51 changes: 42 additions & 9 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@
<modelVersion>4.0.0</modelVersion>
<groupId>org.itsallcode</groupId>
<artifactId>hamcrest-mutliline-text-matcher</artifactId>
<version>2.0.0</version>
<version>2.0.1</version>
<name>Hamcrest multi-line text matcher</name>
<description>This project provides a Hamcrest matcher that gives you better diagnostics for multi-line text in case of mismatches.</description>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<java.version>11</java.version>
<skipSigningArtifacts>true</skipSigningArtifacts>
</properties>
<dependencies>
<dependency>
Expand Down Expand Up @@ -179,6 +180,39 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>1.6</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
<configuration>
<skip>${skipSigningArtifacts}</skip>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<version>2.8.2</version>
</plugin>
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>1.6.8</version>
<extensions>true</extensions>
<configuration>
<serverId>ossrh</serverId>
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
<autoReleaseAfterClose>true</autoReleaseAfterClose>
</configuration>
</plugin>
</plugins>
</build>
<url>https://github.com/itsallcode/hamcrest-mutliline-text-matcher</url>
Expand Down Expand Up @@ -210,16 +244,15 @@
<organizationUrl>https://github.com/itsallcode</organizationUrl>
</developer>
</developers>
<repositories>
<repository>
<id>jcenter</id>
<url>http://jcenter.bintray.com/</url>
</repository>
</repositories>

<distributionManagement>
<snapshotRepository>
<id>ossrh</id>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
</snapshotRepository>
<repository>
<id>bintray-maven-repo</id>
<url>https://api.bintray.com/maven/itsallcode/itsallcode/hamcrest-mutliline-text-matcher/;publish=0</url>
<id>ossrh</id>
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
</repository>
</distributionManagement>
</project>

0 comments on commit f633529

Please sign in to comment.