Advertisement
Vaerys_Dawn

pom.xml

Sep 15th, 2017
181
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 4.04 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>com.github.vaerys</groupId>
  8.     <artifactId>DiscordSAIL</artifactId>
  9.     <version>2.8.4 - RC1</version>
  10.  
  11.     <build>
  12.         <resources>
  13.             <resource>
  14.                 <directory>src/main/resources</directory>
  15.                 <filtering>true</filtering>
  16.             </resource>
  17.         </resources>
  18.  
  19.         <finalName>JavaDiscordSAILv2</finalName>
  20.         <plugins>
  21.  
  22.             <!-- download source code in Eclipse, best practice -->
  23.             <plugin>
  24.                 <groupId>org.apache.maven.plugins</groupId>
  25.                 <artifactId>maven-eclipse-plugin</artifactId>
  26.                 <version>2.9</version>
  27.                 <configuration>
  28.                     <downloadSources>true</downloadSources>
  29.                     <downloadJavadocs>false</downloadJavadocs>
  30.                 </configuration>
  31.             </plugin>
  32.  
  33.             <!-- Set a compiler level -->
  34.             <plugin>
  35.                 <groupId>org.apache.maven.plugins</groupId>
  36.                 <artifactId>maven-compiler-plugin</artifactId>
  37.                 <version>2.3.2</version>
  38.                 <configuration>
  39.                     <source>1.8</source>
  40.                     <target>1.8</target>
  41.                 </configuration>
  42.             </plugin>
  43.  
  44.             <!-- Maven Shade Plugin -->
  45.             <plugin>
  46.                 <groupId>org.apache.maven.plugins</groupId>
  47.                 <artifactId>maven-shade-plugin</artifactId>
  48.                 <version>2.3</version>
  49.                 <executions>
  50.                     <!-- Run shade goal on package phase -->
  51.                     <execution>
  52.                         <phase>package</phase>
  53.                         <goals>
  54.                             <goal>shade</goal>
  55.                         </goals>
  56.                         <configuration>
  57.                             <transformers>
  58.                                 <!-- add Main-Class to manifest file -->
  59.                                 <transformer
  60.                                        implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
  61.                                     <mainClass>com.github.vaerys.main.Main</mainClass>
  62.                                 </transformer>
  63.                             </transformers>
  64.                         </configuration>
  65.                     </execution>
  66.                 </executions>
  67.             </plugin>
  68.         </plugins>
  69.     </build>
  70.  
  71.     <repositories>
  72.         <repository> <!-- This repo fixes issues with transitive dependencies -->
  73.             <id>jcenter</id>
  74.             <url>http://jcenter.bintray.com</url>
  75.         </repository>
  76.         <repository>
  77.             <id>jitpack.io</id>
  78.             <url>https://jitpack.io</url>
  79.         </repository>
  80.     </repositories>
  81.  
  82.     <dependencies>
  83.         <dependency>
  84.             <groupId>org.json</groupId>
  85.             <artifactId>json</artifactId>
  86.             <version>20140107</version>
  87.         </dependency>
  88.         <dependency>
  89.             <groupId>com.github.austinv11</groupId>
  90.             <artifactId>Discord4j</artifactId>
  91.             <version>5ddbb3b</version>
  92.             <classifier>shaded</classifier>
  93.         </dependency>
  94.         <dependency>
  95.             <groupId>ch.qos.logback</groupId>
  96.             <artifactId>logback-classic</artifactId>
  97.             <version>1.1.7</version>
  98.         </dependency>
  99.         <dependency>
  100.             <groupId>org.apache.commons</groupId>
  101.             <artifactId>commons-lang3</artifactId>
  102.             <version>3.4</version>
  103.         </dependency>
  104.         <dependency>
  105.             <groupId>com.google.code.gson</groupId>
  106.             <artifactId>gson</artifactId>
  107.             <version>2.8.0</version>
  108.         </dependency>
  109.     </dependencies>
  110. </project>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement