byte-buddy-parent-1.10.13.pom 40 KB

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