diff options
Diffstat (limited to 'sponge/pom.xml')
-rw-r--r-- | sponge/pom.xml | 103 |
1 files changed, 103 insertions, 0 deletions
diff --git a/sponge/pom.xml b/sponge/pom.xml new file mode 100644 index 0000000..44cfa6f --- /dev/null +++ b/sponge/pom.xml @@ -0,0 +1,103 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xmlns="http://maven.apache.org/POM/4.0.0" + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> + <parent> + <artifactId>spark-parent</artifactId> + <groupId>me.lucko</groupId> + <version>1.0-SNAPSHOT</version> + </parent> + <modelVersion>4.0.0</modelVersion> + + <artifactId>spark-sponge</artifactId> + <packaging>jar</packaging> + + <build> + <defaultGoal>clean package</defaultGoal> + <finalName>spark-sponge</finalName> + <resources> + <resource> + <directory>src/main/resources</directory> + <filtering>true</filtering> + </resource> + </resources> + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-compiler-plugin</artifactId> + <version>${compiler.version}</version> + <configuration> + <source>1.8</source> + <target>1.8</target> + </configuration> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-shade-plugin</artifactId> + <version>${shade.version}</version> + <executions> + <execution> + <phase>package</phase> + <goals> + <goal>shade</goal> + </goals> + <configuration> + <minimizeJar>false</minimizeJar> + <createDependencyReducedPom>false</createDependencyReducedPom> + <relocations> + <!-- shaded dependencies --> + <relocation> + <pattern>okio</pattern> + <shadedPattern>me.lucko.spark.lib.okio</shadedPattern> + </relocation> + <relocation> + <pattern>okhttp3</pattern> + <shadedPattern>me.lucko.spark.lib.okhttp3</shadedPattern> + </relocation> + </relocations> + </configuration> + </execution> + </executions> + </plugin> + <plugin> + <groupId>org.codehaus.mojo</groupId> + <artifactId>templating-maven-plugin</artifactId> + <version>1.0.0</version> + <executions> + <execution> + <id>filter-src</id> + <goals> + <goal>filter-sources</goal> + </goals> + </execution> + </executions> + </plugin> + </plugins> + </build> + + <dependencies> + <!-- common --> + <dependency> + <groupId>me.lucko</groupId> + <artifactId>spark-common</artifactId> + <version>${project.version}</version> + <scope>compile</scope> + </dependency> + + <!-- Sponge --> + <dependency> + <groupId>org.spongepowered</groupId> + <artifactId>spongeapi</artifactId> + <version>8.0.0-SNAPSHOT</version> + <scope>provided</scope> + </dependency> + </dependencies> + + <repositories> + <repository> + <id>sponge-repo</id> + <url>https://repo.spongepowered.org/maven</url> + </repository> + </repositories> + +</project> |