byte-buddy-parent-1.10.18.pom 40 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891
  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.18</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>9.0</version.asm>
  56. <version.junit>4.13.1</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.4</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-M5</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.6</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.18</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. </properties>
  476. </profile>
  477. <!-- Runs the build with compatibility for Java 12 JVMs. -->
  478. <profile>
  479. <id>java12-compatibility</id>
  480. <activation>
  481. <activeByDefault>false</activeByDefault>
  482. <jdk>12</jdk>
  483. </activation>
  484. <properties>
  485. <sourcecode.main.version>1.7</sourcecode.main.version>
  486. <sourcecode.test.version>1.7</sourcecode.test.version>
  487. <bytecode.main.version>1.7</bytecode.main.version>
  488. <bytecode.test.version>1.7</bytecode.test.version>
  489. </properties>
  490. </profile>
  491. <!-- Runs the build with compatibility for Java 13 JVMs. -->
  492. <profile>
  493. <id>java13-compatibility</id>
  494. <activation>
  495. <activeByDefault>false</activeByDefault>
  496. <jdk>13</jdk>
  497. </activation>
  498. <properties>
  499. <sourcecode.main.version>1.7</sourcecode.main.version>
  500. <sourcecode.test.version>1.7</sourcecode.test.version>
  501. <bytecode.main.version>1.7</bytecode.main.version>
  502. <bytecode.test.version>1.7</bytecode.test.version>
  503. </properties>
  504. </profile>
  505. <!-- Runs the build with compatibility for Java 14 JVMs. -->
  506. <profile>
  507. <id>java14-compatibility</id>
  508. <activation>
  509. <activeByDefault>false</activeByDefault>
  510. <jdk>14</jdk>
  511. </activation>
  512. <properties>
  513. <sourcecode.main.version>1.7</sourcecode.main.version>
  514. <sourcecode.test.version>1.7</sourcecode.test.version>
  515. <bytecode.main.version>1.7</bytecode.main.version>
  516. <bytecode.test.version>1.7</bytecode.test.version>
  517. </properties>
  518. </profile>
  519. <!-- Runs the build with compatibility for Java 15 JVMs. -->
  520. <profile>
  521. <id>java15-compatibility</id>
  522. <activation>
  523. <activeByDefault>false</activeByDefault>
  524. <jdk>15</jdk>
  525. </activation>
  526. <properties>
  527. <sourcecode.main.version>8</sourcecode.main.version>
  528. <sourcecode.test.version>8</sourcecode.test.version>
  529. <bytecode.main.version>8</bytecode.main.version>
  530. <bytecode.test.version>8</bytecode.test.version>
  531. </properties>
  532. </profile>
  533. <!-- Runs the build with compatibility for Java 15 JVMs. -->
  534. <profile>
  535. <id>java16-compatibility</id>
  536. <activation>
  537. <activeByDefault>false</activeByDefault>
  538. <jdk>16</jdk>
  539. </activation>
  540. <properties>
  541. <sourcecode.main.version>8</sourcecode.main.version>
  542. <sourcecode.test.version>8</sourcecode.test.version>
  543. <bytecode.main.version>8</bytecode.main.version>
  544. <bytecode.test.version>8</bytecode.test.version>
  545. <jacoco.skip>true</jacoco.skip>
  546. <bytebuddy.experimental>true</bytebuddy.experimental>
  547. </properties>
  548. </profile>
  549. <!-- Builds using a byte code target for Java 6. -->
  550. <profile>
  551. <id>java6</id>
  552. <activation>
  553. <activeByDefault>false</activeByDefault>
  554. </activation>
  555. <properties>
  556. <bytecode.main.version>1.6</bytecode.main.version>
  557. </properties>
  558. </profile>
  559. <!-- Builds using a byte code target for Java 7. -->
  560. <profile>
  561. <id>java7</id>
  562. <activation>
  563. <activeByDefault>false</activeByDefault>
  564. </activation>
  565. <properties>
  566. <bytecode.main.version>1.7</bytecode.main.version>
  567. <bytecode.test.version>1.7</bytecode.test.version>
  568. </properties>
  569. </profile>
  570. <!-- Builds using a byte code target for Java 8. -->
  571. <profile>
  572. <id>java8</id>
  573. <activation>
  574. <activeByDefault>false</activeByDefault>
  575. </activation>
  576. <properties>
  577. <bytecode.main.version>1.8</bytecode.main.version>
  578. <bytecode.test.version>1.8</bytecode.test.version>
  579. </properties>
  580. </profile>
  581. <!-- Builds using a byte code target for Java 9. -->
  582. <profile>
  583. <id>java9</id>
  584. <activation>
  585. <activeByDefault>false</activeByDefault>
  586. </activation>
  587. <properties>
  588. <bytecode.main.version>9</bytecode.main.version>
  589. <bytecode.test.version>9</bytecode.test.version>
  590. </properties>
  591. </profile>
  592. <!-- Builds using a byte code target for Java 10. -->
  593. <profile>
  594. <id>java10</id>
  595. <activation>
  596. <activeByDefault>false</activeByDefault>
  597. </activation>
  598. <properties>
  599. <bytecode.main.version>10</bytecode.main.version>
  600. <bytecode.test.version>10</bytecode.test.version>
  601. <spotbugs.skip>true</spotbugs.skip>
  602. </properties>
  603. </profile>
  604. <!-- Builds using a byte code target for Java 11. -->
  605. <profile>
  606. <id>java11</id>
  607. <activation>
  608. <activeByDefault>false</activeByDefault>
  609. </activation>
  610. <properties>
  611. <bytecode.main.version>11</bytecode.main.version>
  612. <bytecode.test.version>11</bytecode.test.version>
  613. <spotbugs.skip>true</spotbugs.skip>
  614. </properties>
  615. </profile>
  616. <!-- Builds using a byte code target for Java 12. -->
  617. <profile>
  618. <id>java12</id>
  619. <activation>
  620. <activeByDefault>false</activeByDefault>
  621. </activation>
  622. <properties>
  623. <bytecode.main.version>12</bytecode.main.version>
  624. <bytecode.test.version>12</bytecode.test.version>
  625. <spotbugs.skip>true</spotbugs.skip>
  626. </properties>
  627. </profile>
  628. <!-- Builds using a byte code target for Java 13. -->
  629. <profile>
  630. <id>java13</id>
  631. <activation>
  632. <activeByDefault>false</activeByDefault>
  633. </activation>
  634. <properties>
  635. <bytecode.main.version>13</bytecode.main.version>
  636. <bytecode.test.version>13</bytecode.test.version>
  637. <spotbugs.skip>true</spotbugs.skip>
  638. </properties>
  639. </profile>
  640. <!-- Builds using a byte code target for Java 14. -->
  641. <profile>
  642. <id>java14</id>
  643. <activation>
  644. <activeByDefault>false</activeByDefault>
  645. </activation>
  646. <properties>
  647. <bytecode.main.version>14</bytecode.main.version>
  648. <bytecode.test.version>14</bytecode.test.version>
  649. <spotbugs.skip>true</spotbugs.skip>
  650. </properties>
  651. </profile>
  652. <!-- Builds using a byte code target for Java 15. -->
  653. <profile>
  654. <id>java15</id>
  655. <activation>
  656. <activeByDefault>false</activeByDefault>
  657. </activation>
  658. <properties>
  659. <bytecode.main.version>15</bytecode.main.version>
  660. <bytecode.test.version>15</bytecode.test.version>
  661. <spotbugs.skip>true</spotbugs.skip>
  662. </properties>
  663. </profile>
  664. <!-- Builds using a byte code target for Java 16. -->
  665. <profile>
  666. <id>java16</id>
  667. <activation>
  668. <activeByDefault>false</activeByDefault>
  669. </activation>
  670. <properties>
  671. <bytecode.main.version>15</bytecode.main.version>
  672. <bytecode.test.version>15</bytecode.test.version>
  673. <spotbugs.skip>true</spotbugs.skip>
  674. </properties>
  675. </profile>
  676. <!-- Creates additional artifacts that are required for deployment. -->
  677. <profile>
  678. <id>extras</id>
  679. <activation>
  680. <activeByDefault>false</activeByDefault>
  681. </activation>
  682. <properties>
  683. <bytebuddy.extras>true</bytebuddy.extras>
  684. </properties>
  685. <build>
  686. <plugins>
  687. <!-- Create source code artifact. -->
  688. <plugin>
  689. <groupId>org.apache.maven.plugins</groupId>
  690. <artifactId>maven-source-plugin</artifactId>
  691. <version>${version.plugin.source}</version>
  692. <executions>
  693. <execution>
  694. <goals>
  695. <goal>jar</goal>
  696. </goals>
  697. </execution>
  698. </executions>
  699. </plugin>
  700. <!-- Create javadoc artifact. -->
  701. <plugin>
  702. <groupId>org.apache.maven.plugins</groupId>
  703. <artifactId>maven-javadoc-plugin</artifactId>
  704. <version>${version.plugin.javadoc}</version>
  705. <executions>
  706. <execution>
  707. <goals>
  708. <goal>jar</goal>
  709. </goals>
  710. </execution>
  711. </executions>
  712. <configuration>
  713. <source>${sourcecode.main.version}</source>
  714. <detectJavaApiLink>true</detectJavaApiLink>
  715. <links>
  716. <link>${asm.url}/javadoc</link>
  717. </links>
  718. </configuration>
  719. </plugin>
  720. </plugins>
  721. </build>
  722. </profile>
  723. <!-- Sign any created artifact. (Requires configuration of gpg on the executing machine.) -->
  724. <profile>
  725. <id>gpg</id>
  726. <activation>
  727. <activeByDefault>false</activeByDefault>
  728. </activation>
  729. <build>
  730. <plugins>
  731. <!-- Sign artifacts. -->
  732. <plugin>
  733. <groupId>org.apache.maven.plugins</groupId>
  734. <artifactId>maven-gpg-plugin</artifactId>
  735. <version>${version.plugin.gpg}</version>
  736. <executions>
  737. <execution>
  738. <phase>verify</phase>
  739. <goals>
  740. <goal>sign</goal>
  741. </goals>
  742. <configuration>
  743. <gpgArguments>
  744. <arg>--pinentry-mode</arg>
  745. <arg>loopback</arg>
  746. </gpgArguments>
  747. </configuration>
  748. </execution>
  749. </executions>
  750. </plugin>
  751. </plugins>
  752. </build>
  753. </profile>
  754. <!-- Basic checks that are not requiring too much runtime. -->
  755. <profile>
  756. <id>checks</id>
  757. <activation>
  758. <activeByDefault>true</activeByDefault>
  759. </activation>
  760. <build>
  761. <plugins>
  762. <!-- Check style on build. -->
  763. <plugin>
  764. <groupId>org.apache.maven.plugins</groupId>
  765. <artifactId>maven-checkstyle-plugin</artifactId>
  766. <version>${version.plugin.checkstyle}</version>
  767. <executions>
  768. <execution>
  769. <phase>validate</phase>
  770. <goals>
  771. <goal>check</goal>
  772. </goals>
  773. <configuration>
  774. <configLocation>checkstyle.xml</configLocation>
  775. <consoleOutput>true</consoleOutput>
  776. <failsOnError>true</failsOnError>
  777. <excludes>**/generated/**/*</excludes>
  778. <includeResources>false</includeResources>
  779. </configuration>
  780. </execution>
  781. </executions>
  782. </plugin>
  783. <!-- Check API compatibility. -->
  784. <plugin>
  785. <groupId>org.codehaus.mojo</groupId>
  786. <artifactId>animal-sniffer-maven-plugin</artifactId>
  787. <version>${version.plugin.animal-sniffer}</version>
  788. <executions>
  789. <execution>
  790. <phase>test</phase>
  791. <goals>
  792. <goal>check</goal>
  793. </goals>
  794. <configuration>
  795. <signature>
  796. <groupId>org.codehaus.mojo.signature</groupId>
  797. <artifactId>java15</artifactId>
  798. <version>1.0</version>
  799. </signature>
  800. </configuration>
  801. </execution>
  802. </executions>
  803. </plugin>
  804. <!-- Make sure that Byte Buddy does never depend on ASM's tree API. -->
  805. <plugin>
  806. <groupId>org.apache.maven.plugins</groupId>
  807. <artifactId>maven-enforcer-plugin</artifactId>
  808. <version>${version.plugin.enforcer}</version>
  809. <executions>
  810. <execution>
  811. <goals>
  812. <goal>enforce</goal>
  813. </goals>
  814. <configuration>
  815. <fail>true</fail>
  816. <rules>
  817. <bannedDependencies>
  818. <includes>
  819. <include>org.ow2.asm:asm-tree</include>
  820. </includes>
  821. </bannedDependencies>
  822. <requireMavenVersion>
  823. <version>[3.2.5,)</version>
  824. </requireMavenVersion>
  825. <requireJavaVersion>
  826. <version>[1.6,)</version>
  827. </requireJavaVersion>
  828. </rules>
  829. </configuration>
  830. </execution>
  831. </executions>
  832. </plugin>
  833. </plugins>
  834. </build>
  835. </profile>
  836. <!-- Integration profile that executes long-running tasks and additional static code analysis. -->
  837. <profile>
  838. <id>integration</id>
  839. <activation>
  840. <activeByDefault>false</activeByDefault>
  841. </activation>
  842. <properties>
  843. <bytebuddy.integration>true</bytebuddy.integration>
  844. </properties>
  845. <build>
  846. <plugins>
  847. <!-- Run spotbugs if not specified differently in a module.-->
  848. <plugin>
  849. <groupId>com.github.spotbugs</groupId>
  850. <artifactId>spotbugs-maven-plugin</artifactId>
  851. <version>${version.plugin.spotbugs}</version>
  852. <executions>
  853. <execution>
  854. <phase>verify</phase>
  855. <goals>
  856. <goal>check</goal>
  857. </goals>
  858. <configuration>
  859. <skip>${spotbugs.skip}</skip>
  860. <effort>Max</effort>
  861. <threshold>Low</threshold>
  862. <xmlOutput>true</xmlOutput>
  863. <failOnError>true</failOnError>
  864. </configuration>
  865. </execution>
  866. </executions>
  867. </plugin>
  868. </plugins>
  869. </build>
  870. </profile>
  871. </profiles>
  872. </project>