classgraph-4.8.149.pom 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616
  1. <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">
  2. <modelVersion>4.0.0</modelVersion>
  3. <groupId>io.github.classgraph</groupId>
  4. <artifactId>classgraph</artifactId>
  5. <version>4.8.149</version>
  6. <name>ClassGraph</name>
  7. <description>The uber-fast, ultra-lightweight classpath and module scanner for JVM languages.</description>
  8. <url>https://github.com/classgraph/classgraph</url>
  9. <licenses>
  10. <license>
  11. <name>The MIT License (MIT)</name>
  12. <url>http://opensource.org/licenses/MIT</url>
  13. <distribution>repo</distribution>
  14. </license>
  15. </licenses>
  16. <developers>
  17. <developer>
  18. <name>Luke Hutchison</name>
  19. <email>luke.hutch@gmail.com</email>
  20. <organization>ClassGraph</organization>
  21. <organizationUrl>https://github.com/classgraph</organizationUrl>
  22. </developer>
  23. </developers>
  24. <scm>
  25. <connection>scm:git:git@github.com:classgraph/classgraph.git</connection>
  26. <developerConnection>scm:git:git@github.com:classgraph/classgraph.git</developerConnection>
  27. <url>https://github.com/classgraph/classgraph</url>
  28. <tag>classgraph-4.8.149</tag>
  29. </scm>
  30. <issueManagement>
  31. <url>https://github.com/classgraph/classgraph/issues</url>
  32. </issueManagement>
  33. <distributionManagement>
  34. <snapshotRepository>
  35. <id>ossrh</id>
  36. <url>https://oss.sonatype.org/content/repositories/snapshots</url>
  37. </snapshotRepository>
  38. <repository>
  39. <id>ossrh</id>
  40. <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
  41. </repository>
  42. </distributionManagement>
  43. <properties>
  44. <!-- Set UTF-8 encoding for Maven plugins and output -->
  45. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  46. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  47. <!-- Default to generating Javadoc in HTML 4.01 format -->
  48. <javadoc.html.version />
  49. <!-- Warnings are disabled, in order to suppress warning about bootstrap classpath not being set -->
  50. <!-- (which arises as a result of building for JDK 7 on JDK8+, allowing for use of @FunctionalInterface) -->
  51. <!-- <maven.compiler.showWarnings>true</maven.compiler.showWarnings> -->
  52. <!-- <maven.compiler.showDeprecation>true</maven.compiler.showDeprecation> -->
  53. </properties>
  54. <!-- Find dependency updates with: ./mvnw versions:display-dependency-updates -->
  55. <dependencies>
  56. <!-- Optional runtime dependency: -->
  57. <dependency>
  58. <groupId>io.github.toolfactory</groupId>
  59. <artifactId>narcissus</artifactId>
  60. <version>1.0.7</version>
  61. <optional>true</optional>
  62. </dependency>
  63. <dependency>
  64. <groupId>io.github.toolfactory</groupId>
  65. <artifactId>jvm-driver</artifactId>
  66. <version>8.9.6</version>
  67. <optional>true</optional>
  68. </dependency>
  69. <!-- Test dependencies: -->
  70. <dependency>
  71. <groupId>org.junit.jupiter</groupId>
  72. <artifactId>junit-jupiter</artifactId>
  73. <version>5.8.2</version>
  74. <scope>test</scope>
  75. </dependency>
  76. <dependency>
  77. <groupId>org.openjdk.jmh</groupId>
  78. <artifactId>jmh-core</artifactId>
  79. <version>1.35</version>
  80. <scope>test</scope>
  81. </dependency>
  82. <dependency>
  83. <groupId>org.openjdk.jmh</groupId>
  84. <artifactId>jmh-generator-annprocess</artifactId>
  85. <version>1.35</version>
  86. <scope>test</scope>
  87. </dependency>
  88. <dependency>
  89. <groupId>org.assertj</groupId>
  90. <artifactId>assertj-core</artifactId>
  91. <version>3.22.0</version>
  92. <scope>test</scope>
  93. </dependency>
  94. <dependency>
  95. <groupId>javax.enterprise</groupId>
  96. <artifactId>cdi-api</artifactId>
  97. <version>2.0</version>
  98. <scope>test</scope>
  99. </dependency>
  100. <dependency>
  101. <groupId>org.ops4j.pax.url</groupId>
  102. <artifactId>pax-url-aether</artifactId>
  103. <version>2.6.1</version>
  104. <scope>test</scope>
  105. </dependency>
  106. <dependency>
  107. <groupId>org.slf4j</groupId>
  108. <artifactId>slf4j-api</artifactId>
  109. <version>2.0.0-alpha7</version>
  110. <scope>test</scope>
  111. </dependency>
  112. <dependency>
  113. <groupId>org.slf4j</groupId>
  114. <artifactId>slf4j-jdk14</artifactId>
  115. <version>2.0.0-alpha7</version>
  116. <scope>test</scope>
  117. </dependency>
  118. <dependency>
  119. <groupId>org.hibernate.javax.persistence</groupId>
  120. <artifactId>hibernate-jpa-2.1-api</artifactId>
  121. <version>1.0.2.Final</version>
  122. <scope>test</scope>
  123. </dependency>
  124. <dependency>
  125. <groupId>com.google.jimfs</groupId>
  126. <artifactId>jimfs</artifactId>
  127. <version>1.2</version>
  128. <scope>test</scope>
  129. </dependency>
  130. <!-- "provided" dependencies (soft compile-time dependencies that do not create a runtime dependency): -->
  131. <dependency>
  132. <!-- Needed for Eclipse nullability analysis to work, but use "provided" as the scope so that we -->
  133. <!-- don't add a hard dependency on the JDT annotations, because we don't use the annotations in -->
  134. <!-- any of the ClassGraph code, so these annotations are not needed at runtime. -->
  135. <!-- See: https://bugs.eclipse.org/bugs/show_bug.cgi?id=552198 -->
  136. <groupId>org.eclipse.jdt</groupId>
  137. <artifactId>org.eclipse.jdt.annotation</artifactId>
  138. <version>2.2.600</version>
  139. <scope>provided</scope>
  140. </dependency>
  141. </dependencies>
  142. <build>
  143. <plugins>
  144. <!-- Plugins are listed here, but configured in pluginManagement, for compatibility with Eclipse. -->
  145. <!-- See: https://stackoverflow.com/a/10483284/3950982 -->
  146. <!-- Find plugin updates with: ./mvnw versions:display-plugin-updates -->
  147. <!-- List order of plugin execution with: ./mvnw -Prelease fr.jcgay.maven.plugins:buildplan-maven-plugin:list-phase -->
  148. <plugin>
  149. <groupId>org.apache.maven.plugins</groupId>
  150. <artifactId>maven-enforcer-plugin</artifactId>
  151. <version>3.0.0</version>
  152. </plugin>
  153. <plugin>
  154. <groupId>org.apache.maven.plugins</groupId>
  155. <artifactId>maven-resources-plugin</artifactId>
  156. <version>3.2.0</version>
  157. </plugin>
  158. <plugin>
  159. <groupId>org.apache.maven.plugins</groupId>
  160. <artifactId>maven-compiler-plugin</artifactId>
  161. <version>3.10.1</version>
  162. </plugin>
  163. <plugin>
  164. <groupId>org.apache.maven.plugins</groupId>
  165. <artifactId>maven-surefire-plugin</artifactId>
  166. <version>3.0.0-M6</version>
  167. </plugin>
  168. <plugin>
  169. <groupId>org.codehaus.mojo</groupId>
  170. <artifactId>build-helper-maven-plugin</artifactId>
  171. <version>3.3.0</version>
  172. </plugin>
  173. <plugin>
  174. <groupId>org.apache.maven.plugins</groupId>
  175. <artifactId>maven-jar-plugin</artifactId>
  176. <version>3.2.2</version>
  177. </plugin>
  178. <plugin>
  179. <groupId>org.apache.maven.plugins</groupId>
  180. <artifactId>maven-antrun-plugin</artifactId>
  181. <version>3.1.0</version><!--$NO-MVN-MAN-VER$ -->
  182. </plugin>
  183. <plugin>
  184. <groupId>org.apache.maven.plugins</groupId>
  185. <artifactId>maven-source-plugin</artifactId>
  186. <version>3.2.1</version>
  187. </plugin>
  188. <plugin>
  189. <groupId>org.apache.maven.plugins</groupId>
  190. <artifactId>maven-javadoc-plugin</artifactId>
  191. <version>3.4.0</version>
  192. </plugin>
  193. <plugin>
  194. <groupId>org.apache.maven.plugins</groupId>
  195. <artifactId>maven-gpg-plugin</artifactId>
  196. <version>3.0.1</version>
  197. </plugin>
  198. <plugin>
  199. <groupId>org.sonatype.plugins</groupId>
  200. <artifactId>nexus-staging-maven-plugin</artifactId>
  201. <version>1.6.12</version>
  202. </plugin>
  203. <plugin>
  204. <groupId>org.apache.maven.plugins</groupId>
  205. <artifactId>maven-release-plugin</artifactId>
  206. <version>3.0.0-M5</version>
  207. </plugin>
  208. <!-- Override versions of the following plugins, inherited from the super-pom, with latest versions -->
  209. <plugin>
  210. <groupId>org.apache.maven.plugins</groupId>
  211. <artifactId>maven-clean-plugin</artifactId>
  212. <version>3.2.0</version>
  213. </plugin>
  214. <plugin>
  215. <groupId>org.apache.maven.plugins</groupId>
  216. <artifactId>maven-deploy-plugin</artifactId>
  217. <version>3.0.0-M2</version>
  218. </plugin>
  219. <plugin>
  220. <groupId>org.apache.maven.plugins</groupId>
  221. <artifactId>maven-install-plugin</artifactId>
  222. <version>3.0.0-M1</version>
  223. </plugin>
  224. <plugin>
  225. <groupId>org.apache.maven.plugins</groupId>
  226. <artifactId>maven-site-plugin</artifactId>
  227. <version>3.12.0</version>
  228. </plugin>
  229. </plugins>
  230. <pluginManagement>
  231. <plugins>
  232. <!-- Enforce minimum Maven version, and JDK 7 API -->
  233. <plugin>
  234. <groupId>org.apache.maven.plugins</groupId>
  235. <artifactId>maven-enforcer-plugin</artifactId>
  236. <dependencies>
  237. <dependency>
  238. <groupId>org.codehaus.mojo</groupId>
  239. <artifactId>animal-sniffer-enforcer-rule</artifactId>
  240. <version>1.21</version>
  241. </dependency>
  242. </dependencies>
  243. <executions>
  244. <!-- Require Maven version. -->
  245. <execution>
  246. <id>enforce-versions</id>
  247. <phase>validate</phase>
  248. <goals>
  249. <goal>enforce</goal>
  250. </goals>
  251. <configuration>
  252. <rules>
  253. <requireMavenVersion>
  254. <version>[3.6.3,)</version>
  255. </requireMavenVersion>
  256. </rules>
  257. </configuration>
  258. </execution>
  259. <!-- Check main project for compatibility with JDK 7 API -->
  260. <execution>
  261. <id>check-signatures</id>
  262. <phase>compile</phase>
  263. <goals>
  264. <goal>enforce</goal>
  265. </goals>
  266. <configuration>
  267. <rules>
  268. <checkSignatureRule implementation="org.codehaus.mojo.animal_sniffer.enforcer.CheckSignatureRule">
  269. <signature>
  270. <groupId>org.codehaus.mojo.signature</groupId>
  271. <artifactId>java17</artifactId>
  272. <version>1.0</version>
  273. </signature>
  274. </checkSignatureRule>
  275. </rules>
  276. </configuration>
  277. </execution>
  278. </executions>
  279. </plugin>
  280. <plugin>
  281. <groupId>org.apache.maven.plugins</groupId>
  282. <artifactId>maven-resources-plugin</artifactId>
  283. <executions>
  284. <!-- Copy LICENSE-ClassGraph.txt to build root -->
  285. <execution>
  286. <id>copy-license-to-target</id>
  287. <phase>process-resources</phase>
  288. <goals>
  289. <goal>copy-resources</goal>
  290. </goals>
  291. <configuration>
  292. <outputDirectory>${project.build.outputDirectory}</outputDirectory>
  293. <resources>
  294. <resource>
  295. <directory>${basedir}</directory>
  296. <filtering>false</filtering>
  297. <includes>
  298. <include>LICENSE-ClassGraph.txt</include>
  299. </includes>
  300. </resource>
  301. </resources>
  302. </configuration>
  303. </execution>
  304. <execution>
  305. <id>copy-license-to-javadocs</id>
  306. <phase>process-resources</phase>
  307. <goals>
  308. <goal>copy-resources</goal>
  309. </goals>
  310. <configuration>
  311. <outputDirectory>${project.build.directory}/apidocs</outputDirectory>
  312. <resources>
  313. <resource>
  314. <directory>${basedir}</directory>
  315. <filtering>false</filtering>
  316. <includes>
  317. <include>LICENSE-ClassGraph.txt</include>
  318. </includes>
  319. </resource>
  320. </resources>
  321. </configuration>
  322. </execution>
  323. </executions>
  324. </plugin>
  325. <plugin>
  326. <groupId>org.apache.maven.plugins</groupId>
  327. <artifactId>maven-antrun-plugin</artifactId>
  328. <executions>
  329. <execution>
  330. <!-- Put module-info.class in META-INF/versions/9 to maximize backwards -->
  331. <!-- compatibility. This has to be done after the jar is created, since -->
  332. <!-- module-info.class cannot be copied to the target directory, otherwise -->
  333. <!-- this build or the following incremental build will cause Animal Sniffer -->
  334. <!-- to fail, since it depends upon ASM 5, which balks when it hits -->
  335. <!-- module-info.class with: "Execution check-signatures of goal -->
  336. <!-- org.apache.maven.plugins:maven-enforcer-plugin:3.0.0-M3:enforce failed: -->
  337. <!-- This feature requires ASM6". -->
  338. <id>add-module-info-to-jar</id>
  339. <phase>package</phase>
  340. <goals>
  341. <goal>run</goal>
  342. </goals>
  343. <configuration>
  344. <target>
  345. <jar update="true" destfile="${project.build.directory}/${project.build.finalName}.jar">
  346. <zipfileset prefix="META-INF/versions/9" dir="${project.basedir}/src/module-info/io.github.classgraph" includes="module-info.class" />
  347. </jar>
  348. </target>
  349. </configuration>
  350. </execution>
  351. <execution>
  352. <!-- Make duplicate copy of Javadoc into a subdirectory with the name of the module, -->
  353. <!-- since Eclipse (and possibly other tools) detects the presence of the module -->
  354. <!-- descriptor, and expects the Javadoc files to use modular paths (#583). -->
  355. <!-- Needs to happen before maven-gpg-plugin runs, otherwise signature will be invalid. -->
  356. <id>add-modular-javadoc</id>
  357. <phase>verify</phase>
  358. <goals>
  359. <goal>run</goal>
  360. </goals>
  361. <configuration>
  362. <target>
  363. <jar update="true" destfile="${project.build.directory}/${project.build.finalName}-javadoc.jar">
  364. <zipfileset prefix="io.github.classgraph" dir="${project.build.directory}/apidocs" includes="**/*" />
  365. </jar>
  366. </target>
  367. </configuration>
  368. </execution>
  369. </executions>
  370. </plugin>
  371. <!-- Compile sources (main for JDK 7, test for JDK 8) -->
  372. <plugin>
  373. <groupId>org.apache.maven.plugins</groupId>
  374. <artifactId>maven-compiler-plugin</artifactId>
  375. <configuration>
  376. <encoding>UTF-8</encoding>
  377. <!-- Can't use "release" option, because ClassGraph needs to be built in JDK 7 -->
  378. <!-- compatibility mode, and the @FunctionalInterface annotation was not available -->
  379. <!-- in JDK 7. If building with "source" and "target" switches, unknown annotations -->
  380. <!-- compile fine as long as they exist in the compiling JDK (in this case, JDK 8+). -->
  381. <!-- Missing annotations don't trigger a linkage error or ClassNotFoundException -->
  382. <!-- unless the annotation is actually read. -->
  383. <!-- However, note that not explicitly specifying a JDK 7 rt.jar as the bootstrap -->
  384. <!-- classpath (in order to build on a newer JDK, which does have @FunctionalInterface) -->
  385. <!-- will lead to the following build-time warning, if maven.compiler.showWarnings -->
  386. <!-- is set to true: -->
  387. <!-- "[WARNING] bootstrap class path not set in conjunction with -source 7" -->
  388. <source>7</source>
  389. <target>7</target>
  390. <!-- Tests use some JDK 8 features, such as lambdas -->
  391. <testSource>8</testSource>
  392. <testTarget>8</testTarget>
  393. <useIncrementalCompilation>false</useIncrementalCompilation>
  394. <compilerArgs>
  395. <arg>-Xlint:all</arg>
  396. <arg>-Werror</arg>
  397. </compilerArgs>
  398. </configuration>
  399. <executions>
  400. <execution>
  401. <id>default-testCompile</id>
  402. <phase>test-compile</phase>
  403. <goals>
  404. <goal>testCompile</goal>
  405. </goals>
  406. <configuration>
  407. <encoding>UTF-8</encoding>
  408. <!-- Tests use some JDK 8 features, such as lambdas -->
  409. <source>8</source>
  410. <target>8</target>
  411. <compilerArgs>
  412. <arg>-parameters</arg>
  413. </compilerArgs>
  414. </configuration>
  415. </execution>
  416. </executions>
  417. </plugin>
  418. <!-- Execute unit tests -->
  419. <plugin>
  420. <groupId>org.apache.maven.plugins</groupId>
  421. <artifactId>maven-surefire-plugin</artifactId>
  422. </plugin>
  423. <!-- Add src/test/perf to test sources -->
  424. <plugin>
  425. <groupId>org.codehaus.mojo</groupId>
  426. <artifactId>build-helper-maven-plugin</artifactId>
  427. <executions>
  428. <execution>
  429. <id>add-test-source</id>
  430. <phase>generate-test-sources</phase>
  431. <goals>
  432. <goal>add-test-source</goal>
  433. </goals>
  434. <configuration>
  435. <sources>
  436. <source>src/test/perf</source>
  437. </sources>
  438. </configuration>
  439. </execution>
  440. </executions>
  441. </plugin>
  442. <!-- Create binary jar -->
  443. <plugin>
  444. <groupId>org.apache.maven.plugins</groupId>
  445. <artifactId>maven-jar-plugin</artifactId>
  446. <configuration>
  447. <forceCreation>true</forceCreation>
  448. <archive>
  449. <forced>true</forced>
  450. <manifest>
  451. <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
  452. <addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
  453. </manifest>
  454. <manifestEntries>
  455. <!-- Add OSGi bundle attributes to manifest -->
  456. <Bundle-Category>Utilities</Bundle-Category>
  457. <Bundle-License>http://opensource.org/licenses/MIT</Bundle-License>
  458. <Bundle-ManifestVersion>2</Bundle-ManifestVersion>
  459. <Bundle-Name>ClassGraph</Bundle-Name>
  460. <Bundle-SymbolicName>${project.groupId}.${project.artifactId}</Bundle-SymbolicName>
  461. <Bundle-Vendor>Luke Hutchison</Bundle-Vendor>
  462. <Bundle-Description>${project.description}</Bundle-Description>
  463. <Bundle-Version>${project.version}</Bundle-Version>
  464. <Require-Capability>osgi.ee;filter:="(&amp;(osgi.ee=JavaSE)(version=1.7))"</Require-Capability>
  465. <Export-Package>io.github.classgraph;version="${project.version}"</Export-Package>
  466. <!-- Make sure "requires" entries in the module descriptor match these imports: -->
  467. <!-- src/main/module-info/io.github.classgraph/module-info.java -->
  468. <Import-Package>javax.xml.xpath,javax.xml.namespace,javax.xml.parsers,org.w3c.dom,sun.misc;resolution:="optional",sun.nio.ch;resolution:="optional",io.github.toolfactory.narcissus;resolution:="optional",io.github.toolfactory.jvm;resolution:="optional"</Import-Package>
  469. <!-- This is a multi-release jar, since module-info.class will be added to -->
  470. <!-- META-INF/versions/9 , so we need to set the Multi-Release entry to true -->
  471. <Multi-Release>true</Multi-Release>
  472. </manifestEntries>
  473. </archive>
  474. </configuration>
  475. </plugin>
  476. <!-- Create source jar -->
  477. <plugin>
  478. <groupId>org.apache.maven.plugins</groupId>
  479. <artifactId>maven-source-plugin</artifactId>
  480. <executions>
  481. <execution>
  482. <id>attach-sources</id>
  483. <phase>package</phase>
  484. <goals>
  485. <goal>jar-no-fork</goal>
  486. </goals>
  487. </execution>
  488. </executions>
  489. </plugin>
  490. <!-- Create Javadoc jar -->
  491. <plugin>
  492. <groupId>org.apache.maven.plugins</groupId>
  493. <artifactId>maven-javadoc-plugin</artifactId>
  494. <executions>
  495. <execution>
  496. <id>attach-javadocs</id>
  497. <phase>package</phase>
  498. <goals>
  499. <goal>jar</goal>
  500. </goals>
  501. <configuration>
  502. <source>8</source>
  503. <additionalOptions>${javadoc.html.version}</additionalOptions>
  504. <doclint>all</doclint>
  505. <excludePackageNames>nonapi.*</excludePackageNames>
  506. <show>public</show>
  507. </configuration>
  508. </execution>
  509. </executions>
  510. </plugin>
  511. <!-- Stage jars on Sonatype Nexus -->
  512. <!-- See: http://java.dzone.com/articles/deploy-maven-central -->
  513. <!-- and: http://central.sonatype.org/pages/apache-maven.html -->
  514. <plugin>
  515. <groupId>org.sonatype.plugins</groupId>
  516. <artifactId>nexus-staging-maven-plugin</artifactId>
  517. <extensions>true</extensions>
  518. <configuration>
  519. <serverId>ossrh</serverId>
  520. <nexusUrl>https://oss.sonatype.org/</nexusUrl>
  521. <autoReleaseAfterClose>true</autoReleaseAfterClose>
  522. <stagingProgressTimeoutMinutes>10</stagingProgressTimeoutMinutes>
  523. </configuration>
  524. </plugin>
  525. <!-- Deploy jars -->
  526. <plugin>
  527. <groupId>org.apache.maven.plugins</groupId>
  528. <artifactId>maven-release-plugin</artifactId>
  529. <configuration>
  530. <phase>deploy</phase>
  531. <goals>deploy</goals>
  532. <autoVersionSubmodules>true</autoVersionSubmodules>
  533. <!-- Activate release profile -->
  534. <releaseProfiles>release</releaseProfiles>
  535. <!-- Work around bug where releaseProfiles tag doesn't actually work yet -->
  536. <arguments>-Prelease</arguments>
  537. </configuration>
  538. </plugin>
  539. </plugins>
  540. </pluginManagement>
  541. </build>
  542. <profiles>
  543. <!-- Compile Javadoc to HTML5 if building with JDK 9+ -->
  544. <profile>
  545. <id>jdk9plus</id>
  546. <properties>
  547. <javadoc.html.version>-html5</javadoc.html.version>
  548. <!-- coverall version 4.3.0 does not work with java 9. -->
  549. <!-- See: https://github.com/trautonen/coveralls-maven-plugin/issues/112 -->
  550. <coveralls.skip>true</coveralls.skip>
  551. </properties>
  552. <activation>
  553. <jdk>[9,)</jdk>
  554. </activation>
  555. </profile>
  556. <!-- Sign jars for release (./mvnw clean release:prepare release:perform) -->
  557. <profile>
  558. <id>release</id>
  559. <build>
  560. <plugins>
  561. <plugin>
  562. <groupId>org.apache.maven.plugins</groupId>
  563. <artifactId>maven-gpg-plugin</artifactId>
  564. <configuration>
  565. <gpgArguments>
  566. <arg>--pinentry-mode</arg>
  567. <arg>loopback</arg>
  568. </gpgArguments>
  569. <keyname>${gpg.keyname}</keyname>
  570. <passphraseServerId>${gpg.keyname}</passphraseServerId>
  571. </configuration>
  572. <executions>
  573. <execution>
  574. <id>sign-artifacts</id>
  575. <phase>verify</phase>
  576. <goals>
  577. <goal>sign</goal>
  578. </goals>
  579. </execution>
  580. </executions>
  581. </plugin>
  582. </plugins>
  583. </build>
  584. </profile>
  585. </profiles>
  586. </project>