Advertisement
lackoSK

pom.xml

Jun 29th, 2020
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 7.65 KB | None | 0 0
  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.  
  6.     <groupId>org.mineacademy</groupId>
  7.     <artifactId>ChatControl</artifactId>
  8.     <version>9.0.3-BETA</version>
  9.     <packaging>jar</packaging>
  10.  
  11.     <properties>
  12.         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  13.         <plugin.name>chatcontrol</plugin.name>
  14.         <main.class>${project.groupId}.${plugin.name}.ChatControl</main.class>
  15.         <lightningstorage.version>3.1.4</lightningstorage.version>
  16.     </properties>
  17.  
  18.     <repositories>
  19.         <repository>
  20.             <id>jitpack.io</id>
  21.             <url>https://jitpack.io</url>
  22.         </repository>
  23.         <repository>
  24.             <id>mineacademy-repo</id>
  25.             <url>https://repo.mineacademy.org/repository/maven-public/</url>
  26.         </repository>
  27.         <repository>
  28.             <id>mineacademy-external-plugins</id>
  29.             <url>https://repo.mineacademy.org/repository/external-plugins/</url>
  30.         </repository>
  31.     </repositories>
  32.  
  33.     <dependencies>
  34.         <dependency>
  35.             <groupId>org.mineacademy.libraries</groupId>
  36.             <artifactId>foundation</artifactId>
  37.             <version>5.4.4-SNAPSHOT</version>
  38.         </dependency>
  39.         <dependency>
  40.             <groupId>com.github.JavaFactoryDev</groupId>
  41.             <artifactId>LightningStorage</artifactId>
  42.             <version>${lightningstorage.version}</version>
  43.         </dependency>
  44.  
  45.  
  46.         <!-- Lombok (Needed for IntelliJ)-->
  47.         <dependency>
  48.             <groupId>org.projectlombok</groupId>
  49.             <artifactId>lombok</artifactId>
  50.             <version>1.18.12</version>
  51.             <scope>provided</scope>
  52.         </dependency>
  53.         <dependency>
  54.             <groupId>org.apache.logging.log4j</groupId>
  55.             <artifactId>log4j-core</artifactId>
  56.             <version>2.13.3</version>
  57.         </dependency>
  58.         <dependency>
  59.             <groupId>org.mineacademy.plugins.external</groupId>
  60.             <artifactId>simpleclans</artifactId>
  61.             <version>2.12.1</version>
  62.         </dependency>
  63.         <dependency>
  64.             <groupId>org.mineacademy.plugins.external</groupId>
  65.             <artifactId>discordsrv</artifactId>
  66.             <version>1.19.0</version>
  67.         </dependency>
  68.         <dependency>
  69.             <groupId>org.mineacademy.plugins.external</groupId>
  70.             <artifactId>towny-chat</artifactId>
  71.             <version>0.63</version>
  72.         </dependency>
  73.         <dependency>
  74.             <groupId>org.mineacademy.plugins.external</groupId>
  75.             <artifactId>authme</artifactId>
  76.             <version>5.6.0-SNAPSHOT</version>
  77.         </dependency>
  78.         <dependency>
  79.             <groupId>org.mineacademy.plugins.external</groupId>
  80.             <artifactId>protocollib</artifactId>
  81.             <version>4.5.1-SNAPSHOT</version>
  82.         </dependency>
  83.         <dependency>
  84.             <groupId>org.mineacademy.plugins.external</groupId>
  85.             <artifactId>mcmmo</artifactId>
  86.             <version>2.1.128</version>
  87.         </dependency>
  88.         <dependency>
  89.             <groupId>org.mineacademy.plugins.external</groupId>
  90.             <artifactId>residence</artifactId>
  91.             <version>4.8.8.2</version>
  92.         </dependency>
  93.     </dependencies>
  94.  
  95.     <build>
  96.         <plugins>
  97.             <plugin>
  98.                 <groupId>org.apache.maven.plugins</groupId>
  99.                 <artifactId>maven-jar-plugin</artifactId>
  100.                 <version>3.2.0</version>
  101.             </plugin>
  102.             <plugin>
  103.                 <groupId>org.apache.maven.plugins</groupId>
  104.                 <artifactId>maven-compiler-plugin</artifactId>
  105.                 <version>3.8.1</version>
  106.                 <configuration>
  107.                     <source>1.8</source>
  108.                     <target>1.8</target>
  109.                 </configuration>
  110.             </plugin>
  111.             <plugin>
  112.                 <groupId>org.apache.maven.plugins</groupId>
  113.                 <artifactId>maven-shade-plugin</artifactId>
  114.                 <version>3.2.3</version>
  115.                 <executions>
  116.                     <execution>
  117.                         <phase>package</phase>
  118.                         <goals>
  119.                             <goal>shade</goal>
  120.                         </goals>
  121.                     </execution>
  122.                 </executions>
  123.                 <configuration>
  124.                     <createDependencyReducedPom>false</createDependencyReducedPom>
  125.                     <artifactSet>
  126.                         <includes>
  127.                             <include>org.mineacademy:Foundation*</include>
  128.                             <include>com.github.JavaFactoryDev:LightningStorage*</include>
  129.                         </includes>
  130.                     </artifactSet>
  131.                     <relocations>
  132.                         <relocation>
  133.                             <pattern>org.mineacademy.fo</pattern>
  134.                             <shadedPattern>org.mineacademy.${plugin.name}.lib</shadedPattern>
  135.                             <excludes>
  136.                                 <exclude>org.mineacademy.${plugin.name}.*</exclude>
  137.                             </excludes>
  138.                         </relocation>
  139.                         <relocation>
  140.                             <pattern>de.leonhard.storage</pattern>
  141.                             <shadedPattern>org.mineacademy.${plugin.name}.storage</shadedPattern>
  142.                             <excludes>
  143.                                 <exclude>org.mineacademy.${plugin.name}.*</exclude>
  144.                             </excludes>
  145.                         </relocation>
  146.                     </relocations>
  147.                     <filters>
  148.                         <filter>
  149.                             <artifact>*:*</artifact>
  150.                             <excludes>
  151.                                 <exclude>META-INF/MANIFEST.MF</exclude>
  152.                                 <exclude>META-INF/*.SF</exclude>
  153.                                 <exclude>META-INF/*.DSA</exclude>
  154.                                 <exclude>META-INF/*.RSA</exclude>
  155.                             </excludes>
  156.                         </filter>
  157.                     </filters>
  158.                 </configuration>
  159.             </plugin>
  160.             <plugin>
  161.                 <groupId>com.github.wvengen</groupId>
  162.                 <artifactId>proguard-maven-plugin</artifactId>
  163.                 <version>2.2.0</version>
  164.                 <dependencies>
  165.                     <dependency>
  166.                         <groupId>net.sf.proguard</groupId>
  167.                         <artifactId>proguard-base</artifactId>
  168.                         <version>6.3.0beta1</version>
  169.                     </dependency>
  170.                 </dependencies>
  171.                 <executions>
  172.                     <execution>
  173.                         <phase>package</phase>
  174.                         <goals>
  175.                             <goal>proguard</goal>
  176.                         </goals>
  177.                     </execution>
  178.                 </executions>
  179.                 <configuration>
  180.                     <libs>
  181.                         <lib>${java.home}/lib/rt.jar</lib>
  182.                         <lib>${java.home}/lib/jce.jar</lib>
  183.                     </libs>
  184.                 </configuration>
  185.             </plugin>
  186.         </plugins>
  187.         <resources>
  188.             <resource>
  189.                 <directory>src/main/resources</directory>
  190.                 <filtering>true</filtering>
  191.             </resource>
  192.         </resources>
  193.     </build>
  194. </project>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement