diff options
author | Luck <git@lucko.me> | 2018-05-27 01:02:01 +0100 |
---|---|---|
committer | Luck <git@lucko.me> | 2018-05-27 01:02:01 +0100 |
commit | b543b763201431a275e203d4834d75011dad2168 (patch) | |
tree | 5d72052ea157f8bf68b9251dd277b4d99379e56d /universal/pom.xml | |
parent | 429eeb35876576d861404cd199b6e9763fc4e5b0 (diff) | |
download | spark-b543b763201431a275e203d4834d75011dad2168.tar.gz spark-b543b763201431a275e203d4834d75011dad2168.tar.bz2 spark-b543b763201431a275e203d4834d75011dad2168.zip |
Build a universal plugin jar
Diffstat (limited to 'universal/pom.xml')
-rw-r--r-- | universal/pom.xml | 78 |
1 files changed, 78 insertions, 0 deletions
diff --git a/universal/pom.xml b/universal/pom.xml new file mode 100644 index 0000000..ad6fb74 --- /dev/null +++ b/universal/pom.xml @@ -0,0 +1,78 @@ +<?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-universal</artifactId> + <packaging>jar</packaging> + + <build> + <defaultGoal>clean package</defaultGoal> + <finalName>spark</finalName> + <plugins> + <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> + </plugins> + </build> + + <dependencies> + <dependency> + <groupId>me.lucko</groupId> + <artifactId>spark-common</artifactId> + <version>${project.version}</version> + <scope>compile</scope> + </dependency> + + <dependency> + <groupId>me.lucko</groupId> + <artifactId>spark-bukkit</artifactId> + <version>1.0-SNAPSHOT</version> + <scope>compile</scope> + </dependency> + <dependency> + <groupId>me.lucko</groupId> + <artifactId>spark-bungeecord</artifactId> + <version>1.0-SNAPSHOT</version> + <scope>compile</scope> + </dependency> + <dependency> + <groupId>me.lucko</groupId> + <artifactId>spark-sponge</artifactId> + <version>1.0-SNAPSHOT</version> + <scope>compile</scope> + </dependency> + </dependencies> + +</project> |