byte-buddy-parent-1.10.5.pom 38 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0" 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">
  3. <modelVersion>4.0.0</modelVersion>
  4. <groupId>net.bytebuddy</groupId>
  5. <artifactId>byte-buddy-parent</artifactId>
  6. <version>1.10.5</version>
  7. <packaging>pom</packaging>
  8. <inceptionYear>2014</inceptionYear>
  9. <name>Byte Buddy (parent)</name>
  10. <description>
  11. Byte Buddy is a Java library for creating Java classes at run time.
  12. The parent artifact contains configuration information that concern all modules.
  13. </description>
  14. <url>https://bytebuddy.net</url>
  15. <!--
  16. There are several build profiles available:
  17. - extras: Creates additional artifacts containing source files and javadoc. (activated on release)
  18. - gpg: Sign all artifacts using gpg. (activated on release)
  19. - checks: Applies style checks to the source files. (activated by default, activated on release)
  20. - integration: Runs additional unit tests and executes static code analysis (activated on CI server)
  21. - android: Builds an Android test application. An Android SDK is required for doing so. (excluded from release)
  22. - native-compile: Compiles the native extensions required by Byte Buddy agent.
  23. It is also possible to build Byte Buddy against a specific byte code level. By default, Byte Buddy is Java 5 compatible
  24. but requires Java 6 to build and to run tests: By activating a profile javaX where X is a specific version number,
  25. tests and source are compiled to a differing byte code level.
  26. Additionally, the following reports are available via Maven:
  27. - jacoco:prepare-agent verify jacoco:report - Computes coverage for test suite (all modules)
  28. - org.pitest:pitest-maven:mutationCoverage - Runs mutation tests (all modules)
  29. - spotbugs:spotbugs spotbugs:gui - Runs spotbugs and shows a report in a graphical interface (module specific)
  30. - com.github.ferstl:jitwatch-jarscan-maven-plugin:scan - Finds all methods above HotSpot's inlining threshold
  31. - clirr:check - Checks for binary changes in the API
  32. -->
  33. <modules>
  34. <module>byte-buddy</module>
  35. <module>byte-buddy-dep</module>
  36. <module>byte-buddy-benchmark</module>
  37. <module>byte-buddy-agent</module>
  38. <module>byte-buddy-android</module>
  39. <module>byte-buddy-android-test</module>
  40. <module>byte-buddy-maven-plugin</module>
  41. <module>byte-buddy-gradle-plugin</module>
  42. </modules>
  43. <properties>
  44. <copyright.holder>Rafael Winterhalter</copyright.holder>
  45. <bytebuddy.extras>false</bytebuddy.extras>
  46. <bytebuddy.integration>false</bytebuddy.integration>
  47. <bytebuddy.experimental>false</bytebuddy.experimental>
  48. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  49. <sourcecode.main.version>1.5</sourcecode.main.version>
  50. <sourcecode.test.version>1.6</sourcecode.test.version>
  51. <bytecode.main.version>1.5</bytecode.main.version>
  52. <bytecode.test.version>1.6</bytecode.test.version>
  53. <pitest.target>net.bytebuddy</pitest.target>
  54. <asm.url>https://asm.ow2.io</asm.url>
  55. <version.asm>7.2</version.asm>
  56. <version.junit>4.12</version.junit>
  57. <version.mockito>2.23.0</version.mockito>
  58. <version.plugin.clean>3.0.0</version.plugin.clean>
  59. <version.plugin.bundle>3.5.0</version.plugin.bundle>
  60. <version.plugin.compiler>3.8.0</version.plugin.compiler>
  61. <version.plugin.install>2.5.2</version.plugin.install>
  62. <version.plugin.deploy>2.8.2</version.plugin.deploy>
  63. <version.plugin.javadoc>2.10.4</version.plugin.javadoc>
  64. <version.plugin.source>3.0.1</version.plugin.source>
  65. <version.plugin.shade>3.2.1</version.plugin.shade>
  66. <version.plugin.gpg>1.6</version.plugin.gpg>
  67. <version.plugin.jxr>2.5</version.plugin.jxr>
  68. <version.plugin.buildhelp>1.12</version.plugin.buildhelp>
  69. <version.plugin.jar>3.0.2</version.plugin.jar>
  70. <version.plugin.site>3.8.2</version.plugin.site>
  71. <version.plugin.exec>1.6.0</version.plugin.exec>
  72. <version.plugin.plugin>3.6.0</version.plugin.plugin>
  73. <version.plugin.release>2.5.3</version.plugin.release>
  74. <version.plugin.resources>3.0.2</version.plugin.resources>
  75. <version.plugin.surefire>3.0.0-M1</version.plugin.surefire>
  76. <version.plugin.pitest>1.2.0</version.plugin.pitest>
  77. <version.plugin.animal-sniffer>1.16</version.plugin.animal-sniffer>
  78. <version.plugin.enforcer>1.4.1</version.plugin.enforcer>
  79. <version.plugin.jacoco>0.8.2</version.plugin.jacoco>
  80. <version.plugin.coveralls>4.1.0</version.plugin.coveralls>
  81. <version.plugin.checkstyle>2.17</version.plugin.checkstyle>
  82. <version.plugin.jitwatch>1.0.1</version.plugin.jitwatch>
  83. <version.plugin.clirr>2.8</version.plugin.clirr>
  84. <version.plugin.spotbugs>3.1.12.2</version.plugin.spotbugs>
  85. <version.plugin.modulemaker>1.7</version.plugin.modulemaker>
  86. <version.plugin.license>3.0</version.plugin.license>
  87. <version.android.sdk>4.1.1.4</version.android.sdk>
  88. <version.utility.findbugs>3.0.1</version.utility.findbugs>
  89. <spotbugs.skip>false</spotbugs.skip>
  90. <jacoco.skip>false</jacoco.skip>
  91. <repository.url>git@github.com:raphw/byte-buddy.git</repository.url>
  92. </properties>
  93. <licenses>
  94. <license>
  95. <name>Apache License, Version 2.0</name>
  96. <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
  97. <distribution>repo</distribution>
  98. <comments>A business-friendly OSS license</comments>
  99. </license>
  100. </licenses>
  101. <developers>
  102. <developer>
  103. <id>raphw</id>
  104. <name>Rafael Winterhalter</name>
  105. <email>rafael.wth@gmail.com</email>
  106. <url>http://rafael.codes</url>
  107. <roles>
  108. <role>developer</role>
  109. </roles>
  110. <timezone>+1</timezone>
  111. </developer>
  112. </developers>
  113. <issueManagement>
  114. <system>github.com</system>
  115. <url>https://github.com/raphw/byte-buddy/issues</url>
  116. </issueManagement>
  117. <scm>
  118. <connection>scm:git:${repository.url}</connection>
  119. <developerConnection>scm:git:${repository.url}</developerConnection>
  120. <url>${repository.url}</url>
  121. <tag>byte-buddy-1.10.5</tag>
  122. </scm>
  123. <dependencies>
  124. <!-- Allows the suppression of spotbugs false-positives by annotations without adding an actual dependency. -->
  125. <dependency>
  126. <groupId>com.google.code.findbugs</groupId>
  127. <artifactId>findbugs-annotations</artifactId>
  128. <version>${version.utility.findbugs}</version>
  129. <scope>provided</scope>
  130. </dependency>
  131. </dependencies>
  132. <build>
  133. <plugins>
  134. <!-- Define release properties. -->
  135. <plugin>
  136. <groupId>org.apache.maven.plugins</groupId>
  137. <artifactId>maven-release-plugin</artifactId>
  138. <version>${version.plugin.release}</version>
  139. <configuration>
  140. <useReleaseProfile>false</useReleaseProfile>
  141. <releaseProfiles>extras,gpg</releaseProfiles>
  142. <autoVersionSubmodules>true</autoVersionSubmodules>
  143. <tagNameFormat>byte-buddy-@{project.version}</tagNameFormat>
  144. </configuration>
  145. </plugin>
  146. <!-- Enable mutation testing. -->
  147. <plugin>
  148. <groupId>org.pitest</groupId>
  149. <artifactId>pitest-maven</artifactId>
  150. <version>${version.plugin.pitest}</version>
  151. <configuration>
  152. <targetClasses>
  153. <param>${pitest.target}.*</param>
  154. </targetClasses>
  155. <targetTests>
  156. <param>${pitest.target}.*</param>
  157. </targetTests>
  158. </configuration>
  159. </plugin>
  160. <!-- Configure Jacoco support for evaluating test case coverage. -->
  161. <plugin>
  162. <groupId>org.jacoco</groupId>
  163. <artifactId>jacoco-maven-plugin</artifactId>
  164. <version>${version.plugin.jacoco}</version>
  165. <configuration>
  166. <skip>${jacoco.skip}</skip>
  167. <includes>
  168. <include>net/bytebuddy/**</include>
  169. </includes>
  170. <excludes>
  171. <exclude>net/bytebuddy/benchmark/generated/*</exclude>
  172. <!-- Avoid adding synthetic members to test classes as test assert class members. -->
  173. <exclude>*Test*</exclude>
  174. <exclude>*test*</exclude>
  175. </excludes>
  176. </configuration>
  177. </plugin>
  178. <!-- Generate coveralls reports from CI server. -->
  179. <plugin>
  180. <groupId>org.eluder.coveralls</groupId>
  181. <artifactId>coveralls-maven-plugin</artifactId>
  182. <version>${version.plugin.coveralls}</version>
  183. <configuration>
  184. <sourceDirectories>
  185. <sourceDirectory>${project.basedir}/byte-buddy-dep/src/precompiled/java</sourceDirectory>
  186. </sourceDirectories>
  187. </configuration>
  188. </plugin>
  189. <!-- Also allow for manual spotbugs execution. Note that the generated warnings do not always apply for Byte Buddy's use case. -->
  190. <plugin>
  191. <groupId>com.github.spotbugs</groupId>
  192. <artifactId>spotbugs-maven-plugin</artifactId>
  193. <version>${version.plugin.spotbugs}</version>
  194. <configuration>
  195. <skip>${spotbugs.skip}</skip>
  196. <effort>Max</effort>
  197. <threshold>Low</threshold>
  198. <xmlOutput>true</xmlOutput>
  199. <failOnError>false</failOnError>
  200. <spotbugsXmlOutputDirectory>${project.build.directory}/spotbugs</spotbugsXmlOutputDirectory>
  201. </configuration>
  202. </plugin>
  203. <!-- Enable scanning for methods above the inlining threshold (JDK 7+) -->
  204. <plugin>
  205. <groupId>com.github.ferstl</groupId>
  206. <artifactId>jitwatch-jarscan-maven-plugin</artifactId>
  207. <version>${version.plugin.jitwatch}</version>
  208. </plugin>
  209. <!-- Enable scanning for binary changes between releases -->
  210. <plugin>
  211. <groupId>org.codehaus.mojo</groupId>
  212. <artifactId>clirr-maven-plugin</artifactId>
  213. <version>${version.plugin.clirr}</version>
  214. </plugin>
  215. <!-- Resolve the current year. -->
  216. <plugin>
  217. <groupId>org.codehaus.mojo</groupId>
  218. <artifactId>build-helper-maven-plugin</artifactId>
  219. <version>${version.plugin.buildhelp}</version>
  220. <executions>
  221. <execution>
  222. <id>timestamp-property</id>
  223. <goals>
  224. <goal>timestamp-property</goal>
  225. </goals>
  226. <phase>validate</phase>
  227. <configuration>
  228. <locale>en_US</locale>
  229. <name>current.year</name>
  230. <pattern>yyyy</pattern>
  231. </configuration>
  232. </execution>
  233. </executions>
  234. </plugin>
  235. <!-- Add license headers to all files. -->
  236. <plugin>
  237. <groupId>com.mycila</groupId>
  238. <artifactId>license-maven-plugin</artifactId>
  239. <version>${version.plugin.license}</version>
  240. <inherited>false</inherited>
  241. <configuration>
  242. <header>${project.basedir}/NOTICE</header>
  243. <aggregate>true</aggregate>
  244. <failIfMissing>true</failIfMissing>
  245. <encoding>${project.build.sourceEncoding}</encoding>
  246. <properties>
  247. <current.year>${current.year}</current.year>
  248. <copyright.holder>${copyright.holder}</copyright.holder>
  249. </properties>
  250. <includes>
  251. <include>**/main/java/**/*.java</include>
  252. <include>**/precompiled/java/**/*.java</include>
  253. <include>**/main/c/**/*.c</include>
  254. </includes>
  255. <strictCheck>true</strictCheck>
  256. <mapping>
  257. <java>SLASHSTAR_STYLE</java>
  258. </mapping>
  259. </configuration>
  260. <executions>
  261. <execution>
  262. <phase>package</phase>
  263. <goals>
  264. <goal>format</goal>
  265. </goals>
  266. </execution>
  267. </executions>
  268. </plugin>
  269. </plugins>
  270. <pluginManagement>
  271. <plugins>
  272. <plugin>
  273. <groupId>org.apache.maven.plugins</groupId>
  274. <artifactId>maven-clean-plugin</artifactId>
  275. <version>${version.plugin.clean}</version>
  276. </plugin>
  277. <plugin>
  278. <groupId>org.apache.maven.plugins</groupId>
  279. <artifactId>maven-jar-plugin</artifactId>
  280. <version>${version.plugin.jar}</version>
  281. </plugin>
  282. <plugin>
  283. <groupId>org.apache.maven.plugins</groupId>
  284. <artifactId>maven-resources-plugin</artifactId>
  285. <version>${version.plugin.resources}</version>
  286. </plugin>
  287. <plugin>
  288. <groupId>org.apache.maven.plugins</groupId>
  289. <artifactId>maven-install-plugin</artifactId>
  290. <version>${version.plugin.install}</version>
  291. </plugin>
  292. <plugin>
  293. <groupId>org.apache.maven.plugins</groupId>
  294. <artifactId>maven-surefire-plugin</artifactId>
  295. <version>${version.plugin.surefire}</version>
  296. <configuration>
  297. <systemPropertyVariables>
  298. <net.bytebuddy.experimental>${bytebuddy.experimental}</net.bytebuddy.experimental>
  299. <net.bytebuddy.test.integration>${bytebuddy.integration}</net.bytebuddy.test.integration>
  300. </systemPropertyVariables>
  301. </configuration>
  302. </plugin>
  303. <plugin>
  304. <groupId>org.apache.maven.plugins</groupId>
  305. <artifactId>maven-deploy-plugin</artifactId>
  306. <version>${version.plugin.deploy}</version>
  307. <configuration>
  308. <updateReleaseInfo>true</updateReleaseInfo>
  309. </configuration>
  310. </plugin>
  311. <plugin>
  312. <groupId>org.apache.maven.plugins</groupId>
  313. <artifactId>maven-site-plugin</artifactId>
  314. <version>${version.plugin.site}</version>
  315. </plugin>
  316. <plugin>
  317. <groupId>org.apache.maven.plugins</groupId>
  318. <artifactId>maven-compiler-plugin</artifactId>
  319. <version>${version.plugin.compiler}</version>
  320. <inherited>true</inherited>
  321. <configuration>
  322. <source>${sourcecode.main.version}</source>
  323. <target>${bytecode.main.version}</target>
  324. <testSource>${sourcecode.test.version}</testSource>
  325. <testTarget>${bytecode.test.version}</testTarget>
  326. <encoding>${project.build.sourceEncoding}</encoding>
  327. </configuration>
  328. </plugin>
  329. <plugin>
  330. <groupId>org.apache.maven.plugins</groupId>
  331. <artifactId>maven-plugin-plugin</artifactId>
  332. <version>${version.plugin.plugin}</version>
  333. <dependencies>
  334. <dependency>
  335. <groupId>org.ow2.asm</groupId>
  336. <artifactId>asm</artifactId>
  337. <version>${version.asm}</version>
  338. </dependency>
  339. <dependency>
  340. <groupId>org.ow2.asm</groupId>
  341. <artifactId>asm-commons</artifactId>
  342. <version>${version.asm}</version>
  343. </dependency>
  344. </dependencies>
  345. </plugin>
  346. </plugins>
  347. </pluginManagement>
  348. </build>
  349. <!-- Define explicit version to overcome problem with generated reports. -->
  350. <reporting>
  351. <plugins>
  352. <plugin>
  353. <groupId>org.apache.maven.plugins</groupId>
  354. <artifactId>maven-jxr-plugin</artifactId>
  355. <version>${version.plugin.jxr}</version>
  356. </plugin>
  357. </plugins>
  358. </reporting>
  359. <distributionManagement>
  360. <repository>
  361. <id>bintray</id>
  362. <url>https://api.bintray.com/maven/raphw/maven/ByteBuddy</url>
  363. </repository>
  364. </distributionManagement>
  365. <profiles>
  366. <!-- Runs the build with compatibility for Java 6 JVMs. -->
  367. <profile>
  368. <id>java6-compatibility</id>
  369. <activation>
  370. <activeByDefault>false</activeByDefault>
  371. <jdk>1.6</jdk>
  372. </activation>
  373. <properties>
  374. <version.asm.deprecated>7.1</version.asm.deprecated>
  375. <version.plugin.bundle>2.5.4</version.plugin.bundle>
  376. <version.plugin.checkstyle>2.15</version.plugin.checkstyle>
  377. <version.plugin.compiler>3.6.2</version.plugin.compiler>
  378. <version.plugin.spotbugs>3.1.0-RC8</version.plugin.spotbugs>
  379. <version.plugin.exec>1.5.0</version.plugin.exec>
  380. <version.plugin.plugin>3.5.2</version.plugin.plugin>
  381. <version.plugin.shade>3.1.1</version.plugin.shade>
  382. <version.plugin.surefire>2.22.1</version.plugin.surefire>
  383. <spotbugs.skip>true</spotbugs.skip>
  384. </properties>
  385. <modules>
  386. <module>byte-buddy</module>
  387. <module>byte-buddy-dep</module>
  388. <module>byte-buddy-benchmark</module>
  389. <module>byte-buddy-agent</module>
  390. <module>byte-buddy-android</module>
  391. <module>byte-buddy-maven-plugin</module>
  392. <module>byte-buddy-gradle-plugin</module>
  393. </modules>
  394. <build>
  395. <pluginManagement>
  396. <plugins>
  397. <plugin>
  398. <groupId>org.apache.maven.plugins</groupId>
  399. <artifactId>maven-plugin-plugin</artifactId>
  400. <version>${version.plugin.plugin}</version>
  401. <dependencies>
  402. <dependency>
  403. <groupId>org.ow2.asm</groupId>
  404. <artifactId>asm</artifactId>
  405. <version>${version.asm.deprecated}</version>
  406. </dependency>
  407. <dependency>
  408. <groupId>org.ow2.asm</groupId>
  409. <artifactId>asm-commons</artifactId>
  410. <version>${version.asm.deprecated}</version>
  411. </dependency>
  412. <dependency>
  413. <groupId>org.ow2.asm</groupId>
  414. <artifactId>asm-deprecated</artifactId>
  415. <version>${version.asm.deprecated}</version>
  416. </dependency>
  417. </dependencies>
  418. </plugin>
  419. </plugins>
  420. </pluginManagement>
  421. </build>
  422. </profile>
  423. <!-- Runs the build with compatibility for Java 7 JVMs. -->
  424. <profile>
  425. <id>java7-compatibility</id>
  426. <activation>
  427. <activeByDefault>false</activeByDefault>
  428. <jdk>1.7</jdk>
  429. </activation>
  430. <properties>
  431. <version.plugin.spotbugs>3.1.0-RC8</version.plugin.spotbugs>
  432. <spotbugs.skip>true</spotbugs.skip>
  433. </properties>
  434. </profile>
  435. <!-- Runs the build with compatibility for Java 9 JVMs. -->
  436. <profile>
  437. <id>java9-compatibility</id>
  438. <activation>
  439. <activeByDefault>false</activeByDefault>
  440. <jdk>9</jdk>
  441. </activation>
  442. <properties>
  443. <sourcecode.main.version>1.6</sourcecode.main.version>
  444. <sourcecode.test.version>1.6</sourcecode.test.version>
  445. <bytecode.main.version>1.6</bytecode.main.version>
  446. <bytecode.test.version>1.6</bytecode.test.version>
  447. </properties>
  448. </profile>
  449. <!-- Runs the build with compatibility for Java 10 JVMs. -->
  450. <profile>
  451. <id>java10-compatibility</id>
  452. <activation>
  453. <activeByDefault>false</activeByDefault>
  454. <jdk>10</jdk>
  455. </activation>
  456. <properties>
  457. <sourcecode.main.version>1.7</sourcecode.main.version>
  458. <sourcecode.test.version>1.7</sourcecode.test.version>
  459. <bytecode.main.version>1.7</bytecode.main.version>
  460. <bytecode.test.version>1.7</bytecode.test.version>
  461. </properties>
  462. </profile>
  463. <!-- Runs the build with compatibility for Java 11 JVMs. -->
  464. <profile>
  465. <id>java11-compatibility</id>
  466. <activation>
  467. <activeByDefault>false</activeByDefault>
  468. <jdk>11</jdk>
  469. </activation>
  470. <properties>
  471. <sourcecode.main.version>1.7</sourcecode.main.version>
  472. <sourcecode.test.version>1.7</sourcecode.test.version>
  473. <bytecode.main.version>1.7</bytecode.main.version>
  474. <bytecode.test.version>1.7</bytecode.test.version>
  475. <jacoco.skip>true</jacoco.skip>
  476. </properties>
  477. </profile>
  478. <!-- Runs the build with compatibility for Java 12 JVMs. -->
  479. <profile>
  480. <id>java12-compatibility</id>
  481. <activation>
  482. <activeByDefault>false</activeByDefault>
  483. <jdk>12</jdk>
  484. </activation>
  485. <properties>
  486. <sourcecode.main.version>1.7</sourcecode.main.version>
  487. <sourcecode.test.version>1.7</sourcecode.test.version>
  488. <bytecode.main.version>1.7</bytecode.main.version>
  489. <bytecode.test.version>1.7</bytecode.test.version>
  490. <jacoco.skip>true</jacoco.skip>
  491. <bytebuddy.experimental>true</bytebuddy.experimental>
  492. </properties>
  493. </profile>
  494. <!-- Runs the build with compatibility for Java 13 JVMs. -->
  495. <profile>
  496. <id>java13-compatibility</id>
  497. <activation>
  498. <activeByDefault>false</activeByDefault>
  499. <jdk>13</jdk>
  500. </activation>
  501. <properties>
  502. <sourcecode.main.version>1.7</sourcecode.main.version>
  503. <sourcecode.test.version>1.7</sourcecode.test.version>
  504. <bytecode.main.version>1.7</bytecode.main.version>
  505. <bytecode.test.version>1.7</bytecode.test.version>
  506. <jacoco.skip>true</jacoco.skip>
  507. <bytebuddy.experimental>true</bytebuddy.experimental>
  508. </properties>
  509. </profile>
  510. <!-- Runs the build with compatibility for Java 14 JVMs. -->
  511. <profile>
  512. <id>java14-compatibility</id>
  513. <activation>
  514. <activeByDefault>false</activeByDefault>
  515. <jdk>14</jdk>
  516. </activation>
  517. <properties>
  518. <sourcecode.main.version>1.7</sourcecode.main.version>
  519. <sourcecode.test.version>1.7</sourcecode.test.version>
  520. <bytecode.main.version>1.7</bytecode.main.version>
  521. <bytecode.test.version>1.7</bytecode.test.version>
  522. <jacoco.skip>true</jacoco.skip>
  523. <bytebuddy.experimental>true</bytebuddy.experimental>
  524. </properties>
  525. </profile>
  526. <!-- Builds using a byte code target for Java 6. -->
  527. <profile>
  528. <id>java6</id>
  529. <activation>
  530. <activeByDefault>false</activeByDefault>
  531. </activation>
  532. <properties>
  533. <bytecode.main.version>1.6</bytecode.main.version>
  534. </properties>
  535. </profile>
  536. <!-- Builds using a byte code target for Java 7. -->
  537. <profile>
  538. <id>java7</id>
  539. <activation>
  540. <activeByDefault>false</activeByDefault>
  541. </activation>
  542. <properties>
  543. <bytecode.main.version>1.7</bytecode.main.version>
  544. <bytecode.test.version>1.7</bytecode.test.version>
  545. </properties>
  546. </profile>
  547. <!-- Builds using a byte code target for Java 8. -->
  548. <profile>
  549. <id>java8</id>
  550. <activation>
  551. <activeByDefault>false</activeByDefault>
  552. </activation>
  553. <properties>
  554. <bytecode.main.version>1.8</bytecode.main.version>
  555. <bytecode.test.version>1.8</bytecode.test.version>
  556. </properties>
  557. </profile>
  558. <!-- Builds using a byte code target for Java 9. -->
  559. <profile>
  560. <id>java9</id>
  561. <activation>
  562. <activeByDefault>false</activeByDefault>
  563. </activation>
  564. <properties>
  565. <bytecode.main.version>9</bytecode.main.version>
  566. <bytecode.test.version>9</bytecode.test.version>
  567. </properties>
  568. </profile>
  569. <!-- Builds using a byte code target for Java 10. -->
  570. <profile>
  571. <id>java10</id>
  572. <activation>
  573. <activeByDefault>false</activeByDefault>
  574. </activation>
  575. <properties>
  576. <bytecode.main.version>10</bytecode.main.version>
  577. <bytecode.test.version>10</bytecode.test.version>
  578. <spotbugs.skip>true</spotbugs.skip>
  579. </properties>
  580. </profile>
  581. <!-- Builds using a byte code target for Java 11. -->
  582. <profile>
  583. <id>java11</id>
  584. <activation>
  585. <activeByDefault>false</activeByDefault>
  586. </activation>
  587. <properties>
  588. <bytecode.main.version>11</bytecode.main.version>
  589. <bytecode.test.version>11</bytecode.test.version>
  590. <spotbugs.skip>true</spotbugs.skip>
  591. </properties>
  592. </profile>
  593. <!-- Builds using a byte code target for Java 12. -->
  594. <profile>
  595. <id>java12</id>
  596. <activation>
  597. <activeByDefault>false</activeByDefault>
  598. </activation>
  599. <properties>
  600. <bytecode.main.version>12</bytecode.main.version>
  601. <bytecode.test.version>12</bytecode.test.version>
  602. <spotbugs.skip>true</spotbugs.skip>
  603. </properties>
  604. </profile>
  605. <!-- Builds using a byte code target for Java 13. -->
  606. <profile>
  607. <id>java13</id>
  608. <activation>
  609. <activeByDefault>false</activeByDefault>
  610. </activation>
  611. <properties>
  612. <bytecode.main.version>13</bytecode.main.version>
  613. <bytecode.test.version>13</bytecode.test.version>
  614. <spotbugs.skip>true</spotbugs.skip>
  615. </properties>
  616. </profile>
  617. <!-- Builds using a byte code target for Java 14. -->
  618. <profile>
  619. <id>java14</id>
  620. <activation>
  621. <activeByDefault>false</activeByDefault>
  622. </activation>
  623. <properties>
  624. <bytecode.main.version>14</bytecode.main.version>
  625. <bytecode.test.version>14</bytecode.test.version>
  626. <spotbugs.skip>true</spotbugs.skip>
  627. </properties>
  628. </profile>
  629. <!-- Creates additional artifacts that are required for deployment. -->
  630. <profile>
  631. <id>extras</id>
  632. <activation>
  633. <activeByDefault>false</activeByDefault>
  634. </activation>
  635. <properties>
  636. <bytebuddy.extras>true</bytebuddy.extras>
  637. </properties>
  638. <build>
  639. <plugins>
  640. <!-- Create source code artifact. -->
  641. <plugin>
  642. <groupId>org.apache.maven.plugins</groupId>
  643. <artifactId>maven-source-plugin</artifactId>
  644. <version>${version.plugin.source}</version>
  645. <executions>
  646. <execution>
  647. <goals>
  648. <goal>jar</goal>
  649. </goals>
  650. </execution>
  651. </executions>
  652. </plugin>
  653. <!-- Create javadoc artifact. -->
  654. <plugin>
  655. <groupId>org.apache.maven.plugins</groupId>
  656. <artifactId>maven-javadoc-plugin</artifactId>
  657. <version>${version.plugin.javadoc}</version>
  658. <executions>
  659. <execution>
  660. <goals>
  661. <goal>jar</goal>
  662. </goals>
  663. </execution>
  664. </executions>
  665. <configuration>
  666. <source>${sourcecode.main.version}</source>
  667. <detectJavaApiLink>true</detectJavaApiLink>
  668. <links>
  669. <link>${asm.url}/javadoc</link>
  670. </links>
  671. </configuration>
  672. </plugin>
  673. </plugins>
  674. </build>
  675. </profile>
  676. <!-- Sign any created artifact. (Requires configuration of gpg on the executing machine.) -->
  677. <profile>
  678. <id>gpg</id>
  679. <activation>
  680. <activeByDefault>false</activeByDefault>
  681. </activation>
  682. <build>
  683. <plugins>
  684. <!-- Sign artifacts. -->
  685. <plugin>
  686. <groupId>org.apache.maven.plugins</groupId>
  687. <artifactId>maven-gpg-plugin</artifactId>
  688. <version>${version.plugin.gpg}</version>
  689. <executions>
  690. <execution>
  691. <phase>verify</phase>
  692. <goals>
  693. <goal>sign</goal>
  694. </goals>
  695. <configuration>
  696. <gpgArguments>
  697. <arg>--pinentry-mode</arg>
  698. <arg>loopback</arg>
  699. </gpgArguments>
  700. </configuration>
  701. </execution>
  702. </executions>
  703. </plugin>
  704. </plugins>
  705. </build>
  706. </profile>
  707. <!-- Basic checks that are not requiring too much runtime. -->
  708. <profile>
  709. <id>checks</id>
  710. <activation>
  711. <activeByDefault>true</activeByDefault>
  712. </activation>
  713. <build>
  714. <plugins>
  715. <!-- Check style on build. -->
  716. <plugin>
  717. <groupId>org.apache.maven.plugins</groupId>
  718. <artifactId>maven-checkstyle-plugin</artifactId>
  719. <version>${version.plugin.checkstyle}</version>
  720. <executions>
  721. <execution>
  722. <phase>validate</phase>
  723. <goals>
  724. <goal>check</goal>
  725. </goals>
  726. <configuration>
  727. <configLocation>checkstyle.xml</configLocation>
  728. <consoleOutput>true</consoleOutput>
  729. <failsOnError>true</failsOnError>
  730. <excludes>**/generated/**/*</excludes>
  731. <includeResources>false</includeResources>
  732. </configuration>
  733. </execution>
  734. </executions>
  735. </plugin>
  736. <!-- Check API compatibility. -->
  737. <plugin>
  738. <groupId>org.codehaus.mojo</groupId>
  739. <artifactId>animal-sniffer-maven-plugin</artifactId>
  740. <version>${version.plugin.animal-sniffer}</version>
  741. <executions>
  742. <execution>
  743. <phase>test</phase>
  744. <goals>
  745. <goal>check</goal>
  746. </goals>
  747. <configuration>
  748. <signature>
  749. <groupId>org.codehaus.mojo.signature</groupId>
  750. <artifactId>java15</artifactId>
  751. <version>1.0</version>
  752. </signature>
  753. </configuration>
  754. </execution>
  755. </executions>
  756. </plugin>
  757. <!-- Make sure that Byte Buddy does never depend on ASM's tree API. -->
  758. <plugin>
  759. <groupId>org.apache.maven.plugins</groupId>
  760. <artifactId>maven-enforcer-plugin</artifactId>
  761. <version>${version.plugin.enforcer}</version>
  762. <executions>
  763. <execution>
  764. <goals>
  765. <goal>enforce</goal>
  766. </goals>
  767. <configuration>
  768. <fail>true</fail>
  769. <rules>
  770. <bannedDependencies>
  771. <includes>
  772. <include>org.ow2.asm:asm-tree</include>
  773. </includes>
  774. </bannedDependencies>
  775. <requireMavenVersion>
  776. <version>[3.2.5,)</version>
  777. </requireMavenVersion>
  778. <requireJavaVersion>
  779. <version>[1.6,)</version>
  780. </requireJavaVersion>
  781. </rules>
  782. </configuration>
  783. </execution>
  784. </executions>
  785. </plugin>
  786. </plugins>
  787. </build>
  788. </profile>
  789. <!-- Integration profile that executes long-running tasks and additional static code analysis. -->
  790. <profile>
  791. <id>integration</id>
  792. <activation>
  793. <activeByDefault>false</activeByDefault>
  794. </activation>
  795. <properties>
  796. <bytebuddy.integration>true</bytebuddy.integration>
  797. </properties>
  798. <build>
  799. <plugins>
  800. <!-- Run spotbugs if not specified differently in a module.-->
  801. <plugin>
  802. <groupId>com.github.spotbugs</groupId>
  803. <artifactId>spotbugs-maven-plugin</artifactId>
  804. <version>${version.plugin.spotbugs}</version>
  805. <executions>
  806. <execution>
  807. <phase>verify</phase>
  808. <goals>
  809. <goal>check</goal>
  810. </goals>
  811. <configuration>
  812. <skip>${spotbugs.skip}</skip>
  813. <effort>Max</effort>
  814. <threshold>Low</threshold>
  815. <xmlOutput>true</xmlOutput>
  816. <failOnError>true</failOnError>
  817. </configuration>
  818. </execution>
  819. </executions>
  820. </plugin>
  821. </plugins>
  822. </build>
  823. </profile>
  824. </profiles>
  825. </project>