byte-buddy-parent-1.10.2.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.2</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.exec>1.6.0</version.plugin.exec>
  71. <version.plugin.plugin>3.6.0</version.plugin.plugin>
  72. <version.plugin.release>2.5.3</version.plugin.release>
  73. <version.plugin.resources>3.0.2</version.plugin.resources>
  74. <version.plugin.surefire>3.0.0-M1</version.plugin.surefire>
  75. <version.plugin.pitest>1.2.0</version.plugin.pitest>
  76. <version.plugin.animal-sniffer>1.16</version.plugin.animal-sniffer>
  77. <version.plugin.enforcer>1.4.1</version.plugin.enforcer>
  78. <version.plugin.jacoco>0.8.2</version.plugin.jacoco>
  79. <version.plugin.coveralls>4.1.0</version.plugin.coveralls>
  80. <version.plugin.checkstyle>2.17</version.plugin.checkstyle>
  81. <version.plugin.jitwatch>1.0.1</version.plugin.jitwatch>
  82. <version.plugin.clirr>2.8</version.plugin.clirr>
  83. <version.plugin.spotbugs>3.1.3</version.plugin.spotbugs>
  84. <version.plugin.modulemaker>1.7</version.plugin.modulemaker>
  85. <version.plugin.license>3.0</version.plugin.license>
  86. <version.android.sdk>4.1.1.4</version.android.sdk>
  87. <version.utility.findbugs>3.0.1</version.utility.findbugs>
  88. <spotbugs.skip>false</spotbugs.skip>
  89. <jacoco.skip>false</jacoco.skip>
  90. </properties>
  91. <licenses>
  92. <license>
  93. <name>Apache License, Version 2.0</name>
  94. <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
  95. <distribution>repo</distribution>
  96. <comments>A business-friendly OSS license</comments>
  97. </license>
  98. </licenses>
  99. <developers>
  100. <developer>
  101. <id>raphw</id>
  102. <name>Rafael Winterhalter</name>
  103. <email>rafael.wth@gmail.com</email>
  104. <url>http://rafael.codes</url>
  105. <roles>
  106. <role>developer</role>
  107. </roles>
  108. <timezone>+1</timezone>
  109. </developer>
  110. </developers>
  111. <issueManagement>
  112. <system>github.com</system>
  113. <url>https://github.com/raphw/byte-buddy/issues</url>
  114. </issueManagement>
  115. <scm>
  116. <connection>scm:git:git@github.com:raphw/byte-buddy.git</connection>
  117. <developerConnection>scm:git:git@github.com:raphw/byte-buddy.git</developerConnection>
  118. <url>git@github.com:raphw/byte-buddy.git</url>
  119. <tag>byte-buddy-1.10.2</tag>
  120. </scm>
  121. <dependencies>
  122. <!-- Allows the suppression of spotbugs false-positives by annotations without adding an actual dependency. -->
  123. <dependency>
  124. <groupId>com.google.code.findbugs</groupId>
  125. <artifactId>findbugs-annotations</artifactId>
  126. <version>${version.utility.findbugs}</version>
  127. <scope>provided</scope>
  128. </dependency>
  129. </dependencies>
  130. <build>
  131. <plugins>
  132. <!-- Define release properties. -->
  133. <plugin>
  134. <groupId>org.apache.maven.plugins</groupId>
  135. <artifactId>maven-release-plugin</artifactId>
  136. <version>${version.plugin.release}</version>
  137. <configuration>
  138. <useReleaseProfile>false</useReleaseProfile>
  139. <releaseProfiles>extras,gpg,gradle</releaseProfiles>
  140. <autoVersionSubmodules>true</autoVersionSubmodules>
  141. <tagNameFormat>byte-buddy-@{project.version}</tagNameFormat>
  142. </configuration>
  143. </plugin>
  144. <!-- Enable mutation testing. -->
  145. <plugin>
  146. <groupId>org.pitest</groupId>
  147. <artifactId>pitest-maven</artifactId>
  148. <version>${version.plugin.pitest}</version>
  149. <configuration>
  150. <targetClasses>
  151. <param>${pitest.target}.*</param>
  152. </targetClasses>
  153. <targetTests>
  154. <param>${pitest.target}.*</param>
  155. </targetTests>
  156. </configuration>
  157. </plugin>
  158. <!-- Configure Jacoco support for evaluating test case coverage. -->
  159. <plugin>
  160. <groupId>org.jacoco</groupId>
  161. <artifactId>jacoco-maven-plugin</artifactId>
  162. <version>${version.plugin.jacoco}</version>
  163. <configuration>
  164. <skip>${jacoco.skip}</skip>
  165. <includes>
  166. <include>net/bytebuddy/**</include>
  167. </includes>
  168. <excludes>
  169. <exclude>net/bytebuddy/benchmark/generated/*</exclude>
  170. <!-- Avoid adding synthetic members to test classes as test assert class members. -->
  171. <exclude>*Test*</exclude>
  172. <exclude>*test*</exclude>
  173. </excludes>
  174. </configuration>
  175. </plugin>
  176. <!-- Generate coveralls reports from CI server. -->
  177. <plugin>
  178. <groupId>org.eluder.coveralls</groupId>
  179. <artifactId>coveralls-maven-plugin</artifactId>
  180. <version>${version.plugin.coveralls}</version>
  181. <configuration>
  182. <sourceDirectories>
  183. <sourceDirectory>${project.basedir}/byte-buddy-dep/src/precompiled/java</sourceDirectory>
  184. </sourceDirectories>
  185. </configuration>
  186. </plugin>
  187. <!-- Also allow for manual spotbugs execution. Note that the generated warnings do not always apply for Byte Buddy's use case. -->
  188. <plugin>
  189. <groupId>com.github.spotbugs</groupId>
  190. <artifactId>spotbugs-maven-plugin</artifactId>
  191. <version>${version.plugin.spotbugs}</version>
  192. <configuration>
  193. <skip>${spotbugs.skip}</skip>
  194. <effort>Max</effort>
  195. <threshold>Low</threshold>
  196. <xmlOutput>true</xmlOutput>
  197. <failOnError>false</failOnError>
  198. <spotbugsXmlOutputDirectory>${project.build.directory}/spotbugs</spotbugsXmlOutputDirectory>
  199. </configuration>
  200. </plugin>
  201. <!-- Enable scanning for methods above the inlining threshold (JDK 7+) -->
  202. <plugin>
  203. <groupId>com.github.ferstl</groupId>
  204. <artifactId>jitwatch-jarscan-maven-plugin</artifactId>
  205. <version>${version.plugin.jitwatch}</version>
  206. </plugin>
  207. <!-- Enable scanning for binary changes between releases -->
  208. <plugin>
  209. <groupId>org.codehaus.mojo</groupId>
  210. <artifactId>clirr-maven-plugin</artifactId>
  211. <version>${version.plugin.clirr}</version>
  212. </plugin>
  213. <!-- Resolve the current year. -->
  214. <plugin>
  215. <groupId>org.codehaus.mojo</groupId>
  216. <artifactId>build-helper-maven-plugin</artifactId>
  217. <version>${version.plugin.buildhelp}</version>
  218. <executions>
  219. <execution>
  220. <id>timestamp-property</id>
  221. <goals>
  222. <goal>timestamp-property</goal>
  223. </goals>
  224. <phase>validate</phase>
  225. <configuration>
  226. <locale>en_US</locale>
  227. <name>current.year</name>
  228. <pattern>yyyy</pattern>
  229. </configuration>
  230. </execution>
  231. </executions>
  232. </plugin>
  233. <!-- Add license headers to all files. -->
  234. <plugin>
  235. <groupId>com.mycila</groupId>
  236. <artifactId>license-maven-plugin</artifactId>
  237. <version>${version.plugin.license}</version>
  238. <inherited>false</inherited>
  239. <configuration>
  240. <header>${project.basedir}/NOTICE</header>
  241. <aggregate>true</aggregate>
  242. <failIfMissing>true</failIfMissing>
  243. <encoding>${project.build.sourceEncoding}</encoding>
  244. <properties>
  245. <current.year>${current.year}</current.year>
  246. <copyright.holder>${copyright.holder}</copyright.holder>
  247. </properties>
  248. <includes>
  249. <include>**/main/java/**/*.java</include>
  250. <include>**/precompiled/java/**/*.java</include>
  251. <include>**/main/c/**/*.c</include>
  252. </includes>
  253. <strictCheck>true</strictCheck>
  254. <mapping>
  255. <java>SLASHSTAR_STYLE</java>
  256. </mapping>
  257. </configuration>
  258. <executions>
  259. <execution>
  260. <phase>package</phase>
  261. <goals>
  262. <goal>format</goal>
  263. </goals>
  264. </execution>
  265. </executions>
  266. </plugin>
  267. </plugins>
  268. <pluginManagement>
  269. <plugins>
  270. <plugin>
  271. <groupId>org.apache.maven.plugins</groupId>
  272. <artifactId>maven-clean-plugin</artifactId>
  273. <version>${version.plugin.clean}</version>
  274. </plugin>
  275. <plugin>
  276. <groupId>org.apache.maven.plugins</groupId>
  277. <artifactId>maven-jar-plugin</artifactId>
  278. <version>${version.plugin.jar}</version>
  279. </plugin>
  280. <plugin>
  281. <groupId>org.apache.maven.plugins</groupId>
  282. <artifactId>maven-resources-plugin</artifactId>
  283. <version>${version.plugin.resources}</version>
  284. </plugin>
  285. <plugin>
  286. <groupId>org.apache.maven.plugins</groupId>
  287. <artifactId>maven-install-plugin</artifactId>
  288. <version>${version.plugin.install}</version>
  289. </plugin>
  290. <plugin>
  291. <groupId>org.apache.maven.plugins</groupId>
  292. <artifactId>maven-surefire-plugin</artifactId>
  293. <version>${version.plugin.surefire}</version>
  294. <configuration>
  295. <systemPropertyVariables>
  296. <net.bytebuddy.experimental>${bytebuddy.experimental}</net.bytebuddy.experimental>
  297. <net.bytebuddy.test.integration>${bytebuddy.integration}</net.bytebuddy.test.integration>
  298. </systemPropertyVariables>
  299. </configuration>
  300. </plugin>
  301. <plugin>
  302. <groupId>org.apache.maven.plugins</groupId>
  303. <artifactId>maven-deploy-plugin</artifactId>
  304. <version>${version.plugin.deploy}</version>
  305. <configuration>
  306. <updateReleaseInfo>true</updateReleaseInfo>
  307. </configuration>
  308. </plugin>
  309. <plugin>
  310. <groupId>org.apache.maven.plugins</groupId>
  311. <artifactId>maven-compiler-plugin</artifactId>
  312. <version>${version.plugin.compiler}</version>
  313. <inherited>true</inherited>
  314. <configuration>
  315. <source>${sourcecode.main.version}</source>
  316. <target>${bytecode.main.version}</target>
  317. <testSource>${sourcecode.test.version}</testSource>
  318. <testTarget>${bytecode.test.version}</testTarget>
  319. <encoding>${project.build.sourceEncoding}</encoding>
  320. </configuration>
  321. </plugin>
  322. <plugin>
  323. <groupId>org.apache.maven.plugins</groupId>
  324. <artifactId>maven-plugin-plugin</artifactId>
  325. <version>${version.plugin.plugin}</version>
  326. <dependencies>
  327. <dependency>
  328. <groupId>org.ow2.asm</groupId>
  329. <artifactId>asm</artifactId>
  330. <version>${version.asm}</version>
  331. </dependency>
  332. <dependency>
  333. <groupId>org.ow2.asm</groupId>
  334. <artifactId>asm-commons</artifactId>
  335. <version>${version.asm}</version>
  336. </dependency>
  337. </dependencies>
  338. </plugin>
  339. </plugins>
  340. </pluginManagement>
  341. </build>
  342. <!-- Define explicit version to overcome problem with generated reports. -->
  343. <reporting>
  344. <plugins>
  345. <plugin>
  346. <groupId>org.apache.maven.plugins</groupId>
  347. <artifactId>maven-jxr-plugin</artifactId>
  348. <version>${version.plugin.jxr}</version>
  349. </plugin>
  350. </plugins>
  351. </reporting>
  352. <distributionManagement>
  353. <repository>
  354. <id>bintray</id>
  355. <url>https://api.bintray.com/maven/raphw/maven/ByteBuddy</url>
  356. </repository>
  357. </distributionManagement>
  358. <profiles>
  359. <!-- Runs the build with compatibility for Java 6 JVMs. -->
  360. <profile>
  361. <id>java6-compatibility</id>
  362. <activation>
  363. <activeByDefault>false</activeByDefault>
  364. <jdk>1.6</jdk>
  365. </activation>
  366. <properties>
  367. <version.asm.deprecated>7.1</version.asm.deprecated>
  368. <version.plugin.bundle>2.5.4</version.plugin.bundle>
  369. <version.plugin.checkstyle>2.15</version.plugin.checkstyle>
  370. <version.plugin.compiler>3.6.2</version.plugin.compiler>
  371. <version.plugin.spotbugs>3.1.0-RC8</version.plugin.spotbugs>
  372. <version.plugin.exec>1.5.0</version.plugin.exec>
  373. <version.plugin.plugin>3.5.2</version.plugin.plugin>
  374. <version.plugin.shade>3.1.1</version.plugin.shade>
  375. <version.plugin.surefire>2.22.1</version.plugin.surefire>
  376. <spotbugs.skip>true</spotbugs.skip>
  377. </properties>
  378. <modules>
  379. <module>byte-buddy</module>
  380. <module>byte-buddy-dep</module>
  381. <module>byte-buddy-benchmark</module>
  382. <module>byte-buddy-agent</module>
  383. <module>byte-buddy-android</module>
  384. <module>byte-buddy-maven-plugin</module>
  385. <module>byte-buddy-gradle-plugin</module>
  386. </modules>
  387. <build>
  388. <pluginManagement>
  389. <plugins>
  390. <plugin>
  391. <groupId>org.apache.maven.plugins</groupId>
  392. <artifactId>maven-plugin-plugin</artifactId>
  393. <version>${version.plugin.plugin}</version>
  394. <dependencies>
  395. <dependency>
  396. <groupId>org.ow2.asm</groupId>
  397. <artifactId>asm</artifactId>
  398. <version>${version.asm.deprecated}</version>
  399. </dependency>
  400. <dependency>
  401. <groupId>org.ow2.asm</groupId>
  402. <artifactId>asm-commons</artifactId>
  403. <version>${version.asm.deprecated}</version>
  404. </dependency>
  405. <dependency>
  406. <groupId>org.ow2.asm</groupId>
  407. <artifactId>asm-deprecated</artifactId>
  408. <version>${version.asm.deprecated}</version>
  409. </dependency>
  410. </dependencies>
  411. </plugin>
  412. </plugins>
  413. </pluginManagement>
  414. </build>
  415. </profile>
  416. <!-- Runs the build with compatibility for Java 7 JVMs. -->
  417. <profile>
  418. <id>java7-compatibility</id>
  419. <activation>
  420. <activeByDefault>false</activeByDefault>
  421. <jdk>1.7</jdk>
  422. </activation>
  423. <properties>
  424. <version.plugin.spotbugs>3.1.0-RC8</version.plugin.spotbugs>
  425. <spotbugs.skip>true</spotbugs.skip>
  426. </properties>
  427. </profile>
  428. <!-- Runs the build with compatibility for Java 9 JVMs. -->
  429. <profile>
  430. <id>java9-compatibility</id>
  431. <activation>
  432. <activeByDefault>false</activeByDefault>
  433. <jdk>9</jdk>
  434. </activation>
  435. <properties>
  436. <sourcecode.main.version>1.6</sourcecode.main.version>
  437. <sourcecode.test.version>1.6</sourcecode.test.version>
  438. <bytecode.main.version>1.6</bytecode.main.version>
  439. <bytecode.test.version>1.6</bytecode.test.version>
  440. </properties>
  441. </profile>
  442. <!-- Runs the build with compatibility for Java 10 JVMs. -->
  443. <profile>
  444. <id>java10-compatibility</id>
  445. <activation>
  446. <activeByDefault>false</activeByDefault>
  447. <jdk>10</jdk>
  448. </activation>
  449. <properties>
  450. <sourcecode.main.version>1.7</sourcecode.main.version>
  451. <sourcecode.test.version>1.7</sourcecode.test.version>
  452. <bytecode.main.version>1.7</bytecode.main.version>
  453. <bytecode.test.version>1.7</bytecode.test.version>
  454. </properties>
  455. </profile>
  456. <!-- Runs the build with compatibility for Java 11 JVMs. -->
  457. <profile>
  458. <id>java11-compatibility</id>
  459. <activation>
  460. <activeByDefault>false</activeByDefault>
  461. <jdk>11</jdk>
  462. </activation>
  463. <properties>
  464. <sourcecode.main.version>1.7</sourcecode.main.version>
  465. <sourcecode.test.version>1.7</sourcecode.test.version>
  466. <bytecode.main.version>1.7</bytecode.main.version>
  467. <bytecode.test.version>1.7</bytecode.test.version>
  468. <jacoco.skip>true</jacoco.skip>
  469. </properties>
  470. </profile>
  471. <!-- Runs the build with compatibility for Java 12 JVMs. -->
  472. <profile>
  473. <id>java12-compatibility</id>
  474. <activation>
  475. <activeByDefault>false</activeByDefault>
  476. <jdk>12</jdk>
  477. </activation>
  478. <properties>
  479. <sourcecode.main.version>1.7</sourcecode.main.version>
  480. <sourcecode.test.version>1.7</sourcecode.test.version>
  481. <bytecode.main.version>1.7</bytecode.main.version>
  482. <bytecode.test.version>1.7</bytecode.test.version>
  483. <jacoco.skip>true</jacoco.skip>
  484. <bytebuddy.experimental>true</bytebuddy.experimental>
  485. </properties>
  486. </profile>
  487. <!-- Runs the build with compatibility for Java 13 JVMs. -->
  488. <profile>
  489. <id>java13-compatibility</id>
  490. <activation>
  491. <activeByDefault>false</activeByDefault>
  492. <jdk>13</jdk>
  493. </activation>
  494. <properties>
  495. <sourcecode.main.version>1.7</sourcecode.main.version>
  496. <sourcecode.test.version>1.7</sourcecode.test.version>
  497. <bytecode.main.version>1.7</bytecode.main.version>
  498. <bytecode.test.version>1.7</bytecode.test.version>
  499. <jacoco.skip>true</jacoco.skip>
  500. <bytebuddy.experimental>true</bytebuddy.experimental>
  501. </properties>
  502. </profile>
  503. <!-- Runs the build with compatibility for Java 14 JVMs. -->
  504. <profile>
  505. <id>java14-compatibility</id>
  506. <activation>
  507. <activeByDefault>false</activeByDefault>
  508. <jdk>14</jdk>
  509. </activation>
  510. <properties>
  511. <sourcecode.main.version>1.7</sourcecode.main.version>
  512. <sourcecode.test.version>1.7</sourcecode.test.version>
  513. <bytecode.main.version>1.7</bytecode.main.version>
  514. <bytecode.test.version>1.7</bytecode.test.version>
  515. <jacoco.skip>true</jacoco.skip>
  516. <bytebuddy.experimental>true</bytebuddy.experimental>
  517. </properties>
  518. </profile>
  519. <!-- Builds using a byte code target for Java 6. -->
  520. <profile>
  521. <id>java6</id>
  522. <activation>
  523. <activeByDefault>false</activeByDefault>
  524. </activation>
  525. <properties>
  526. <bytecode.main.version>1.6</bytecode.main.version>
  527. </properties>
  528. </profile>
  529. <!-- Builds using a byte code target for Java 7. -->
  530. <profile>
  531. <id>java7</id>
  532. <activation>
  533. <activeByDefault>false</activeByDefault>
  534. </activation>
  535. <properties>
  536. <bytecode.main.version>1.7</bytecode.main.version>
  537. <bytecode.test.version>1.7</bytecode.test.version>
  538. </properties>
  539. </profile>
  540. <!-- Builds using a byte code target for Java 8. -->
  541. <profile>
  542. <id>java8</id>
  543. <activation>
  544. <activeByDefault>false</activeByDefault>
  545. </activation>
  546. <properties>
  547. <bytecode.main.version>1.8</bytecode.main.version>
  548. <bytecode.test.version>1.8</bytecode.test.version>
  549. </properties>
  550. </profile>
  551. <!-- Builds using a byte code target for Java 9. -->
  552. <profile>
  553. <id>java9</id>
  554. <activation>
  555. <activeByDefault>false</activeByDefault>
  556. </activation>
  557. <properties>
  558. <bytecode.main.version>9</bytecode.main.version>
  559. <bytecode.test.version>9</bytecode.test.version>
  560. </properties>
  561. </profile>
  562. <!-- Builds using a byte code target for Java 10. -->
  563. <profile>
  564. <id>java10</id>
  565. <activation>
  566. <activeByDefault>false</activeByDefault>
  567. </activation>
  568. <properties>
  569. <bytecode.main.version>10</bytecode.main.version>
  570. <bytecode.test.version>10</bytecode.test.version>
  571. <spotbugs.skip>true</spotbugs.skip>
  572. </properties>
  573. </profile>
  574. <!-- Builds using a byte code target for Java 11. -->
  575. <profile>
  576. <id>java11</id>
  577. <activation>
  578. <activeByDefault>false</activeByDefault>
  579. </activation>
  580. <properties>
  581. <bytecode.main.version>11</bytecode.main.version>
  582. <bytecode.test.version>11</bytecode.test.version>
  583. <spotbugs.skip>true</spotbugs.skip>
  584. </properties>
  585. </profile>
  586. <!-- Builds using a byte code target for Java 12. -->
  587. <profile>
  588. <id>java12</id>
  589. <activation>
  590. <activeByDefault>false</activeByDefault>
  591. </activation>
  592. <properties>
  593. <bytecode.main.version>12</bytecode.main.version>
  594. <bytecode.test.version>12</bytecode.test.version>
  595. <spotbugs.skip>true</spotbugs.skip>
  596. </properties>
  597. </profile>
  598. <!-- Builds using a byte code target for Java 13. -->
  599. <profile>
  600. <id>java13</id>
  601. <activation>
  602. <activeByDefault>false</activeByDefault>
  603. </activation>
  604. <properties>
  605. <bytecode.main.version>13</bytecode.main.version>
  606. <bytecode.test.version>13</bytecode.test.version>
  607. <spotbugs.skip>true</spotbugs.skip>
  608. </properties>
  609. </profile>
  610. <!-- Builds using a byte code target for Java 14. -->
  611. <profile>
  612. <id>java14</id>
  613. <activation>
  614. <activeByDefault>false</activeByDefault>
  615. </activation>
  616. <properties>
  617. <bytecode.main.version>14</bytecode.main.version>
  618. <bytecode.test.version>14</bytecode.test.version>
  619. <spotbugs.skip>true</spotbugs.skip>
  620. </properties>
  621. </profile>
  622. <!-- Creates additional artifacts that are required for deployment. -->
  623. <profile>
  624. <id>extras</id>
  625. <activation>
  626. <activeByDefault>false</activeByDefault>
  627. </activation>
  628. <properties>
  629. <bytebuddy.extras>true</bytebuddy.extras>
  630. </properties>
  631. <build>
  632. <plugins>
  633. <!-- Create source code artifact. -->
  634. <plugin>
  635. <groupId>org.apache.maven.plugins</groupId>
  636. <artifactId>maven-source-plugin</artifactId>
  637. <version>${version.plugin.source}</version>
  638. <executions>
  639. <execution>
  640. <goals>
  641. <goal>jar</goal>
  642. </goals>
  643. </execution>
  644. </executions>
  645. </plugin>
  646. <!-- Create javadoc artifact. -->
  647. <plugin>
  648. <groupId>org.apache.maven.plugins</groupId>
  649. <artifactId>maven-javadoc-plugin</artifactId>
  650. <version>${version.plugin.javadoc}</version>
  651. <executions>
  652. <execution>
  653. <id>attach-javadoc</id>
  654. <goals>
  655. <goal>jar</goal>
  656. </goals>
  657. </execution>
  658. <!-- Additionally to the regular jar file specified above, create an aggregated jar. -->
  659. <execution>
  660. <id>aggregate-javadoc</id>
  661. <goals>
  662. <goal>aggregate</goal>
  663. </goals>
  664. <phase>package</phase>
  665. <configuration>
  666. <doctitle>Byte Buddy (full API), version ${project.version}</doctitle>
  667. <!-- Fails due to repacking of ASM by the Shade plugin. -->
  668. <failOnError>false</failOnError>
  669. </configuration>
  670. </execution>
  671. </executions>
  672. <configuration>
  673. <detectJavaApiLink>true</detectJavaApiLink>
  674. <links>
  675. <link>${asm.url}/javadoc</link>
  676. </links>
  677. </configuration>
  678. </plugin>
  679. </plugins>
  680. </build>
  681. </profile>
  682. <!-- Sign any created artifact. (Requires configuration of gpg on the executing machine.) -->
  683. <profile>
  684. <id>gpg</id>
  685. <activation>
  686. <activeByDefault>false</activeByDefault>
  687. </activation>
  688. <build>
  689. <plugins>
  690. <!-- Sign artifacts. -->
  691. <plugin>
  692. <groupId>org.apache.maven.plugins</groupId>
  693. <artifactId>maven-gpg-plugin</artifactId>
  694. <version>${version.plugin.gpg}</version>
  695. <executions>
  696. <execution>
  697. <phase>verify</phase>
  698. <goals>
  699. <goal>sign</goal>
  700. </goals>
  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>