Skip to content

Commit

Permalink
enabled publish jar to oss.sonatype.org
Browse files Browse the repository at this point in the history
  • Loading branch information
chenhaiyang committed May 11, 2018
1 parent 1b733c8 commit 15b8dcb
Showing 1 changed file with 81 additions and 4 deletions.
85 changes: 81 additions & 4 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
<packaging>jar</packaging>

<name>ruubypay-ratelimit-bucket4j</name>
<url>https://github.com/chenhaiyangs/ruubypay-ratelimit-bucket4j</url>
<description>基于令牌桶和zookeeer实现的分布式限流功能</description>

<properties>
Expand All @@ -18,6 +19,43 @@
<maven.compiler.target>1.8</maven.compiler.target>
</properties>


<distributionManagement>
<snapshotRepository>
<id>ossrh</id>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
</snapshotRepository>
<repository>
<id>ossrh</id>
<name>Maven Central Staging Repository</name>
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
</repository>
</distributionManagement>

<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>
<name>chenhaiyang</name>
<email>chenhy_hebei@126.com</email>
<roles>
<role>developer</role>
</roles>
<timezone>+8</timezone>
</developer>
</developers>
<scm>
<connection>scm:git:https://github.com/chenhaiyangs/ruubypay-ratelimit-bucket4j</connection>
<developerConnection>scm:git:https://github.com/chenhaiyangs/ruubypay-ratelimit-bucket4j</developerConnection>
<url>https://github.com/chenhaiyangs/ruubypay-ratelimit-bucket4j</url>
<tag>v${project.version}</tag>
</scm>


<dependencies>
<!-- 基于令牌桶的限流算法 -->
<dependency>
Expand Down Expand Up @@ -94,20 +132,59 @@
<build>
<plugins>
<plugin>
<artifactId>maven-source-plugin</artifactId>
<version>2.1</version>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version>
<configuration>
<attach>true</attach>
<source>1.8</source>
<target>1.8</target>
</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-no-fork</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.9.1</version>
<executions>
<execution>
<phase>compile</phase>
<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-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>release</id>
</profile>
</profiles>
</project>

0 comments on commit 15b8dcb

Please sign in to comment.