byte-buddy-parent-1.9.5.pom 34 KB

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