pom.xml 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213
  1. <project xmlns="http://maven.apache.org/POM/4.0.0"
  2. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  4. <modelVersion>4.0.0</modelVersion>
  5. <groupId>com.l2jserver</groupId>
  6. <artifactId>l2j-server-game</artifactId>
  7. <version>2.6.3.0-SNAPSHOT</version>
  8. <name>L2J Game Server</name>
  9. <properties>
  10. <maven.compiler.source>21</maven.compiler.source>
  11. <maven.compiler.target>21</maven.compiler.target>
  12. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  13. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  14. <slf4j.version>2.0.9</slf4j.version>
  15. <log4j.version>2.22.0</log4j.version>
  16. <InMemoryJavaCompiler.version>1.3.0</InMemoryJavaCompiler.version>
  17. <gson.version>2.10.1</gson.version>
  18. <owner.version>1.0.12</owner.version>
  19. <jda.version>5.0.0-beta.18</jda.version>
  20. <!-- L2J -->
  21. <l2j-server-commons.version>2.6.7.0</l2j-server-commons.version>
  22. <l2j-server-geo-driver.version>2.6.5.0</l2j-server-geo-driver.version>
  23. <!-- Test -->
  24. <junit-jupiter.version>5.10.1</junit-jupiter.version>
  25. <mockito.version>5.7.0</mockito.version>
  26. <mockito-inline.version>5.2.0</mockito-inline.version>
  27. <assertj-core.version>3.24.2</assertj-core.version>
  28. <!-- Plugins -->
  29. <dependency-check-maven.version>9.0.2</dependency-check-maven.version>
  30. <maven-assembly-plugin.version>3.6.0</maven-assembly-plugin.version>
  31. <maven-compiler-plugin.version>3.11.0</maven-compiler-plugin.version>
  32. <maven-jar-plugin.version>3.3.0</maven-jar-plugin.version>
  33. <maven-surefire-plugin.version>3.2.2</maven-surefire-plugin.version>
  34. </properties>
  35. <repositories>
  36. <repository>
  37. <id>jitpack.io</id>
  38. <url>https://jitpack.io</url>
  39. </repository>
  40. </repositories>
  41. <build>
  42. <finalName>l2jserver</finalName>
  43. <plugins>
  44. <plugin>
  45. <groupId>org.apache.maven.plugins</groupId>
  46. <artifactId>maven-surefire-plugin</artifactId>
  47. <version>${maven-surefire-plugin.version}</version>
  48. <configuration>
  49. <argLine>-XX:+EnableDynamicAgentLoading -Xshare:off</argLine>
  50. </configuration>
  51. </plugin>
  52. <plugin>
  53. <groupId>org.apache.maven.plugins</groupId>
  54. <artifactId>maven-compiler-plugin</artifactId>
  55. <version>${maven-compiler-plugin.version}</version>
  56. <configuration>
  57. <proc>full</proc>
  58. </configuration>
  59. </plugin>
  60. <plugin>
  61. <groupId>org.apache.maven.plugins</groupId>
  62. <artifactId>maven-jar-plugin</artifactId>
  63. <version>${maven-jar-plugin.version}</version>
  64. <configuration>
  65. <archive>
  66. <manifest>
  67. <addClasspath>true</addClasspath>
  68. <classpathPrefix>libs/</classpathPrefix>
  69. <mainClass>com.l2jserver.gameserver.GameServer</mainClass>
  70. </manifest>
  71. </archive>
  72. </configuration>
  73. </plugin>
  74. <plugin>
  75. <groupId>org.apache.maven.plugins</groupId>
  76. <artifactId>maven-assembly-plugin</artifactId>
  77. <version>${maven-assembly-plugin.version}</version>
  78. <executions>
  79. <execution>
  80. <phase>package</phase>
  81. <goals>
  82. <goal>single</goal>
  83. </goals>
  84. <configuration>
  85. <finalName>${project.artifactId}-${project.version}</finalName>
  86. <appendAssemblyId>false</appendAssemblyId>
  87. <descriptors>
  88. <descriptor>src/main/assembly/zip.xml</descriptor>
  89. </descriptors>
  90. </configuration>
  91. </execution>
  92. </executions>
  93. </plugin>
  94. </plugins>
  95. </build>
  96. <dependencies>
  97. <dependency>
  98. <groupId>org.slf4j</groupId>
  99. <artifactId>slf4j-api</artifactId>
  100. <version>${slf4j.version}</version>
  101. </dependency>
  102. <!-- TODO(Zoey76): Remove when loggers rework is completed. -->
  103. <dependency>
  104. <groupId>org.slf4j</groupId>
  105. <artifactId>jul-to-slf4j</artifactId>
  106. <version>${slf4j.version}</version>
  107. </dependency>
  108. <dependency>
  109. <groupId>org.apache.logging.log4j</groupId>
  110. <artifactId>log4j-slf4j2-impl</artifactId>
  111. <version>${log4j.version}</version>
  112. </dependency>
  113. <dependency>
  114. <groupId>org.apache.logging.log4j</groupId>
  115. <artifactId>log4j-core</artifactId>
  116. <version>${log4j.version}</version>
  117. </dependency>
  118. <dependency>
  119. <groupId>org.mdkt.compiler</groupId>
  120. <artifactId>InMemoryJavaCompiler</artifactId>
  121. <version>${InMemoryJavaCompiler.version}</version>
  122. </dependency>
  123. <dependency>
  124. <groupId>com.google.code.gson</groupId>
  125. <artifactId>gson</artifactId>
  126. <version>${gson.version}</version>
  127. </dependency>
  128. <dependency>
  129. <groupId>org.aeonbits.owner</groupId>
  130. <artifactId>owner-java8</artifactId>
  131. <version>${owner.version}</version>
  132. </dependency>
  133. <dependency>
  134. <groupId>net.dv8tion</groupId>
  135. <artifactId>JDA</artifactId>
  136. <version>${jda.version}</version>
  137. </dependency>
  138. <!-- L2J -->
  139. <dependency>
  140. <groupId>org.bitbucket.l2jserver</groupId>
  141. <artifactId>l2j-server-commons</artifactId>
  142. <version>${l2j-server-commons.version}</version>
  143. </dependency>
  144. <dependency>
  145. <groupId>org.bitbucket.l2jserver</groupId>
  146. <artifactId>l2j-server-geo-driver</artifactId>
  147. <version>${l2j-server-geo-driver.version}</version>
  148. </dependency>
  149. <!-- Test -->
  150. <dependency>
  151. <groupId>org.junit.jupiter</groupId>
  152. <artifactId>junit-jupiter-engine</artifactId>
  153. <version>${junit-jupiter.version}</version>
  154. <scope>test</scope>
  155. </dependency>
  156. <dependency>
  157. <groupId>org.junit.jupiter</groupId>
  158. <artifactId>junit-jupiter-params</artifactId>
  159. <version>${junit-jupiter.version}</version>
  160. <scope>test</scope>
  161. </dependency>
  162. <dependency>
  163. <groupId>org.mockito</groupId>
  164. <artifactId>mockito-core</artifactId>
  165. <version>${mockito.version}</version>
  166. <scope>test</scope>
  167. </dependency>
  168. <dependency>
  169. <groupId>org.mockito</groupId>
  170. <artifactId>mockito-junit-jupiter</artifactId>
  171. <version>${mockito.version}</version>
  172. <scope>test</scope>
  173. </dependency>
  174. <dependency>
  175. <groupId>org.mockito</groupId>
  176. <artifactId>mockito-inline</artifactId>
  177. <version>${mockito-inline.version}</version>
  178. <scope>test</scope>
  179. </dependency>
  180. <dependency>
  181. <groupId>org.assertj</groupId>
  182. <artifactId>assertj-core</artifactId>
  183. <version>${assertj-core.version}</version>
  184. <scope>test</scope>
  185. </dependency>
  186. </dependencies>
  187. <profiles>
  188. <profile>
  189. <id>ci</id>
  190. <build>
  191. <plugins>
  192. <plugin>
  193. <groupId>org.owasp</groupId>
  194. <artifactId>dependency-check-maven</artifactId>
  195. <version>${dependency-check-maven.version}</version>
  196. <configuration>
  197. <failBuildOnCVSS>8</failBuildOnCVSS>
  198. <assemblyAnalyzerEnabled>false</assemblyAnalyzerEnabled>
  199. <nvdApiKey>${env.NVD_API_KEY}</nvdApiKey>
  200. </configuration>
  201. <executions>
  202. <execution>
  203. <goals>
  204. <goal>check</goal>
  205. </goals>
  206. </execution>
  207. </executions>
  208. </plugin>
  209. </plugins>
  210. </build>
  211. </profile>
  212. </profiles>
  213. </project>