Skip to content

Commit

Permalink
Merge pull request #9 from andrewshan/main
Browse files Browse the repository at this point in the history
modify pom, add signature
  • Loading branch information
andrewshan authored Aug 5, 2021
2 parents 0e29299 + 9922664 commit 7b920ed
Show file tree
Hide file tree
Showing 7 changed files with 157 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@
<name>Polaris Circuitbreaker Examples</name>
<description>Polaris Circuitbreaker Examples JAR</description>

<properties>
<skip.maven.deploy>true</skip.maven.deploy>
</properties>

<dependencies>
<dependency>
<groupId>com.tencent.polaris</groupId>
Expand Down
4 changes: 4 additions & 0 deletions polaris-discovery/polaris-discovery-examples/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@
<name>Polaris Discovery Examples</name>
<description>Polaris Discovery Examples JAR</description>

<properties>
<skip.maven.deploy>true</skip.maven.deploy>
</properties>

<dependencies>
<dependency>
<groupId>com.tencent.polaris</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
</parent>


<artifactId>polaris-all-shaded</artifactId>
<name>Polaris Distribution All Sharded</name>
<description>Polaris Distribution All Sharded JAR</description>
<artifactId>polaris-all</artifactId>
<name>Polaris Distribution All</name>
<description>Polaris Distribution All JAR</description>

<modelVersion>4.0.0</modelVersion>
<dependencies>
Expand All @@ -28,14 +28,15 @@
<plugins>
<plugin>
<artifactId>maven-shade-plugin</artifactId>
<version>3.2.4</version>
<version>${maven.shaded.plugin.version}</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<createSourcesJar>true</createSourcesJar>
<filters>
<filter>
<artifact>*:*</artifact>
Expand Down Expand Up @@ -70,4 +71,42 @@
</plugin>
</plugins>
</build>

<profiles>
<profile>
<id>release</id>
<build>
<plugins>
<plugin>
<artifactId>maven-javadoc-plugin</artifactId>
<version>${maven.javadoc.plugin.version}</version>
<executions>
<execution>
<id>attach-javadoc</id>
<goals>
<goal>jar</goal>
</goals>
<configuration>
<doclint>none</doclint>
</configuration>
</execution>
</executions>
<configuration>
<includeDependencySources>true</includeDependencySources>
<dependencySourceIncludes>
<dependencySourceInclude>com.tencent.polaris:polaris-*</dependencySourceInclude>
</dependencySourceIncludes>
<show>public</show>
<charset>UTF-8</charset>
<encoding>UTF-8</encoding>
<docencoding>UTF-8</docencoding>
<links>
<link>http://docs.oracle.com/javase/8/docs/api</link>
</links>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>
2 changes: 1 addition & 1 deletion polaris-distribution/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@
<description>Polaris Distribution POM</description>

<modules>
<module>polaris-all-shaded</module>
<module>polaris-all</module>
</modules>
</project>
4 changes: 4 additions & 0 deletions polaris-ratelimit/polaris-ratelimit-examples/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@
<name>Polaris Ratelimit Examples</name>
<description>Polaris Ratelimit Examples JAR</description>

<properties>
<skip.maven.deploy>true</skip.maven.deploy>
</properties>

<dependencies>
<dependency>
<groupId>commons-cli</groupId>
Expand Down
5 changes: 5 additions & 0 deletions polaris-router/polaris-router-examples/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@
<artifactId>polaris-router-examples</artifactId>
<name>Polaris Router Examples</name>
<description>Polaris Router Examples JAR</description>

<properties>
<skip.maven.deploy>true</skip.maven.deploy>
</properties>

<dependencies>
<dependency>
<groupId>com.tencent.polaris</groupId>
Expand Down
103 changes: 96 additions & 7 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@
<!-- Project revision -->
<revision>1.0.0</revision>
<timestamp>${maven.build.timestamp}</timestamp>
<skip.maven.deploy>false</skip.maven.deploy>
<maven.build.timestamp.format>yyyy-MM-dd HH:mm</maven.build.timestamp.format>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
Expand All @@ -82,6 +83,11 @@
<junit.version>4.12</junit.version>
<argLine>-Xmx2048m</argLine>
<prometheus.version>0.11.0</prometheus.version>
<maven.source.plugin.version>3.2.0</maven.source.plugin.version>
<maven.javadoc.plugin.version>3.2.0</maven.javadoc.plugin.version>
<maven.gpg.plugin.version>3.0.1</maven.gpg.plugin.version>
<maven.shaded.plugin.version>3.2.4</maven.shaded.plugin.version>
<maven.deploy.plugin.version>3.0.0-M1</maven.deploy.plugin.version>
</properties>

<dependencies>
Expand Down Expand Up @@ -138,7 +144,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>3.2.0</version>
<version>${maven.source.plugin.version}</version>
<executions>
<execution>
<id>attach-sources</id>
Expand All @@ -151,7 +157,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.2.0</version>
<version>${maven.javadoc.plugin.version}</version>
<executions>
<execution>
<id>attach-javadocs</id>
Expand All @@ -161,11 +167,6 @@
</execution>
</executions>
<configuration>
<sourceFileExcludes>
<sourceFileExclude>com/tencent/polaris/client/pb/*</sourceFileExclude>
<sourceFileExclude>com/tencent/polaris/ratelimit/client/pb/*
</sourceFileExclude>
</sourceFileExcludes>
<tags>
<tag>
<name>date</name>
Expand Down Expand Up @@ -201,6 +202,94 @@
</plugins>
</build>

<profiles>
<profile>
<id>javadoc-lint</id>
<activation>
<jdk>[1.8,)</jdk>
</activation>
<properties>
<doclint>none</doclint>
</properties>
</profile>
<profile>
<id>release</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<version>${maven.deploy.plugin.version}</version>
<configuration>
<skip>${skip.maven.deploy}</skip>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>${maven.gpg.plugin.version}</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>${maven.source.plugin.version}</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>${maven.javadoc.plugin.version}</version>
<executions>
<execution>
<id>attach-javadocs</id>
<phase>package</phase>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
<configuration>
<tags>
<tag>
<name>date</name>
</tag>
</tags>
<show>public</show>
<charset>UTF-8</charset>
<encoding>UTF-8</encoding>
<docencoding>UTF-8</docencoding>
<links>
<link>http://docs.oracle.com/javase/8/docs/api</link>
</links>
<doclint>none</doclint>
<excludePackageNames>
com.tencent.polaris.*.examples,com.tencent.polaris.*.examples.*
</excludePackageNames>
<doctitle>Tencent Polaris ${project.version} API</doctitle>
<windowtitle>Tencent Polaris ${project.version} API</windowtitle>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>

<distributionManagement>
<snapshotRepository>
<id>nexus-snapshots</id>
Expand Down

0 comments on commit 7b920ed

Please sign in to comment.