You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

pom.xml 6.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  1. <?xml version="1.0"?>
  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. <parent>
  4. <groupId>org.pf4j</groupId>
  5. <artifactId>pf4j-parent</artifactId>
  6. <version>3.8.0-SNAPSHOT</version>
  7. </parent>
  8. <modelVersion>4.0.0</modelVersion>
  9. <artifactId>pf4j</artifactId>
  10. <version>3.8.0-SNAPSHOT</version>
  11. <packaging>jar</packaging>
  12. <name>PF4J</name>
  13. <description>Plugin Framework for Java</description>
  14. <properties>
  15. <sonar.projectKey>pf4j_pf4j</sonar.projectKey>
  16. </properties>
  17. <build>
  18. <plugins>
  19. <plugin>
  20. <groupId>org.codehaus.mojo</groupId>
  21. <artifactId>templating-maven-plugin</artifactId>
  22. <executions>
  23. <execution>
  24. <id>filter-src</id>
  25. <goals>
  26. <goal>filter-sources</goal>
  27. </goals>
  28. </execution>
  29. </executions>
  30. </plugin>
  31. <plugin>
  32. <groupId>org.apache.maven.plugins</groupId>
  33. <artifactId>maven-compiler-plugin</artifactId>
  34. <configuration>
  35. <compilerArgument>-proc:none</compilerArgument>
  36. <!-- Only required when JAVA_HOME isn't at least Java 9 and when haven't configured the maven-toolchains-plugin -->
  37. <jdkToolchain>
  38. <version>9</version>
  39. </jdkToolchain>
  40. </configuration>
  41. <executions>
  42. <!-- compile everything for Java 8 except the module-info.java -->
  43. <execution>
  44. <id>default-compile</id>
  45. <goals>
  46. <goal>compile</goal>
  47. </goals>
  48. <configuration>
  49. <excludes>
  50. <exclude>module-info.java</exclude>
  51. </excludes>
  52. </configuration>
  53. </execution>
  54. <!-- compile module-info.java for Java 9+ -->
  55. <execution>
  56. <id>java9-compile</id>
  57. <goals>
  58. <goal>compile</goal>
  59. </goals>
  60. <configuration>
  61. <release>9</release>
  62. <multiReleaseOutput>true</multiReleaseOutput>
  63. <includes>
  64. <include>module-info.java</include>
  65. </includes>
  66. </configuration>
  67. </execution>
  68. </executions>
  69. </plugin>
  70. <plugin>
  71. <groupId>org.apache.maven.plugins</groupId>
  72. <artifactId>maven-jar-plugin</artifactId>
  73. <configuration>
  74. <archive>
  75. <manifestEntries>
  76. <Multi-Release>true</Multi-Release>
  77. </manifestEntries>
  78. </archive>
  79. </configuration>
  80. <executions>
  81. <execution>
  82. <goals>
  83. <goal>test-jar</goal>
  84. </goals>
  85. <configuration>
  86. <includes>
  87. <inculde>org/pf4j/test/*</inculde>
  88. </includes>
  89. </configuration>
  90. </execution>
  91. </executions>
  92. </plugin>
  93. </plugins>
  94. </build>
  95. <dependencies>
  96. <dependency>
  97. <groupId>org.slf4j</groupId>
  98. <artifactId>slf4j-api</artifactId>
  99. <version>${slf4j.version}</version>
  100. </dependency>
  101. <dependency>
  102. <groupId>com.github.zafarkhaja</groupId>
  103. <artifactId>java-semver</artifactId>
  104. <version>0.9.0</version>
  105. </dependency>
  106. <dependency>
  107. <groupId>org.ow2.asm</groupId>
  108. <artifactId>asm</artifactId>
  109. <version>${asm.version}</version>
  110. <optional>true</optional>
  111. </dependency>
  112. <!-- Logging -->
  113. <dependency>
  114. <groupId>org.apache.logging.log4j</groupId>
  115. <artifactId>log4j-api</artifactId>
  116. <version>${log4j.version}</version>
  117. <scope>test</scope>
  118. </dependency>
  119. <dependency>
  120. <groupId>org.apache.logging.log4j</groupId>
  121. <artifactId>log4j-core</artifactId>
  122. <version>${log4j.version}</version>
  123. <scope>test</scope>
  124. </dependency>
  125. <dependency>
  126. <groupId>org.apache.logging.log4j</groupId>
  127. <artifactId>log4j-slf4j-impl</artifactId>
  128. <version>${log4j.version}</version>
  129. <scope>test</scope>
  130. </dependency>
  131. <!-- Testing -->
  132. <dependency>
  133. <groupId>org.hamcrest</groupId>
  134. <artifactId>hamcrest</artifactId>
  135. <version>${hamcrest.version}</version>
  136. <scope>test</scope>
  137. </dependency>
  138. <dependency>
  139. <!--
  140. An empty artifact, required while JUnit 4 is on the classpath to override its
  141. dependency on hamcrest.
  142. See http://hamcrest.org/JavaHamcrest/distributables#upgrading-from-hamcrest-1x
  143. -->
  144. <groupId>org.hamcrest</groupId>
  145. <artifactId>hamcrest-core</artifactId>
  146. <version>${hamcrest.version}</version>
  147. <scope>test</scope>
  148. </dependency>
  149. <dependency>
  150. <groupId>org.junit.jupiter</groupId>
  151. <artifactId>junit-jupiter-engine</artifactId>
  152. <version>${junit.version}</version>
  153. <scope>test</scope>
  154. </dependency>
  155. <dependency>
  156. <groupId>org.mockito</groupId>
  157. <artifactId>mockito-core</artifactId>
  158. <version>${mockito.version}</version>
  159. <scope>test</scope>
  160. </dependency>
  161. <dependency>
  162. <groupId>com.google.testing.compile</groupId>
  163. <artifactId>compile-testing</artifactId>
  164. <version>0.18</version>
  165. <scope>test</scope>
  166. </dependency>
  167. </dependencies>
  168. </project>