pom.xml 21.1 KB
Newer Older
oldratlee's avatar
oldratlee 已提交
1
<project xmlns="http://maven.apache.org/POM/4.0.0"
oldratlee's avatar
oldratlee 已提交
2 3
		 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
		 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
oldratlee's avatar
oldratlee 已提交
4 5
	<modelVersion>4.0.0</modelVersion>

oldratlee's avatar
oldratlee 已提交
6
	<groupId>com.alibaba</groupId>
7
	<artifactId>transmittable-thread-local</artifactId>
oldratlee's avatar
oldratlee 已提交
8
	<version>2.13.0-SNAPSHOT</version>
oldratlee's avatar
oldratlee 已提交
9
	<packaging>jar</packaging>
10
	<name>TransmittableThreadLocal(TTL)</name>
oldratlee's avatar
oldratlee 已提交
11
	<description>
oldratlee's avatar
oldratlee 已提交
12
		📌 The missing Java™ std lib(simple &amp; 0-dependency) for framework/middleware,
oldratlee's avatar
oldratlee 已提交
13
		provide an enhanced InheritableThreadLocal that transmits values between threads even using thread pooling components.
14
	</description>
oldratlee's avatar
oldratlee 已提交
15
	<url>https://github.com/alibaba/transmittable-thread-local</url>
oldratlee's avatar
oldratlee 已提交
16 17 18 19 20 21 22 23 24 25
	<inceptionYear>2013</inceptionYear>

	<licenses>
		<license>
			<name>Apache 2</name>
			<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
			<distribution>repo</distribution>
			<comments>A business-friendly OSS license</comments>
		</license>
	</licenses>
oldratlee's avatar
oldratlee 已提交
26
	<scm>
oldratlee's avatar
oldratlee 已提交
27 28
		<connection>scm:git:git@github.com:alibaba/transmittable-thread-local.git</connection>
		<developerConnection>scm:git:git@github.com:alibaba/transmittable-thread-local.git</developerConnection>
oldratlee's avatar
oldratlee 已提交
29
		<url>https://github.com/alibaba/transmittable-thread-local</url>
oldratlee's avatar
oldratlee 已提交
30 31
	</scm>
	<issueManagement>
oldratlee's avatar
oldratlee 已提交
32
		<url>https://github.com/alibaba/transmittable-thread-local/issues</url>
oldratlee's avatar
oldratlee 已提交
33 34
		<system>GitHub Issues</system>
	</issueManagement>
oldratlee's avatar
oldratlee 已提交
35 36 37 38
	<ciManagement>
		<system>travis-ci</system>
		<url>https://travis-ci.org/github/alibaba/transmittable-thread-local</url>
	</ciManagement>
oldratlee's avatar
oldratlee 已提交
39 40 41 42 43 44 45 46 47 48 49 50 51
	<organization>
		<name>Alibaba</name>
		<url>http://www.alibaba.com</url>
	</organization>
	<developers>
		<developer>
			<name>Jerry Lee</name>
			<id>oldratlee</id>
			<email>oldratlee(AT)gmail(DOT)com</email>
			<roles>
				<role>Developer</role>
			</roles>
			<timezone>+8</timezone>
oldratlee's avatar
oldratlee 已提交
52
			<url>https://github.com/oldratlee</url>
oldratlee's avatar
oldratlee 已提交
53 54
			<organization>Alibaba</organization>
			<organizationUrl>http://www.alibaba.com</organizationUrl>
oldratlee's avatar
oldratlee 已提交
55
		</developer>
56 57 58 59 60 61 62 63
		<developer>
			<name>Yang Fang</name>
			<id>driventokill</id>
			<email>snoop(DOT)fy(AT)gmail(DOT)com</email>
			<roles>
				<role>Developer</role>
			</roles>
			<timezone>+8</timezone>
oldratlee's avatar
oldratlee 已提交
64
			<url>https://github.com/driventokill</url>
65 66 67
			<organization>Alibaba</organization>
			<organizationUrl>http://www.alibaba.com</organizationUrl>
		</developer>
oldratlee's avatar
oldratlee 已提交
68 69
		<developer>
			<name>wuwen</name>
oldratlee's avatar
oldratlee 已提交
70
			<id>wuwen5</id>
oldratlee's avatar
oldratlee 已提交
71 72 73 74 75
			<email>wuwen.55(AT)aliyun(DOT)com</email>
			<roles>
				<role>Developer</role>
			</roles>
			<timezone>+8</timezone>
oldratlee's avatar
oldratlee 已提交
76
			<url>https://github.com/wuwen5</url>
oldratlee's avatar
oldratlee 已提交
77 78 79 80 81 82 83 84 85 86 87
			<organization>ofpay</organization>
			<organizationUrl>http://www.ofpay.com</organizationUrl>
		</developer>
		<developer>
			<name>David Dai</name>
			<id>LNAmp</id>
			<email>351450944(AT)qq(DOT)com</email>
			<roles>
				<role>Developer</role>
			</roles>
			<timezone>+8</timezone>
oldratlee's avatar
oldratlee 已提交
88
			<url>https://github.com/LNAmp</url>
oldratlee's avatar
oldratlee 已提交
89 90 91
			<organization>Alibaba</organization>
			<organizationUrl>http://www.alibaba.com</organizationUrl>
		</developer>
oldratlee's avatar
oldratlee 已提交
92
	</developers>
oldratlee's avatar
oldratlee 已提交
93 94 95

	<properties>
		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
96

D
dependabot[bot] 已提交
97 98
		<kotlin.version>1.4.32</kotlin.version>
		<kotlin.coroutine.version>1.4.3</kotlin.coroutine.version>
oldratlee's avatar
oldratlee 已提交
99 100 101
	</properties>

	<dependencies>
oldratlee's avatar
oldratlee 已提交
102
		<!--
oldratlee's avatar
oldratlee 已提交
103
			javassist v3.23 is the last version support Java 6
oldratlee's avatar
oldratlee 已提交
104 105
			DO NOT upgrade javassist version!
		-->
106
		<dependency>
oldratlee's avatar
oldratlee 已提交
107
			<groupId>org.javassist</groupId>
108
			<artifactId>javassist</artifactId>
oldratlee's avatar
oldratlee 已提交
109
			<version>3.23.2-GA</version>
oldratlee's avatar
oldratlee 已提交
110
			<optional>true</optional>
111
		</dependency>
oldratlee's avatar
oldratlee 已提交
112 113 114 115 116
		<!--
			JSR305 is already Dormant status, so SpotBugs does not release jsr305 jar file.
			Please continue using findbugs’ one.
			depend on spotbugs-annotations instead.
			https://spotbugs.readthedocs.io/en/stable/migration.html
oldratlee's avatar
oldratlee 已提交
117 118 119 120 121 122 123

			set scope to *provided* but without optional=true:
				- no lib user runtime cost, *still* runtime 0-dependency
				  not runtime/compile Transitive dependence
				- more IDE friendly
				  ensure to be able to jump to annotation classes(edu.umd.cs.findbugs.annotations.NonNull, etc)
				  when user browse source code in IDE
oldratlee's avatar
oldratlee 已提交
124
		-->
oldratlee's avatar
oldratlee 已提交
125
		<dependency>
oldratlee's avatar
oldratlee 已提交
126 127
			<groupId>com.github.spotbugs</groupId>
			<artifactId>spotbugs-annotations</artifactId>
128
			<scope>provided</scope>
D
dependabot[bot] 已提交
129
			<version>4.2.3</version>
130 131 132 133 134 135 136 137 138 139 140 141
		</dependency>
		<!--
			make other qa libs
				- optional, 0-dependency and smaller deployment
				- runtime scope(no compile dependent), ensure no code usage
		-->
		<dependency>
			<groupId>com.google.code.findbugs</groupId>
			<artifactId>jsr305</artifactId>
			<version>3.0.2</version>
			<scope>runtime</scope>
			<optional>true</optional>
oldratlee's avatar
oldratlee 已提交
142
		</dependency>
oldratlee's avatar
oldratlee 已提交
143 144 145 146
		<!-- Testing frameworks and related dependencies -->
		<dependency>
			<groupId>junit</groupId>
			<artifactId>junit</artifactId>
D
dependabot[bot] 已提交
147
			<version>4.13.2</version>
oldratlee's avatar
oldratlee 已提交
148 149
			<scope>test</scope>
		</dependency>
150 151 152 153 154 155
		<dependency>
			<groupId>org.jetbrains.kotlin</groupId>
			<artifactId>kotlin-stdlib</artifactId>
			<version>${kotlin.version}</version>
			<scope>test</scope>
		</dependency>
oldratlee's avatar
oldratlee 已提交
156 157 158 159 160 161
		<dependency>
			<groupId>org.jetbrains.kotlinx</groupId>
			<artifactId>kotlinx-coroutines-core</artifactId>
			<version>${kotlin.coroutine.version}</version>
			<scope>test</scope>
		</dependency>
oldratlee's avatar
oldratlee 已提交
162 163 164
		<dependency>
			<groupId>io.reactivex.rxjava2</groupId>
			<artifactId>rxjava</artifactId>
D
dependabot[bot] 已提交
165
			<version>2.2.21</version>
oldratlee's avatar
oldratlee 已提交
166 167 168 169 170
			<scope>test</scope>
		</dependency>
		<dependency>
			<groupId>io.reactivex.rxjava2</groupId>
			<artifactId>rxkotlin</artifactId>
oldratlee's avatar
oldratlee 已提交
171
			<version>2.4.0</version>
oldratlee's avatar
oldratlee 已提交
172 173
			<scope>test</scope>
		</dependency>
174 175 176
		<!--
			commons-lang3 v3.5 is the last version support Java 6
			http://commons.apache.org/proper/commons-lang/release-history.html
oldratlee's avatar
oldratlee 已提交
177
			DO NOT upgrade commons-lang3 version!
178 179 180 181 182 183 184
		-->
		<dependency>
			<groupId>org.apache.commons</groupId>
			<artifactId>commons-lang3</artifactId>
			<version>3.5</version>
			<scope>test</scope>
		</dependency>
oldratlee's avatar
oldratlee 已提交
185 186
	</dependencies>

oldratlee's avatar
oldratlee 已提交
187 188 189 190 191 192 193
	<distributionManagement>
		<snapshotRepository>
			<id>ossrh</id>
			<url>https://oss.sonatype.org/content/repositories/snapshots</url>
		</snapshotRepository>
	</distributionManagement>

oldratlee's avatar
oldratlee 已提交
194 195
	<build>
		<plugins>
196 197 198 199 200 201
			<!--
				Compiling Kotlin and Java sources - Using Maven - Kotlin Programming Language
				https://kotlinlang.org/docs/reference/using-maven.html#compiling-kotlin-and-java-sources

				Making sure that the kotlin plugin is above the maven-compiler-plugin in your pom.xml file!
			-->
202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230
			<plugin>
				<groupId>org.jetbrains.kotlin</groupId>
				<artifactId>kotlin-maven-plugin</artifactId>
				<version>${kotlin.version}</version>
				<executions>
					<execution>
						<id>compile</id>
						<goals>
							<goal>compile</goal>
						</goals>
						<configuration>
							<sourceDirs>
								<sourceDir>${project.basedir}/src/main/java</sourceDir>
							</sourceDirs>
						</configuration>
					</execution>
					<execution>
						<id>test-compile</id>
						<goals>
							<goal>test-compile</goal>
						</goals>
						<configuration>
							<sourceDirs>
								<sourceDir>${project.basedir}/src/test/java</sourceDir>
							</sourceDirs>
						</configuration>
					</execution>
				</executions>
			</plugin>
231 232
			<plugin>
				<artifactId>maven-compiler-plugin</artifactId>
oldratlee's avatar
oldratlee 已提交
233
				<version>3.8.1</version>
234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265
				<configuration>
					<source>1.6</source>
					<target>1.6</target>
					<encoding>${project.build.sourceEncoding}</encoding>
				</configuration>
				<executions>
					<!-- Replacing default-compile as it is treated specially by maven -->
					<execution>
						<id>default-compile</id>
						<phase>none</phase>
					</execution>
					<!-- Replacing default-testCompile as it is treated specially by maven -->
					<execution>
						<id>default-testCompile</id>
						<phase>none</phase>
					</execution>
					<execution>
						<id>java-compile</id>
						<phase>compile</phase>
						<goals>
							<goal>compile</goal>
						</goals>
					</execution>
					<execution>
						<id>java-test-compile</id>
						<phase>test-compile</phase>
						<goals>
							<goal>testCompile</goal>
						</goals>
					</execution>
				</executions>
			</plugin>
oldratlee's avatar
oldratlee 已提交
266 267
			<plugin>
				<artifactId>maven-jar-plugin</artifactId>
oldratlee's avatar
oldratlee 已提交
268
				<version>3.2.0</version>
oldratlee's avatar
oldratlee 已提交
269 270 271
				<configuration>
					<archive>
						<manifestEntries>
272 273
							<!--
								Instrumentation Specification
oldratlee's avatar
oldratlee 已提交
274
									- https://docs.oracle.com/javase/8/docs/technotes/guides/instrumentation/index.html (this doc for java 8)
oldratlee's avatar
oldratlee 已提交
275
									- https://docs.oracle.com/javase/10/docs/api/java/lang/instrument/package-summary.html#package.description
276
								JAR Manifest - JAR File Specification
oldratlee's avatar
oldratlee 已提交
277
									- https://docs.oracle.com/javase/10/docs/specs/jar/jar.html#jar-manifest
278
							-->
279
							<Premain-Class>com.alibaba.ttl.threadpool.agent.TtlAgent</Premain-Class>
oldratlee's avatar
oldratlee 已提交
280
							<Boot-Class-Path>${project.build.finalName}.jar</Boot-Class-Path>
281
							<Can-Redefine-Classes>false</Can-Redefine-Classes>
282 283
							<Can-Retransform-Classes>true</Can-Retransform-Classes>
							<Can-Set-Native-Method-Prefix>false</Can-Set-Native-Method-Prefix>
oldratlee's avatar
oldratlee 已提交
284 285 286 287
						</manifestEntries>
					</archive>
				</configuration>
			</plugin>
oldratlee's avatar
oldratlee 已提交
288 289
			<plugin>
				<artifactId>maven-shade-plugin</artifactId>
290
				<version>3.2.4</version>
oldratlee's avatar
oldratlee 已提交
291 292
				<executions>
					<execution>
oldratlee's avatar
oldratlee 已提交
293
						<id>shade-when-package</id>
oldratlee's avatar
oldratlee 已提交
294 295 296 297 298 299 300 301
						<phase>package</phase>
						<goals>
							<goal>shade</goal>
						</goals>
						<configuration>
							<relocations>
								<relocation>
									<pattern>javassist</pattern>
302
									<shadedPattern>com.alibaba.ttl.threadpool.agent.transformlet.javassist</shadedPattern>
oldratlee's avatar
oldratlee 已提交
303 304
								</relocation>
							</relocations>
305
							<artifactSet>
306 307 308
								<includes>
									<include>org.javassist:javassist</include>
								</includes>
309
							</artifactSet>
310 311 312 313 314 315 316 317
							<filters>
								<filter>
									<artifact>org.javassist:javassist</artifact>
									<excludes>
										<exclude>META-INF/MANIFEST.MF</exclude>
									</excludes>
								</filter>
							</filters>
318
							<shadeSourcesContent>true</shadeSourcesContent>
oldratlee's avatar
oldratlee 已提交
319 320 321 322
						</configuration>
					</execution>
				</executions>
			</plugin>
oldratlee's avatar
oldratlee 已提交
323 324 325
			<plugin>
				<groupId>org.sonatype.plugins</groupId>
				<artifactId>nexus-staging-maven-plugin</artifactId>
oldratlee's avatar
oldratlee 已提交
326
				<version>1.6.8</version>
oldratlee's avatar
oldratlee 已提交
327 328 329 330 331 332 333
				<extensions>true</extensions>
				<configuration>
					<serverId>ossrh</serverId>
					<nexusUrl>https://oss.sonatype.org/</nexusUrl>
					<autoReleaseAfterClose>true</autoReleaseAfterClose>
				</configuration>
			</plugin>
oldratlee's avatar
oldratlee 已提交
334 335 336 337 338 339 340 341
			<!--
				https://spotbugs.github.io/
				https://spotbugs.readthedocs.io/en/latest/introduction.html
				https://spotbugs.readthedocs.io/en/latest/maven.html
			-->
			<plugin>
				<groupId>com.github.spotbugs</groupId>
				<artifactId>spotbugs-maven-plugin</artifactId>
D
dependabot[bot] 已提交
342
				<version>4.2.3</version>
oldratlee's avatar
oldratlee 已提交
343
			</plugin>
oldratlee's avatar
oldratlee 已提交
344
			<!--
oldratlee's avatar
oldratlee 已提交
345
				official docs: https://maven.apache.org/enforcer/enforcer-rules/requireMavenVersion.html
oldratlee's avatar
oldratlee 已提交
346

oldratlee's avatar
oldratlee 已提交
347 348 349
				add maven-enforce-plugin to make sure the right jdk is used
				https://stackoverflow.com/a/18420462/922688
			-->
oldratlee's avatar
oldratlee 已提交
350 351
			<plugin>
				<artifactId>maven-enforcer-plugin</artifactId>
352
				<version>3.0.0-M3</version>
oldratlee's avatar
oldratlee 已提交
353 354 355 356 357 358 359 360 361
				<executions>
					<execution>
						<id>enforce-maven</id>
						<goals>
							<goal>enforce</goal>
						</goals>
						<configuration>
							<rules>
								<requireMavenVersion>
362
									<version>3.3.9</version>
oldratlee's avatar
oldratlee 已提交
363 364 365 366 367 368
								</requireMavenVersion>
							</rules>
						</configuration>
					</execution>
				</executions>
			</plugin>
369 370 371 372 373 374
			<plugin>
				<!--
					config example: https://github.com/mojohaus/versions-maven-plugin/issues/157#issuecomment-306041074
				-->
				<groupId>org.codehaus.mojo</groupId>
				<artifactId>versions-maven-plugin</artifactId>
D
dependabot[bot] 已提交
375
				<version>2.8.1</version>
376 377 378 379 380
				<configuration>
					<rulesUri>file://${project.basedir}/src/versions-rules.xml</rulesUri>
					<generateBackupPoms>false</generateBackupPoms>
				</configuration>
			</plugin>
oldratlee's avatar
oldratlee 已提交
381
		</plugins>
oldratlee's avatar
oldratlee 已提交
382 383 384 385 386 387 388 389
		<pluginManagement>
			<plugins>
				<plugin>
					<artifactId>maven-clean-plugin</artifactId>
					<version>3.1.0</version>
				</plugin>
				<plugin>
					<artifactId>maven-resources-plugin</artifactId>
D
dependabot[bot] 已提交
390
					<version>3.2.0</version>
oldratlee's avatar
oldratlee 已提交
391 392 393
				</plugin>
				<plugin>
					<artifactId>maven-source-plugin</artifactId>
oldratlee's avatar
oldratlee 已提交
394
					<version>3.2.1</version>
oldratlee's avatar
oldratlee 已提交
395 396 397
				</plugin>
				<plugin>
					<artifactId>maven-javadoc-plugin</artifactId>
oldratlee's avatar
oldratlee 已提交
398
					<version>3.2.0</version>
oldratlee's avatar
oldratlee 已提交
399 400 401
				</plugin>
				<plugin>
					<artifactId>maven-surefire-plugin</artifactId>
oldratlee's avatar
oldratlee 已提交
402
					<version>2.22.2</version>
oldratlee's avatar
oldratlee 已提交
403 404 405
				</plugin>
				<plugin>
					<artifactId>maven-site-plugin</artifactId>
406
					<version>3.9.1</version>
oldratlee's avatar
oldratlee 已提交
407 408 409 410 411 412 413 414 415 416 417
				</plugin>
				<plugin>
					<artifactId>maven-install-plugin</artifactId>
					<version>2.5.2</version>
				</plugin>
				<plugin>
					<artifactId>maven-deploy-plugin</artifactId>
					<version>2.8.2</version>
				</plugin>
			</plugins>
		</pluginManagement>
oldratlee's avatar
oldratlee 已提交
418
	</build>
oldratlee's avatar
oldratlee 已提交
419 420
	<profiles>
		<profile>
421
			<id>gen-src</id>
oldratlee's avatar
oldratlee 已提交
422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440
			<activation>
				<property>
					<name>performRelease</name>
					<value>true</value>
				</property>
			</activation>
			<build>
				<plugins>
					<plugin>
						<artifactId>maven-source-plugin</artifactId>
						<executions>
							<execution>
								<id>attach-sources</id>
								<goals>
									<goal>jar</goal>
								</goals>
							</execution>
						</executions>
					</plugin>
oldratlee's avatar
oldratlee 已提交
441 442 443 444 445 446 447 448 449 450 451
					<plugin>
						<artifactId>maven-shade-plugin</artifactId>
						<executions>
							<execution>
								<id>shade-when-package</id>
								<configuration>
									<createSourcesJar>true</createSourcesJar>
								</configuration>
							</execution>
						</executions>
					</plugin>
452 453 454 455 456 457 458 459 460 461 462 463 464
				</plugins>
			</build>
		</profile>
		<profile>
			<id>gen-javadoc</id>
			<activation>
				<property>
					<name>performRelease</name>
					<value>true</value>
				</property>
			</activation>
			<build>
				<plugins>
oldratlee's avatar
oldratlee 已提交
465 466 467 468 469 470 471 472 473 474 475
					<plugin>
						<artifactId>maven-javadoc-plugin</artifactId>
						<executions>
							<execution>
								<id>attach-javadoc</id>
								<goals>
									<goal>jar</goal>
								</goals>
							</execution>
						</executions>
						<configuration>
oldratlee's avatar
oldratlee 已提交
476
							<source>8</source>
oldratlee's avatar
oldratlee 已提交
477
							<show>protected</show>
oldratlee's avatar
oldratlee 已提交
478 479 480
							<charset>UTF-8</charset>
							<encoding>UTF-8</encoding>
							<docencoding>UTF-8</docencoding>
481 482
							<!-- https://maven.apache.org/plugins/maven-javadoc-plugin/examples/exclude-package-names.html -->
							<excludePackageNames>*.internal.*</excludePackageNames>
oldratlee's avatar
oldratlee 已提交
483 484 485 486
							<sourceFileExcludes>
								<!-- exclude deprecated TtlEnhanced from javadoc -->
								<sourceFilesourceFileExclude>com/alibaba/ttl/TtlEnhanced.java</sourceFilesourceFileExclude>
							</sourceFileExcludes>
oldratlee's avatar
oldratlee 已提交
487
							<overview>src/api/overview.html</overview>
oldratlee's avatar
oldratlee 已提交
488 489
							<isOffline>true</isOffline>
							<offlineLinks>
oldratlee's avatar
oldratlee 已提交
490
								<!--
oldratlee's avatar
oldratlee 已提交
491 492 493
									Apache Maven Javadoc Plugin – Configuring links and offlineLinks Parameters
									https://maven.apache.org/plugins/maven-javadoc-plugin/examples/links-configuration.html

oldratlee's avatar
oldratlee 已提交
494 495 496 497
									more infos about link setting:
									Links to JSR 305 in Javadoc are broken https://github.com/google/guava/issues/2479
									Fix links to javadoc.io for Maven Javadoc Plugin #2628 https://github.com/google/guava/pull/2628
									Can't link to JDK10 in Javadoc comments https://stackoverflow.com/questions/49457896
oldratlee's avatar
oldratlee 已提交
498
									无法在Javadoc注释中链接到JDK10 http://landcareweb.com/questions/24829/wu-fa-zai-javadoczhu-shi-zhong-lian-jie-dao-jdk10
oldratlee's avatar
oldratlee 已提交
499 500 501 502 503 504 505

									About package-list vs.element-list
									- Can't link to JDK10 in Javadoc comments
									  https://stackoverflow.com/a/49498219/922688
									- Missing javadoc/package-list for release 5.1
									  https://github.com/gradle/gradle/issues/8183
									  https://github.com/gradle/gradle/commit/5e88351dd456a5252d21f3a7ad25bff1b62a2fd2
oldratlee's avatar
oldratlee 已提交
506 507 508
								-->
								<offlineLink>
									<url>https://docs.oracle.com/javase/10/docs/api/</url>
oldratlee's avatar
oldratlee 已提交
509
									<location>${project.basedir}/src/package-list/java/</location>
oldratlee's avatar
oldratlee 已提交
510 511
								</offlineLink>
								<offlineLink>
oldratlee's avatar
oldratlee 已提交
512
									<url>https://static.javadoc.io/com.github.spotbugs/spotbugs-annotations/3.1.12/</url>
oldratlee's avatar
oldratlee 已提交
513
									<location>${project.basedir}/src/package-list/spotbugs-annotations/</location>
oldratlee's avatar
oldratlee 已提交
514 515 516 517 518 519
								</offlineLink>
							</offlineLinks>
							<additionalJOptions>
								<!--
									Maven javadoc Search redirects to "/undefined/.." url - Stack Overflow
									https://stackoverflow.com/questions/52326318
oldratlee's avatar
oldratlee 已提交
520
								-->
oldratlee's avatar
oldratlee 已提交
521 522 523 524 525 526
								<additionalJOption>--no-module-directories</additionalJOption>

								<additionalJOption>-html5</additionalJOption>
								<additionalJOption>-quiet</additionalJOption>
								<additionalJOption>-J-Duser.language=en</additionalJOption>
								<additionalJOption>-J-Duser.country=US</additionalJOption>
527 528 529 530 531 532

								<!--
									How to disable Javadoc warnings in Maven Javadoc Plugin? - Stack Overflow
									https://stackoverflow.com/questions/39616344
								-->
								<additionalJOption>-Xdoclint:-missing</additionalJOption>
oldratlee's avatar
oldratlee 已提交
533
							</additionalJOptions>
oldratlee's avatar
oldratlee 已提交
534 535
						</configuration>
					</plugin>
oldratlee's avatar
oldratlee 已提交
536 537 538 539
				</plugins>
			</build>
		</profile>
		<profile>
oldratlee's avatar
oldratlee 已提交
540
			<id>gen-sign</id>
oldratlee's avatar
oldratlee 已提交
541 542 543 544 545 546 547 548
			<activation>
				<property>
					<name>performRelease</name>
					<value>true</value>
				</property>
			</activation>
			<build>
				<plugins>
oldratlee's avatar
oldratlee 已提交
549 550
					<plugin>
						<artifactId>maven-gpg-plugin</artifactId>
D
dependabot[bot] 已提交
551
						<version>3.0.1</version>
oldratlee's avatar
oldratlee 已提交
552 553 554 555 556 557 558 559 560 561 562 563 564
						<executions>
							<execution>
								<id>sign-artifacts</id>
								<phase>verify</phase>
								<goals>
									<goal>sign</goal>
								</goals>
							</execution>
						</executions>
					</plugin>
				</plugins>
			</build>
		</profile>
oldratlee's avatar
oldratlee 已提交
565 566 567 568 569 570 571 572 573 574
		<profile>
			<id>lint</id>
			<activation>
				<property>
					<name>performRelease</name>
					<value>true</value>
				</property>
			</activation>
			<build>
				<plugins>
575 576 577 578
					<!--
						Spotbugs support @SuppressWarnings
						https://github.com/spotbugs/spotbugs/issues/737#issuecomment-416118033
					-->
oldratlee's avatar
oldratlee 已提交
579 580 581 582 583 584 585 586 587 588 589 590 591 592 593
					<plugin>
						<groupId>com.github.spotbugs</groupId>
						<artifactId>spotbugs-maven-plugin</artifactId>
						<executions>
							<execution>
								<phase>test-compile</phase>
								<goals>
									<goal>check</goal>
								</goals>
							</execution>
						</executions>
					</plugin>
				</plugins>
			</build>
		</profile>
oldratlee's avatar
oldratlee 已提交
594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611
		<profile>
			<id>gen-git-properties</id>
			<activation>
				<property>
					<name>performRelease</name>
					<value>true</value>
				</property>
			</activation>
			<build>
				<plugins>
					<!--
						Maven plugin which includes build-time git repository information into an POJO / *.properties).
						Make your apps tell you which version exactly they were built from! Priceless in large distributed deployments.
							https://github.com/ktoso/maven-git-commit-id-plugin
					-->
					<plugin>
						<groupId>pl.project13.maven</groupId>
						<artifactId>git-commit-id-plugin</artifactId>
D
dependabot[bot] 已提交
612
						<version>4.0.4</version>
oldratlee's avatar
oldratlee 已提交
613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642
						<executions>
							<execution>
								<id>get-the-git-infos</id>
								<goals>
									<goal>revision</goal>
								</goals>
							</execution>
							<execution>
								<id>validate-the-git-infos</id>
								<goals>
									<goal>validateRevision</goal>
								</goals>
							</execution>
						</executions>
						<configuration>
							<validationProperties>
								<!-- verify that the current repository is not dirty -->
								<validationProperty>
									<name>validating git dirty</name>
									<value>${git.dirty}</value>
									<shouldMatchTo>false</shouldMatchTo>
								</validationProperty>
							</validationProperties>
							<generateGitPropertiesFile>true</generateGitPropertiesFile>
							<generateGitPropertiesFilename>${project.build.outputDirectory}/META-INF/scm/${project.groupId}/${project.artifactId}/git.properties</generateGitPropertiesFilename>
						</configuration>
					</plugin>
				</plugins>
			</build>
		</profile>
oldratlee's avatar
oldratlee 已提交
643
		<profile>
644
			<id>gen-code-cov</id>
oldratlee's avatar
oldratlee 已提交
645 646 647 648 649 650 651 652 653
			<activation>
				<property>
					<name>env.TRAVIS</name>
					<value>true</value>
				</property>
			</activation>
			<build>
				<plugins>
					<plugin>
654 655 656 657 658
						<!-- for codecov.io -->
						<!-- config example: https://github.com/codecov/example-java -->
						<!-- plugin docs: http://eclemma.org/jacoco/trunk/doc/ -->
						<groupId>org.jacoco</groupId>
						<artifactId>jacoco-maven-plugin</artifactId>
D
dependabot[bot] 已提交
659
						<version>0.8.7</version>
660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679
						<executions>
							<execution>
								<goals>
									<goal>prepare-agent</goal>
								</goals>
							</execution>
							<execution>
								<id>report</id>
								<phase>test</phase>
								<goals>
									<goal>report</goal>
								</goals>
								<configuration>
									<excludes>
										<exclude>com/alibaba/ttl/threadpool/agent/**/*.class</exclude>
										<exclude>com/alibaba/ttl/TtlTimerTask.class</exclude>
									</excludes>
								</configuration>
							</execution>
						</executions>
oldratlee's avatar
oldratlee 已提交
680 681 682 683
					</plugin>
				</plugins>
			</build>
		</profile>
oldratlee's avatar
oldratlee 已提交
684
		<profile>
oldratlee's avatar
oldratlee 已提交
685
			<id>force-jdk11-when-release</id>
oldratlee's avatar
oldratlee 已提交
686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701
			<activation>
				<property>
					<name>performRelease</name>
					<value>true</value>
				</property>
			</activation>
			<build>
				<plugins>
					<!--
						add maven-enforce-plugin to make sure the right jdk is used
						https://stackoverflow.com/a/18420462/922688
					-->
					<plugin>
						<artifactId>maven-enforcer-plugin</artifactId>
						<executions>
							<execution>
oldratlee's avatar
oldratlee 已提交
702
								<id>enforce-jdk-versions</id>
oldratlee's avatar
oldratlee 已提交
703 704 705 706 707 708
								<goals>
									<goal>enforce</goal>
								</goals>
								<configuration>
									<rules>
										<requireJavaVersion>
oldratlee's avatar
oldratlee 已提交
709
											<version>11</version>
oldratlee's avatar
oldratlee 已提交
710 711 712 713 714 715 716 717 718
										</requireJavaVersion>
									</rules>
								</configuration>
							</execution>
						</executions>
					</plugin>
				</plugins>
			</build>
		</profile>
oldratlee's avatar
oldratlee 已提交
719
	</profiles>
oldratlee's avatar
oldratlee 已提交
720
</project>