Guest User

Untitled

a guest
Jan 30th, 2023
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.48 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  5. <modelVersion>4.0.0</modelVersion>
  6.  
  7. <groupId>me.random</groupId>
  8. <artifactId>BetterAnticheat</artifactId>
  9.  
  10. <version>1.0.0-M2</version>
  11.  
  12. <!-- Properties Section. Change ND4J versions here, if required -->
  13. <properties>
  14. <dl4j-master.version>1.0.0-M2.1</dl4j-master.version>
  15. <java.version>1.8</java.version>
  16. <maven-shade-plugin.version>3.2.4</maven-shade-plugin.version>
  17. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  18. </properties>
  19.  
  20. <repositories>
  21. <repository>
  22. <id>spigot-repo</id>
  23. <url>https://hub.spigotmc.org/nexus/content/repositories/snapshots/</url>
  24. </repository>
  25. <repository>
  26. <id>jitpack.io</id>
  27. <url>https://jitpack.io</url>
  28. </repository>
  29. <repository>
  30. <id>funkemunky-releases</id>
  31. <url>https://nexus.funkemunky.cc/content/repositories/releases/</url>
  32. </repository>
  33. <repository>
  34. <id>opencollab-snapshot</id>
  35. <url>https://repo.opencollab.dev/maven-snapshots/</url>
  36. </repository>
  37. </repositories>
  38.  
  39.  
  40. <dependencies>
  41. <!-- deeplearning4j-core: contains main functionality and neural networks -->
  42. <dependency>
  43. <groupId>org.deeplearning4j</groupId>
  44. <artifactId>deeplearning4j-core</artifactId>
  45. <version>${dl4j-master.version}</version>
  46. </dependency>
  47. <dependency>
  48. <groupId>org.spigotmc</groupId>
  49. <artifactId>spigot-api</artifactId>
  50. <version>1.16.5-R0.1-SNAPSHOT</version>
  51. <scope>provided</scope>
  52. </dependency>
  53. <dependency>
  54. <groupId>com.github.retrooper</groupId>
  55. <artifactId>packetevents</artifactId>
  56. <version>v1.8.2</version>
  57. </dependency>
  58. <dependency>
  59. <groupId>org.projectlombok</groupId>
  60. <artifactId>lombok</artifactId>
  61. <version>1.18.20</version>
  62. <scope>provided</scope>
  63. </dependency>
  64. <dependency>
  65. <groupId>org.nd4j</groupId>
  66. <artifactId>nd4j-native-platform</artifactId>
  67. <version>${dl4j-master.version}</version>
  68. </dependency>
  69. </dependencies>
  70.  
  71. <build>
  72. <plugins>
  73. <!-- Maven compiler plugin: compile for Java 8 -->
  74. <plugin>
  75. <groupId>org.apache.maven.plugins</groupId>
  76. <artifactId>maven-compiler-plugin</artifactId>
  77. <version>3.5.1</version>
  78. <configuration>
  79. <source>${java.version}</source>
  80. <target>${java.version}</target>
  81. </configuration>
  82. </plugin>
  83.  
  84.  
  85. <!--
  86. Maven shade plugin configuration: this is required so that if you build a single JAR file (an "uber-jar")
  87. it will contain all the required native libraries, and the backends will work correctly.
  88. Used for example when running the following commants
  89.  
  90. mvn package
  91. cd target
  92. java -cp deeplearning4j-examples-1.0.0-beta-bin.jar org.deeplearning4j.LenetMnistExample
  93. -->
  94. <plugin>
  95. <groupId>org.apache.maven.plugins</groupId>
  96. <artifactId>maven-shade-plugin</artifactId>
  97. <version>${maven-shade-plugin.version}</version>
  98. <configuration>
  99. <shadedArtifactAttached>true</shadedArtifactAttached>
  100. <shadedClassifierName>bin</shadedClassifierName>
  101. <createDependencyReducedPom>true</createDependencyReducedPom>
  102. <filters>
  103. <filter>
  104. <artifact>*:*</artifact>
  105. <excludes>
  106. <exclude>org/datanucleus/**</exclude>
  107. <exclude>META-INF/*.SF</exclude>
  108. <exclude>META-INF/*.DSA</exclude>
  109. <exclude>META-INF/*.RSA</exclude>
  110. </excludes>
  111. </filter>
  112. </filters>
  113. </configuration>
  114.  
  115. <executions>
  116. <execution>
  117. <phase>package</phase>
  118. <goals>
  119. <goal>shade</goal>
  120. </goals>
  121. <configuration>
  122. <relocations>
  123. <relocation>
  124. <pattern>io.github.retrooper.packetevents</pattern>
  125. <shadedPattern>me.random.BetterAnticheat.packetevents</shadedPattern> <!--relocate packetevents package-->
  126. </relocation>
  127. </relocations>
  128. <transformers>
  129. <transformer implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
  130. <resource>reference.conf</resource>
  131. </transformer>
  132. <transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
  133. <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
  134. </transformer>
  135. </transformers>
  136. </configuration>
  137. </execution>
  138. </executions>
  139. </plugin>
  140. </plugins>
  141. </build>
  142. </project>
  143.  
Advertisement
Add Comment
Please, Sign In to add comment