Skip to content

Instantly share code, notes, and snippets.

@Exerosis
Created February 17, 2018 22:02
Show Gist options
  • Save Exerosis/551ec9f7ac4d085b59086b77b83d79df to your computer and use it in GitHub Desktop.
Save Exerosis/551ec9f7ac4d085b59086b77b83d79df to your computer and use it in GitHub Desktop.
<repositories>
<repository>
<id>spigot-repo</id>
<url>https://hub.spigotmc.org/nexus/content/repositories/snapshots/</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>org.spigotmc</groupId>
<artifactId>spigot</artifactId>
<version>1.12.2-R0.1-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
</dependencies>
<properties>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
</properties>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.1.0</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<outputFile>${project.basedir}/Server/plugins/${project.artifactId}.jar</outputFile>
<minimizeJar>true</minimizeJar>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>ru.yaal.maven</groupId>
<artifactId>write-text-files-maven-plugin</artifactId>
<version>1.1</version>
<executions>
<execution>
<id>inject-plugin-yml</id>
<phase>prepare-package</phase>
<goals>
<goal>write-text-files</goal>
</goals>
<configuration>
<charset>UTF-8</charset>
<files>
<file>
<path>${project.build.directory}/classes/plugin.yml</path>
<lines>
<line>name: ${project.artifactId}</line>
<line>version: ${project.version}</line>
<line>main: ${project.groupId}.Main</line>
</lines>
</file>
</files>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment