|
65 | 65 | <!-- Project revision -->
|
66 | 66 | <revision>1.0.0</revision>
|
67 | 67 | <timestamp>${maven.build.timestamp}</timestamp>
|
| 68 | + <skip.maven.deploy>false</skip.maven.deploy> |
68 | 69 | <maven.build.timestamp.format>yyyy-MM-dd HH:mm</maven.build.timestamp.format>
|
69 | 70 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
70 | 71 | <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
|
82 | 83 | <junit.version>4.12</junit.version>
|
83 | 84 | <argLine>-Xmx2048m</argLine>
|
84 | 85 | <prometheus.version>0.11.0</prometheus.version>
|
| 86 | + <maven.source.plugin.version>3.2.0</maven.source.plugin.version> |
| 87 | + <maven.javadoc.plugin.version>3.2.0</maven.javadoc.plugin.version> |
| 88 | + <maven.gpg.plugin.version>3.0.1</maven.gpg.plugin.version> |
| 89 | + <maven.shaded.plugin.version>3.2.4</maven.shaded.plugin.version> |
| 90 | + <maven.deploy.plugin.version>3.0.0-M1</maven.deploy.plugin.version> |
85 | 91 | </properties>
|
86 | 92 |
|
87 | 93 | <dependencies>
|
|
138 | 144 | <plugin>
|
139 | 145 | <groupId>org.apache.maven.plugins</groupId>
|
140 | 146 | <artifactId>maven-source-plugin</artifactId>
|
141 |
| - <version>3.2.0</version> |
| 147 | + <version>${maven.source.plugin.version}</version> |
142 | 148 | <executions>
|
143 | 149 | <execution>
|
144 | 150 | <id>attach-sources</id>
|
|
151 | 157 | <plugin>
|
152 | 158 | <groupId>org.apache.maven.plugins</groupId>
|
153 | 159 | <artifactId>maven-javadoc-plugin</artifactId>
|
154 |
| - <version>3.2.0</version> |
| 160 | + <version>${maven.javadoc.plugin.version}</version> |
155 | 161 | <executions>
|
156 | 162 | <execution>
|
157 | 163 | <id>attach-javadocs</id>
|
|
161 | 167 | </execution>
|
162 | 168 | </executions>
|
163 | 169 | <configuration>
|
164 |
| - <sourceFileExcludes> |
165 |
| - <sourceFileExclude>com/tencent/polaris/client/pb/*</sourceFileExclude> |
166 |
| - <sourceFileExclude>com/tencent/polaris/ratelimit/client/pb/* |
167 |
| - </sourceFileExclude> |
168 |
| - </sourceFileExcludes> |
169 | 170 | <tags>
|
170 | 171 | <tag>
|
171 | 172 | <name>date</name>
|
|
201 | 202 | </plugins>
|
202 | 203 | </build>
|
203 | 204 |
|
| 205 | + <profiles> |
| 206 | + <profile> |
| 207 | + <id>javadoc-lint</id> |
| 208 | + <activation> |
| 209 | + <jdk>[1.8,)</jdk> |
| 210 | + </activation> |
| 211 | + <properties> |
| 212 | + <doclint>none</doclint> |
| 213 | + </properties> |
| 214 | + </profile> |
| 215 | + <profile> |
| 216 | + <id>release</id> |
| 217 | + <build> |
| 218 | + <plugins> |
| 219 | + <plugin> |
| 220 | + <groupId>org.apache.maven.plugins</groupId> |
| 221 | + <artifactId>maven-deploy-plugin</artifactId> |
| 222 | + <version>${maven.deploy.plugin.version}</version> |
| 223 | + <configuration> |
| 224 | + <skip>${skip.maven.deploy}</skip> |
| 225 | + </configuration> |
| 226 | + </plugin> |
| 227 | + <plugin> |
| 228 | + <groupId>org.apache.maven.plugins</groupId> |
| 229 | + <artifactId>maven-gpg-plugin</artifactId> |
| 230 | + <version>${maven.gpg.plugin.version}</version> |
| 231 | + <executions> |
| 232 | + <execution> |
| 233 | + <id>sign-artifacts</id> |
| 234 | + <phase>verify</phase> |
| 235 | + <goals> |
| 236 | + <goal>sign</goal> |
| 237 | + </goals> |
| 238 | + </execution> |
| 239 | + </executions> |
| 240 | + </plugin> |
| 241 | + <plugin> |
| 242 | + <groupId>org.apache.maven.plugins</groupId> |
| 243 | + <artifactId>maven-source-plugin</artifactId> |
| 244 | + <version>${maven.source.plugin.version}</version> |
| 245 | + <executions> |
| 246 | + <execution> |
| 247 | + <id>attach-sources</id> |
| 248 | + <goals> |
| 249 | + <goal>jar-no-fork</goal> |
| 250 | + </goals> |
| 251 | + </execution> |
| 252 | + </executions> |
| 253 | + </plugin> |
| 254 | + <plugin> |
| 255 | + <groupId>org.apache.maven.plugins</groupId> |
| 256 | + <artifactId>maven-javadoc-plugin</artifactId> |
| 257 | + <version>${maven.javadoc.plugin.version}</version> |
| 258 | + <executions> |
| 259 | + <execution> |
| 260 | + <id>attach-javadocs</id> |
| 261 | + <phase>package</phase> |
| 262 | + <goals> |
| 263 | + <goal>jar</goal> |
| 264 | + </goals> |
| 265 | + </execution> |
| 266 | + </executions> |
| 267 | + <configuration> |
| 268 | + <tags> |
| 269 | + <tag> |
| 270 | + <name>date</name> |
| 271 | + </tag> |
| 272 | + </tags> |
| 273 | + <show>public</show> |
| 274 | + <charset>UTF-8</charset> |
| 275 | + <encoding>UTF-8</encoding> |
| 276 | + <docencoding>UTF-8</docencoding> |
| 277 | + <links> |
| 278 | + <link>http://docs.oracle.com/javase/8/docs/api</link> |
| 279 | + </links> |
| 280 | + <doclint>none</doclint> |
| 281 | + <excludePackageNames> |
| 282 | + com.tencent.polaris.*.examples,com.tencent.polaris.*.examples.* |
| 283 | + </excludePackageNames> |
| 284 | + <doctitle>Tencent Polaris ${project.version} API</doctitle> |
| 285 | + <windowtitle>Tencent Polaris ${project.version} API</windowtitle> |
| 286 | + </configuration> |
| 287 | + </plugin> |
| 288 | + </plugins> |
| 289 | + </build> |
| 290 | + </profile> |
| 291 | + </profiles> |
| 292 | + |
204 | 293 | <distributionManagement>
|
205 | 294 | <snapshotRepository>
|
206 | 295 | <id>nexus-snapshots</id>
|
|
0 commit comments