Skip to content

Commit

Permalink
[release] configuration needed for publishing to maven central.
Browse files Browse the repository at this point in the history
* add project url, license, and developer section to pom
* add distribution information to pom.
* add source, javadoc, and signing plugins
  • Loading branch information
busbey committed Oct 8, 2019
1 parent 62c8161 commit 4b19340
Show file tree
Hide file tree
Showing 3 changed files with 144 additions and 0 deletions.
30 changes: 30 additions & 0 deletions binding-parent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,36 @@ LICENSE file.
<skipTests>${skipJDK11Tests}</skipTests>
</properties>
</profile>
<!-- When doing a YCSB release, we want to make sure specific bindings aren't included in the maven repo -->
<profile>
<id>ycsb-release</id>
<properties>
<!-- Set the deploy plugin to skip wherever this property is inherited -->
<maven.deploy.skip>true</maven.deploy.skip>
</properties>
<build>
<plugins>
<!-- We still want to make sure that *this* module gets deployed. -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<executions>
<execution>
<id>but-still-deploy-the-binding-parent</id>
<goals>
<goal>deploy</goal>
</goals>
<phase>deploy</phase>
<inherited>false</inherited>
<configuration>
<skip>false</skip>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>

8 changes: 8 additions & 0 deletions distribution/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,14 @@ LICENSE file.

</plugins>
</build>
<profiles>
<profile>
<id>ycsb-release</id>
<properties>
<maven.deploy.skip>true</maven.deploy.skip>
</properties>
</profile>
</profiles>

</project>

106 changes: 106 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,56 @@ LICENSE file.
This is the top level project that builds, packages the core and all the DB bindings for YCSB infrastructure.
</description>

<url>https://ycsb.site/</url>
<licenses>
<license>
<name>Apache License, Version 2.0</name>
<url>https://www.apache.org/licenses/LICENSE-2.0.txt</url>
<distribution>repo</distribution>
</license>
</licenses>
<developers>
<!-- Please see git for authorship information.
This list is project maintainers -->
<developer>
<id>allanbank</id>
<name>Robert J. Moore</name>
<email>robert.j.moore@allanbank.com</email>
</developer>
<developer>
<id>busbey</id>
<name>Sean Busbey</name>
<email>sean.busbey@gmail.com</email>
</developer>
<developer>
<id>cmatser</id>
<name>Chrisjan Matser</name>
<email>cmatser@codespinnerinc.com</email>
</developer>
<developer>
<id>stfeng2</id>
<name>Stanley Feng</name>
<email>stfeng@google.com</email>
</developer>
</developers>

<scm>
<connection>scm:git:git://github.com/brianfrankcooper/YCSB.git</connection>
<tag>master</tag>
<url>https://github.com/brianfrankcooper/YCSB</url>
</scm>
<distributionManagement>
<repository>
<id>sonatype.releases.https</id>
<name>Release Repo at sonatype oss.</name>
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2</url>
</repository>
<snapshotRepository>
<id>sonatype.snapshots.https</id>
<name>snapshot Repo at sonatype oss.</name>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
</snapshotRepository>
</distributionManagement>
<dependencyManagement>
<dependencies>
<dependency>
Expand Down Expand Up @@ -230,4 +275,65 @@ LICENSE file.
</plugin>
</plugins>
</build>
<profiles>
<profile>
<!-- plugins needed to pass sonatype repo checks -->
<id>ycsb-release</id>
<properties>
<doclint>none</doclint>
</properties>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<version>3.0.0-M1</version>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>3.1.0</version>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.1.1</version>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>1.6</version>
<executions>
<execution>
<id>sign-release-artifacts</id>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>

0 comments on commit 4b19340

Please sign in to comment.