mirror of
https://github.com/GeorgH93/Minepacks.git
synced 2024-11-24 12:25:25 +01:00
Convert to multi module build
This commit is contained in:
parent
384393478c
commit
1a69bd6e62
4
.gitignore
vendored
4
.gitignore
vendored
@ -55,7 +55,9 @@ Temporary Items
|
|||||||
*.classpath
|
*.classpath
|
||||||
*.project
|
*.project
|
||||||
*.prefs
|
*.prefs
|
||||||
/target/
|
target/
|
||||||
/bin/
|
/bin/
|
||||||
*.iml
|
*.iml
|
||||||
/.idea/
|
/.idea/
|
||||||
|
|
||||||
|
.flattened-pom.xml
|
@ -1,10 +1,10 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<project version="4">
|
<project version="4">
|
||||||
<component name="SqlDialectMappings">
|
<component name="SqlDialectMappings">
|
||||||
<file url="file://$PROJECT_DIR$/src/at/pcgamingfreaks/Minepacks/Bukkit/Database/Migration/SQLtoFilesMigration.java" dialect="GenericSQL" />
|
<file url="file://$PROJECT_DIR$/Minepacks/src/at/pcgamingfreaks/Minepacks/Bukkit/Database/Migration/SQLtoFilesMigration.java" dialect="GenericSQL" />
|
||||||
<file url="file://$PROJECT_DIR$/src/at/pcgamingfreaks/Minepacks/Bukkit/Database/Migration/SQLtoSQLMigration.java" dialect="GenericSQL" />
|
<file url="file://$PROJECT_DIR$/Minepacks/src/at/pcgamingfreaks/Minepacks/Bukkit/Database/Migration/SQLtoSQLMigration.java" dialect="GenericSQL" />
|
||||||
<file url="file://$PROJECT_DIR$/src/at/pcgamingfreaks/Minepacks/Bukkit/Database/MySQL.java" dialect="MySQL" />
|
<file url="file://$PROJECT_DIR$/Minepacks/src/at/pcgamingfreaks/Minepacks/Bukkit/Database/MySQL.java" dialect="MySQL" />
|
||||||
<file url="file://$PROJECT_DIR$/src/at/pcgamingfreaks/Minepacks/Bukkit/Database/SQL.java" dialect="GenericSQL" />
|
<file url="file://$PROJECT_DIR$/Minepacks/src/at/pcgamingfreaks/Minepacks/Bukkit/Database/SQL.java" dialect="GenericSQL" />
|
||||||
<file url="file://$PROJECT_DIR$/src/at/pcgamingfreaks/Minepacks/Bukkit/Database/SQLite.java" dialect="SQLite" />
|
<file url="file://$PROJECT_DIR$/Minepacks/src/at/pcgamingfreaks/Minepacks/Bukkit/Database/SQLite.java" dialect="SQLite" />
|
||||||
</component>
|
</component>
|
||||||
</project>
|
</project>
|
61
Minepacks-API/README.md
Normal file
61
Minepacks-API/README.md
Normal file
@ -0,0 +1,61 @@
|
|||||||
|
<!-- Variables (this block will not be visible in the readme -->
|
||||||
|
[banner]: https://pcgamingfreaks.at/images/minepacks.png
|
||||||
|
[spigot]: https://www.spigotmc.org/resources/minepacks.19286/
|
||||||
|
[license]: https://github.com/GeorgH93/Minepacks/blob/master/LICENSE
|
||||||
|
[licenseImg]: https://img.shields.io/github/license/GeorgH93/Minepacks.svg
|
||||||
|
[ci]: https://ci.pcgamingfreaks.at/job/Minepacks%20API/
|
||||||
|
[ciImg]: https://ci.pcgamingfreaks.at/job/Minepacks%20API/badge/icon
|
||||||
|
[apiVersionImg]: https://img.shields.io/badge/dynamic/xml.svg?label=api-version&query=%2F%2Frelease[1]&url=https%3A%2F%2Frepo.pcgamingfreaks.at%2Frepository%2Fmaven-releases%2Fat%2Fpcgamingfreaks%2FMinepacks-API%2Fmaven-metadata.xml
|
||||||
|
[apiJavaDoc]: https://ci.pcgamingfreaks.at/job/Minepacks%20API/javadoc/
|
||||||
|
[apiBuilds]: https://ci.pcgamingfreaks.at/job/Minepacks%20API/
|
||||||
|
<!-- End of variables block -->
|
||||||
|
|
||||||
|
[![Logo][banner]][spigot]
|
||||||
|
|
||||||
|
This branch holds the API for the Minepacks plugin.
|
||||||
|
|
||||||
|
[![ciImg]][ci] [![apiVersionImg]][apiJavaDoc] [![licenseImg]][license]
|
||||||
|
|
||||||
|
## Adding it to your plugin
|
||||||
|
### Maven
|
||||||
|
The API is available through maven.
|
||||||
|
#### Repository:
|
||||||
|
```
|
||||||
|
<repository>
|
||||||
|
<id>pcgf-repo</id>
|
||||||
|
<url>https://repo.pcgamingfreaks.at/repository/maven-everything</url>
|
||||||
|
</repository>
|
||||||
|
```
|
||||||
|
#### Dependency:
|
||||||
|
```
|
||||||
|
<!-- Minepacks API -->
|
||||||
|
<dependency>
|
||||||
|
<groupId>at.pcgamingfreaks</groupId>
|
||||||
|
<artifactId>Minepacks-API</artifactId>
|
||||||
|
<version>2.2</version><!-- Check api-version shield for newest version -->
|
||||||
|
</dependency>
|
||||||
|
```
|
||||||
|
|
||||||
|
### Build from source:
|
||||||
|
```
|
||||||
|
git clone https://github.com/GeorgH93/Minepacks.git
|
||||||
|
cd Minepacks
|
||||||
|
mvn -pl Minepacks-API
|
||||||
|
```
|
||||||
|
|
||||||
|
### Get access to the API:
|
||||||
|
```java
|
||||||
|
public MinepacksPlugin getMinepacks() {
|
||||||
|
Plugin bukkitPlugin = Bukkit.getPluginManager().getPlugin("Minepacks");
|
||||||
|
if(!(bukkitPlugin instanceof MinepacksPlugin)) {
|
||||||
|
// Do something if Minepacks is not available
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
return (MinepacksPlugin) bukkitPlugin;
|
||||||
|
}
|
||||||
|
```
|
||||||
|
You can now use the returned `MinepacksPlugin` object to interact with the Minepacks plugin.
|
||||||
|
|
||||||
|
## Links
|
||||||
|
* [JavaDoc][apiJavaDoc]
|
||||||
|
* [API Build Server][apiBuilds]
|
60
Minepacks-API/pom.xml
Normal file
60
Minepacks-API/pom.xml
Normal file
@ -0,0 +1,60 @@
|
|||||||
|
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||||
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
<artifactId>Minepacks-API</artifactId>
|
||||||
|
<parent>
|
||||||
|
<artifactId>Minepacks-Parent</artifactId>
|
||||||
|
<groupId>at.pcgamingfreaks</groupId>
|
||||||
|
<version>${revision}</version>
|
||||||
|
<relativePath>..</relativePath>
|
||||||
|
</parent>
|
||||||
|
<version>${revision}</version>
|
||||||
|
<packaging>jar</packaging>
|
||||||
|
|
||||||
|
<name>Minepacks-API</name>
|
||||||
|
<description>API for the Bukkit/Spigot plugin Minepacks.</description>
|
||||||
|
|
||||||
|
<dependencies>
|
||||||
|
<dependency>
|
||||||
|
<groupId>at.pcgamingfreaks</groupId>
|
||||||
|
<artifactId>PluginLib</artifactId>
|
||||||
|
<version>1.0.17-SNAPSHOT</version>
|
||||||
|
<scope>provided</scope>
|
||||||
|
</dependency>
|
||||||
|
</dependencies>
|
||||||
|
|
||||||
|
<build>
|
||||||
|
<defaultGoal>clean install</defaultGoal>
|
||||||
|
<sourceDirectory>src</sourceDirectory>
|
||||||
|
<plugins>
|
||||||
|
<!-- Creates a jar with the sources (for maven repo) -->
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
<artifactId>maven-source-plugin</artifactId>
|
||||||
|
<version>2.2.1</version>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<id>attach-sources</id>
|
||||||
|
<goals>
|
||||||
|
<goal>jar</goal>
|
||||||
|
</goals>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
|
<!-- Creates a jar with the javadoc (for maven repo) -->
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
<artifactId>maven-javadoc-plugin</artifactId>
|
||||||
|
<version>3.1.1</version>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<id>attach-javadocs</id>
|
||||||
|
<goals>
|
||||||
|
<goal>jar</goal>
|
||||||
|
</goals>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
|
</build>
|
||||||
|
</project>
|
310
Minepacks/pom.xml
Normal file
310
Minepacks/pom.xml
Normal file
@ -0,0 +1,310 @@
|
|||||||
|
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||||
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
<artifactId>Minepacks</artifactId>
|
||||||
|
<parent>
|
||||||
|
<artifactId>Minepacks-Parent</artifactId>
|
||||||
|
<groupId>at.pcgamingfreaks</groupId>
|
||||||
|
<version>${revision}</version>
|
||||||
|
<relativePath>..</relativePath>
|
||||||
|
</parent>
|
||||||
|
<version>${revision}</version>
|
||||||
|
<packaging>jar</packaging>
|
||||||
|
|
||||||
|
<name>Minepacks</name>
|
||||||
|
<description>Minepacks is a backpack plugin with different backpack sizes, multi language support and SQLite and MySQL storage support.</description>
|
||||||
|
<url>https://www.spigotmc.org/resources/19286/</url>
|
||||||
|
<inceptionYear>2014</inceptionYear>
|
||||||
|
|
||||||
|
<properties>
|
||||||
|
<author>GeorgH93</author>
|
||||||
|
<version>${project.version}</version>
|
||||||
|
<dependencies>depend: [ PCGF_PluginLib ]</dependencies>
|
||||||
|
<mainClass>${project.groupId}.${project.artifactId}.Bukkit.${project.artifactId}</mainClass>
|
||||||
|
</properties>
|
||||||
|
|
||||||
|
<dependencies>
|
||||||
|
<!-- Minepacks API -->
|
||||||
|
<dependency>
|
||||||
|
<groupId>at.pcgamingfreaks</groupId>
|
||||||
|
<artifactId>Minepacks-API</artifactId>
|
||||||
|
<version>${revision}</version>
|
||||||
|
</dependency>
|
||||||
|
<!-- PCGF Plugin Lib -->
|
||||||
|
<dependency>
|
||||||
|
<groupId>at.pcgamingfreaks</groupId>
|
||||||
|
<artifactId>PluginLib</artifactId>
|
||||||
|
<version>1.0.21-SNAPSHOT</version>
|
||||||
|
</dependency>
|
||||||
|
<!-- BadRabbit -->
|
||||||
|
<dependency>
|
||||||
|
<groupId>at.pcgamingfreaks</groupId>
|
||||||
|
<artifactId>BadRabbit-Bukkit</artifactId>
|
||||||
|
<version>1.4</version>
|
||||||
|
</dependency>
|
||||||
|
<!-- Lombok -->
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.projectlombok</groupId>
|
||||||
|
<artifactId>lombok</artifactId>
|
||||||
|
<version>1.18.10</version>
|
||||||
|
<scope>provided</scope>
|
||||||
|
</dependency>
|
||||||
|
</dependencies>
|
||||||
|
|
||||||
|
<build>
|
||||||
|
<defaultGoal>clean package</defaultGoal>
|
||||||
|
<sourceDirectory>src</sourceDirectory>
|
||||||
|
<testSourceDirectory>test/src</testSourceDirectory>
|
||||||
|
<resources>
|
||||||
|
<resource>
|
||||||
|
<directory>resources</directory>
|
||||||
|
<filtering>true</filtering>
|
||||||
|
</resource>
|
||||||
|
<resource>
|
||||||
|
<directory>./</directory>
|
||||||
|
<includes>
|
||||||
|
<include>LICENSE</include>
|
||||||
|
</includes>
|
||||||
|
</resource>
|
||||||
|
<resource>
|
||||||
|
<directory>${project.build.directory}/generated-resources</directory>
|
||||||
|
</resource>
|
||||||
|
</resources>
|
||||||
|
<plugins>
|
||||||
|
<!-- Resolve lombok -->
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.projectlombok</groupId>
|
||||||
|
<artifactId>lombok-maven-plugin</artifactId>
|
||||||
|
<version>1.18.10.0</version>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<phase>generate-sources</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>delombok</goal>
|
||||||
|
</goals>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
|
<!-- Bundle the API into the JAR -->
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
<artifactId>maven-shade-plugin</artifactId>
|
||||||
|
<version>3.2.1</version>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<phase>package</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>shade</goal>
|
||||||
|
</goals>
|
||||||
|
<configuration>
|
||||||
|
<createDependencyReducedPom>false</createDependencyReducedPom>
|
||||||
|
<minimizeJar>false</minimizeJar>
|
||||||
|
<artifactSet>
|
||||||
|
<includes>
|
||||||
|
<include>at.pcgamingfreaks:Minepacks-API</include>
|
||||||
|
</includes>
|
||||||
|
</artifactSet>
|
||||||
|
</configuration>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
|
</build>
|
||||||
|
|
||||||
|
<profiles>
|
||||||
|
<profile>
|
||||||
|
<id>ExcludeBadRabbit</id>
|
||||||
|
<activation>
|
||||||
|
<activeByDefault>true</activeByDefault>
|
||||||
|
</activation>
|
||||||
|
<build>
|
||||||
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<artifactId>maven-jar-plugin</artifactId>
|
||||||
|
<version>3.1.2</version>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<id>default-jar</id>
|
||||||
|
<phase>package</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>jar</goal>
|
||||||
|
</goals>
|
||||||
|
<configuration>
|
||||||
|
<excludes>
|
||||||
|
<exclude>at/pcgamingfreaks/Minepacks/Bukkit/MinepacksBadRabbit.class</exclude>
|
||||||
|
</excludes>
|
||||||
|
</configuration>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
|
</build>
|
||||||
|
</profile>
|
||||||
|
<profile>
|
||||||
|
<id>Standalone</id>
|
||||||
|
<activation>
|
||||||
|
<activeByDefault>false</activeByDefault>
|
||||||
|
</activation>
|
||||||
|
<properties>
|
||||||
|
<version>${project.version}-Standalone</version>
|
||||||
|
<dependencies/>
|
||||||
|
<mainClass>${project.groupId}.${project.artifactId}Standalone.Bukkit.${project.artifactId}</mainClass>
|
||||||
|
</properties>
|
||||||
|
<build>
|
||||||
|
<plugins>
|
||||||
|
<!-- Shades some required libs into the final jar -->
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
<artifactId>maven-shade-plugin</artifactId>
|
||||||
|
<version>3.2.1</version>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<phase>package</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>shade</goal>
|
||||||
|
</goals>
|
||||||
|
<configuration>
|
||||||
|
<shadedArtifactAttached>true</shadedArtifactAttached>
|
||||||
|
<shadedClassifierName>Standalone</shadedClassifierName>
|
||||||
|
<createDependencyReducedPom>false</createDependencyReducedPom>
|
||||||
|
<minimizeJar>true</minimizeJar>
|
||||||
|
<outputDirectory>${project.build.directory}</outputDirectory>
|
||||||
|
<artifactSet>
|
||||||
|
<includes>
|
||||||
|
<include>at.pcgamingfreaks:Minepacks-API</include>
|
||||||
|
<include>at.pcgamingfreaks:PluginLib</include>
|
||||||
|
</includes>
|
||||||
|
</artifactSet>
|
||||||
|
<relocations>
|
||||||
|
<relocation>
|
||||||
|
<pattern>at.pcgf.libs</pattern>
|
||||||
|
<shadedPattern>at.pcgamingfreaks.MinepacksStandalone.libs</shadedPattern>
|
||||||
|
</relocation>
|
||||||
|
<relocation>
|
||||||
|
<pattern>at.pcgamingfreaks.Minepacks</pattern>
|
||||||
|
<shadedPattern>at.pcgamingfreaks.MinepacksStandalone</shadedPattern>
|
||||||
|
<excludes>
|
||||||
|
<exclude>at.pcgamingfreaks.Minepacks.Bukkit.API.*</exclude>
|
||||||
|
</excludes>
|
||||||
|
</relocation>
|
||||||
|
<relocation>
|
||||||
|
<pattern>at.pcgamingfreaks</pattern>
|
||||||
|
<shadedPattern>at.pcgamingfreaks.MinepacksStandalone.libs.at.pcgamingfreaks</shadedPattern>
|
||||||
|
<excludes>
|
||||||
|
<exclude>at.pcgamingfreaks.Minepacks.Bukkit.API.Backpack</exclude>
|
||||||
|
<exclude>at.pcgamingfreaks.Minepacks.Bukkit.API.Callback</exclude>
|
||||||
|
<exclude>at.pcgamingfreaks.Minepacks.Bukkit.API.MinepacksPlugin</exclude>
|
||||||
|
<exclude>at.pcgamingfreaks.Minepacks.Bukkit.API.MinepacksCommandManager</exclude>
|
||||||
|
</excludes>
|
||||||
|
</relocation>
|
||||||
|
</relocations>
|
||||||
|
<filters>
|
||||||
|
<filter>
|
||||||
|
<artifact>at.pcgamingfreaks:PluginLib</artifact>
|
||||||
|
<excludes>
|
||||||
|
<exclude>*.yml</exclude>
|
||||||
|
</excludes>
|
||||||
|
</filter>
|
||||||
|
</filters>
|
||||||
|
</configuration>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
|
<!-- Replace all the PCGF-PluginLib code with alternatives -->
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.sonatype.plugins</groupId>
|
||||||
|
<artifactId>munge-maven-plugin</artifactId>
|
||||||
|
<version>1.0</version>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<id>munge</id>
|
||||||
|
<phase>generate-sources</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>munge</goal>
|
||||||
|
</goals>
|
||||||
|
<configuration>
|
||||||
|
<symbols>STANDALONE</symbols>
|
||||||
|
</configuration>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
|
</build>
|
||||||
|
</profile>
|
||||||
|
<profile>
|
||||||
|
<id>Release</id>
|
||||||
|
<activation>
|
||||||
|
<activeByDefault>false</activeByDefault>
|
||||||
|
</activation>
|
||||||
|
<properties>
|
||||||
|
<version>${project.version}-Release</version>
|
||||||
|
<dependencies>softdepend: [ PCGF_PluginLib ]</dependencies>
|
||||||
|
<mainClass>${project.groupId}.${project.artifactId}.Bukkit.${project.artifactId}BadRabbit</mainClass>
|
||||||
|
</properties>
|
||||||
|
<dependencies>
|
||||||
|
<dependency>
|
||||||
|
<groupId>at.pcgamingfreaks</groupId>
|
||||||
|
<artifactId>Minepacks</artifactId>
|
||||||
|
<version>${project.version}</version>
|
||||||
|
<classifier>Standalone</classifier>
|
||||||
|
</dependency>
|
||||||
|
</dependencies>
|
||||||
|
<build>
|
||||||
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
<artifactId>maven-shade-plugin</artifactId>
|
||||||
|
<version>3.2.1</version>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<phase>package</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>shade</goal>
|
||||||
|
</goals>
|
||||||
|
<configuration>
|
||||||
|
<shadedArtifactAttached>true</shadedArtifactAttached>
|
||||||
|
<shadedClassifierName>Release</shadedClassifierName>
|
||||||
|
<createDependencyReducedPom>false</createDependencyReducedPom>
|
||||||
|
<minimizeJar>false</minimizeJar>
|
||||||
|
<artifactSet>
|
||||||
|
<includes>
|
||||||
|
<include>at.pcgamingfreaks:Minepacks-API</include>
|
||||||
|
<include>at.pcgamingfreaks:BadRabbit</include>
|
||||||
|
<include>at.pcgamingfreaks:Minepacks</include>
|
||||||
|
</includes>
|
||||||
|
</artifactSet>
|
||||||
|
<relocations>
|
||||||
|
<relocation>
|
||||||
|
<pattern>at.pcgamingfreaks.BadRabbit</pattern>
|
||||||
|
<shadedPattern>at.pcgamingfreaks.Minepacks</shadedPattern>
|
||||||
|
</relocation>
|
||||||
|
</relocations>
|
||||||
|
</configuration>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.codehaus.mojo</groupId>
|
||||||
|
<artifactId>license-maven-plugin</artifactId>
|
||||||
|
<version>1.20</version>
|
||||||
|
<configuration>
|
||||||
|
<excludedScopes>test,provided,system</excludedScopes>
|
||||||
|
<generateBundle>true</generateBundle>
|
||||||
|
<licensesOutputFile>${project.build.directory}/generated-resources/licenses-THIRD-PARTY.xml</licensesOutputFile>
|
||||||
|
</configuration>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<id>add-third-party</id>
|
||||||
|
<phase>generate-resources</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>add-third-party</goal>
|
||||||
|
<goal>download-licenses</goal>
|
||||||
|
</goals>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
|
</build>
|
||||||
|
</profile>
|
||||||
|
</profiles>
|
||||||
|
</project>
|
314
pom.xml
314
pom.xml
@ -2,8 +2,9 @@
|
|||||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<groupId>at.pcgamingfreaks</groupId>
|
<groupId>at.pcgamingfreaks</groupId>
|
||||||
<artifactId>Minepacks</artifactId>
|
<artifactId>Minepacks-Parent</artifactId>
|
||||||
<version>2.2-BETA</version>
|
<version>${revision}</version>
|
||||||
|
<packaging>pom</packaging>
|
||||||
|
|
||||||
<scm>
|
<scm>
|
||||||
<connection>scm:git:git@github.com:GeorgH93/Minepacks.git</connection>
|
<connection>scm:git:git@github.com:GeorgH93/Minepacks.git</connection>
|
||||||
@ -19,7 +20,7 @@
|
|||||||
<url>https://ci.pcgamingfreaks.at/job/Minepacks/</url>
|
<url>https://ci.pcgamingfreaks.at/job/Minepacks/</url>
|
||||||
</ciManagement>
|
</ciManagement>
|
||||||
|
|
||||||
<name>Minepacks</name>
|
<name>Minepacks-Parent</name>
|
||||||
<description>Minepacks is a backpack plugin with different backpack sizes, multi language support and SQLite and MySQL storage support.</description>
|
<description>Minepacks is a backpack plugin with different backpack sizes, multi language support and SQLite and MySQL storage support.</description>
|
||||||
<url>https://www.spigotmc.org/resources/19286/</url>
|
<url>https://www.spigotmc.org/resources/19286/</url>
|
||||||
<inceptionYear>2014</inceptionYear>
|
<inceptionYear>2014</inceptionYear>
|
||||||
@ -31,10 +32,7 @@
|
|||||||
</license>
|
</license>
|
||||||
</licenses>
|
</licenses>
|
||||||
<properties>
|
<properties>
|
||||||
<author>GeorgH93</author>
|
<revision>2.2-BETA</revision>
|
||||||
<version>${project.version}</version>
|
|
||||||
<dependencies>depend: [ PCGF_PluginLib ]</dependencies>
|
|
||||||
<mainClass>${project.groupId}.${project.artifactId}.Bukkit.${project.artifactId}</mainClass>
|
|
||||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||||
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
||||||
</properties>
|
</properties>
|
||||||
@ -51,22 +49,6 @@
|
|||||||
</repositories>
|
</repositories>
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<!-- Minepacks API -->
|
|
||||||
<dependency>
|
|
||||||
<groupId>at.pcgamingfreaks</groupId>
|
|
||||||
<artifactId>Minepacks-API</artifactId>
|
|
||||||
<version>2.2-SNAPSHOT</version>
|
|
||||||
<exclusions>
|
|
||||||
<exclusion>
|
|
||||||
<groupId>org.bukkit</groupId>
|
|
||||||
<artifactId>bukkit</artifactId>
|
|
||||||
</exclusion>
|
|
||||||
<exclusion>
|
|
||||||
<groupId>at.pcgamingfreaks</groupId>
|
|
||||||
<artifactId>PluginLib</artifactId>
|
|
||||||
</exclusion>
|
|
||||||
</exclusions>
|
|
||||||
</dependency>
|
|
||||||
<!-- Bukkit -->
|
<!-- Bukkit -->
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.bukkit</groupId>
|
<groupId>org.bukkit</groupId>
|
||||||
@ -74,46 +56,10 @@
|
|||||||
<version>1.15.2-R0.1-SNAPSHOT</version>
|
<version>1.15.2-R0.1-SNAPSHOT</version>
|
||||||
<scope>provided</scope>
|
<scope>provided</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
<!-- PCGF Plugin Lib -->
|
|
||||||
<dependency>
|
|
||||||
<groupId>at.pcgamingfreaks</groupId>
|
|
||||||
<artifactId>PluginLib</artifactId>
|
|
||||||
<version>1.0.21-SNAPSHOT</version>
|
|
||||||
</dependency>
|
|
||||||
<!-- BadRabbit -->
|
|
||||||
<dependency>
|
|
||||||
<groupId>at.pcgamingfreaks</groupId>
|
|
||||||
<artifactId>BadRabbit-Bukkit</artifactId>
|
|
||||||
<version>1.4</version>
|
|
||||||
</dependency>
|
|
||||||
<!-- Lombok -->
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.projectlombok</groupId>
|
|
||||||
<artifactId>lombok</artifactId>
|
|
||||||
<version>1.18.10</version>
|
|
||||||
<scope>provided</scope>
|
|
||||||
</dependency>
|
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
<defaultGoal>clean package</defaultGoal>
|
<defaultGoal>clean package</defaultGoal>
|
||||||
<sourceDirectory>src</sourceDirectory>
|
|
||||||
<testSourceDirectory>test/src</testSourceDirectory>
|
|
||||||
<resources>
|
|
||||||
<resource>
|
|
||||||
<directory>resources</directory>
|
|
||||||
<filtering>true</filtering>
|
|
||||||
</resource>
|
|
||||||
<resource>
|
|
||||||
<directory>./</directory>
|
|
||||||
<includes>
|
|
||||||
<include>LICENSE</include>
|
|
||||||
</includes>
|
|
||||||
</resource>
|
|
||||||
<resource>
|
|
||||||
<directory>${project.build.directory}/generated-resources</directory>
|
|
||||||
</resource>
|
|
||||||
</resources>
|
|
||||||
<plugins>
|
<plugins>
|
||||||
<plugin>
|
<plugin>
|
||||||
<artifactId>maven-compiler-plugin</artifactId>
|
<artifactId>maven-compiler-plugin</artifactId>
|
||||||
@ -123,242 +69,50 @@
|
|||||||
<target>1.8</target>
|
<target>1.8</target>
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
<!-- Resolve lombok -->
|
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.projectlombok</groupId>
|
<groupId>org.codehaus.mojo</groupId>
|
||||||
<artifactId>lombok-maven-plugin</artifactId>
|
<artifactId>flatten-maven-plugin</artifactId>
|
||||||
<version>1.18.10.0</version>
|
<version>1.2.1</version>
|
||||||
|
<configuration>
|
||||||
|
<updatePomFile>true</updatePomFile>
|
||||||
|
<pomElements>
|
||||||
|
<description/>
|
||||||
|
<inceptionYear/>
|
||||||
|
<organization/>
|
||||||
|
<scm/>
|
||||||
|
<developers/>
|
||||||
|
<contributors/>
|
||||||
|
<mailingLists/>
|
||||||
|
<issueManagement/>
|
||||||
|
<repositories/>
|
||||||
|
<ciManagement/>
|
||||||
|
<!--<url/><pluginRepositories/><distributionManagement/>-->
|
||||||
|
</pomElements>
|
||||||
|
</configuration>
|
||||||
<executions>
|
<executions>
|
||||||
<execution>
|
<execution>
|
||||||
<phase>generate-sources</phase>
|
<id>flatten</id>
|
||||||
|
<phase>process-resources</phase>
|
||||||
<goals>
|
<goals>
|
||||||
<goal>delombok</goal>
|
<goal>flatten</goal>
|
||||||
</goals>
|
</goals>
|
||||||
</execution>
|
</execution>
|
||||||
</executions>
|
|
||||||
</plugin>
|
|
||||||
<!-- Bundle the API into the JAR -->
|
|
||||||
<plugin>
|
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
|
||||||
<artifactId>maven-shade-plugin</artifactId>
|
|
||||||
<version>3.2.1</version>
|
|
||||||
<executions>
|
|
||||||
<execution>
|
<execution>
|
||||||
<phase>package</phase>
|
<id>flatten.clean</id>
|
||||||
|
<phase>clean</phase>
|
||||||
<goals>
|
<goals>
|
||||||
<goal>shade</goal>
|
<goal>clean</goal>
|
||||||
</goals>
|
</goals>
|
||||||
<configuration>
|
|
||||||
<createDependencyReducedPom>false</createDependencyReducedPom>
|
|
||||||
<minimizeJar>false</minimizeJar>
|
|
||||||
<artifactSet>
|
|
||||||
<includes>
|
|
||||||
<include>at.pcgamingfreaks:Minepacks-API</include>
|
|
||||||
</includes>
|
|
||||||
</artifactSet>
|
|
||||||
</configuration>
|
|
||||||
</execution>
|
</execution>
|
||||||
</executions>
|
</executions>
|
||||||
</plugin>
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
|
|
||||||
<profiles>
|
<modules>
|
||||||
<profile>
|
<module>Minepacks-API</module>
|
||||||
<id>ExcludeBadRabbit</id>
|
<module>Minepacks</module>
|
||||||
<activation>
|
</modules>
|
||||||
<activeByDefault>true</activeByDefault>
|
|
||||||
</activation>
|
|
||||||
<build>
|
|
||||||
<plugins>
|
|
||||||
<plugin>
|
|
||||||
<artifactId>maven-jar-plugin</artifactId>
|
|
||||||
<version>3.1.2</version>
|
|
||||||
<executions>
|
|
||||||
<execution>
|
|
||||||
<id>default-jar</id>
|
|
||||||
<phase>package</phase>
|
|
||||||
<goals>
|
|
||||||
<goal>jar</goal>
|
|
||||||
</goals>
|
|
||||||
<configuration>
|
|
||||||
<excludes>
|
|
||||||
<exclude>at/pcgamingfreaks/Minepacks/Bukkit/MinepacksBadRabbit.class</exclude>
|
|
||||||
</excludes>
|
|
||||||
</configuration>
|
|
||||||
</execution>
|
|
||||||
</executions>
|
|
||||||
</plugin>
|
|
||||||
</plugins>
|
|
||||||
</build>
|
|
||||||
</profile>
|
|
||||||
<profile>
|
|
||||||
<id>Standalone</id>
|
|
||||||
<activation>
|
|
||||||
<activeByDefault>false</activeByDefault>
|
|
||||||
</activation>
|
|
||||||
<properties>
|
|
||||||
<version>${project.version}-Standalone</version>
|
|
||||||
<dependencies/>
|
|
||||||
<mainClass>${project.groupId}.${project.artifactId}Standalone.Bukkit.${project.artifactId}</mainClass>
|
|
||||||
</properties>
|
|
||||||
<build>
|
|
||||||
<plugins>
|
|
||||||
<!-- Shades some required libs into the final jar -->
|
|
||||||
<plugin>
|
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
|
||||||
<artifactId>maven-shade-plugin</artifactId>
|
|
||||||
<version>3.2.1</version>
|
|
||||||
<executions>
|
|
||||||
<execution>
|
|
||||||
<phase>package</phase>
|
|
||||||
<goals>
|
|
||||||
<goal>shade</goal>
|
|
||||||
</goals>
|
|
||||||
<configuration>
|
|
||||||
<shadedArtifactAttached>true</shadedArtifactAttached>
|
|
||||||
<shadedClassifierName>Standalone</shadedClassifierName>
|
|
||||||
<createDependencyReducedPom>false</createDependencyReducedPom>
|
|
||||||
<minimizeJar>true</minimizeJar>
|
|
||||||
<outputDirectory>${project.build.directory}</outputDirectory>
|
|
||||||
<artifactSet>
|
|
||||||
<includes>
|
|
||||||
<include>at.pcgamingfreaks:Minepacks-API</include>
|
|
||||||
<include>at.pcgamingfreaks:PluginLib</include>
|
|
||||||
</includes>
|
|
||||||
</artifactSet>
|
|
||||||
<relocations>
|
|
||||||
<relocation>
|
|
||||||
<pattern>at.pcgf.libs</pattern>
|
|
||||||
<shadedPattern>at.pcgamingfreaks.MinepacksStandalone.libs</shadedPattern>
|
|
||||||
</relocation>
|
|
||||||
<relocation>
|
|
||||||
<pattern>at.pcgamingfreaks.Minepacks</pattern>
|
|
||||||
<shadedPattern>at.pcgamingfreaks.MinepacksStandalone</shadedPattern>
|
|
||||||
<excludes>
|
|
||||||
<exclude>at.pcgamingfreaks.Minepacks.Bukkit.API.*</exclude>
|
|
||||||
</excludes>
|
|
||||||
</relocation>
|
|
||||||
<relocation>
|
|
||||||
<pattern>at.pcgamingfreaks</pattern>
|
|
||||||
<shadedPattern>at.pcgamingfreaks.MinepacksStandalone.libs.at.pcgamingfreaks</shadedPattern>
|
|
||||||
<excludes>
|
|
||||||
<exclude>at.pcgamingfreaks.Minepacks.Bukkit.API.Backpack</exclude>
|
|
||||||
<exclude>at.pcgamingfreaks.Minepacks.Bukkit.API.Callback</exclude>
|
|
||||||
<exclude>at.pcgamingfreaks.Minepacks.Bukkit.API.MinepacksPlugin</exclude>
|
|
||||||
<exclude>at.pcgamingfreaks.Minepacks.Bukkit.API.MinepacksCommandManager</exclude>
|
|
||||||
</excludes>
|
|
||||||
</relocation>
|
|
||||||
</relocations>
|
|
||||||
<filters>
|
|
||||||
<filter>
|
|
||||||
<artifact>at.pcgamingfreaks:PluginLib</artifact>
|
|
||||||
<excludes>
|
|
||||||
<exclude>*.yml</exclude>
|
|
||||||
</excludes>
|
|
||||||
</filter>
|
|
||||||
</filters>
|
|
||||||
</configuration>
|
|
||||||
</execution>
|
|
||||||
</executions>
|
|
||||||
</plugin>
|
|
||||||
<!-- Replace all the PCGF-PluginLib code with alternatives -->
|
|
||||||
<plugin>
|
|
||||||
<groupId>org.sonatype.plugins</groupId>
|
|
||||||
<artifactId>munge-maven-plugin</artifactId>
|
|
||||||
<version>1.0</version>
|
|
||||||
<executions>
|
|
||||||
<execution>
|
|
||||||
<id>munge</id>
|
|
||||||
<phase>generate-sources</phase>
|
|
||||||
<goals>
|
|
||||||
<goal>munge</goal>
|
|
||||||
</goals>
|
|
||||||
<configuration>
|
|
||||||
<symbols>STANDALONE</symbols>
|
|
||||||
</configuration>
|
|
||||||
</execution>
|
|
||||||
</executions>
|
|
||||||
</plugin>
|
|
||||||
</plugins>
|
|
||||||
</build>
|
|
||||||
</profile>
|
|
||||||
<profile>
|
|
||||||
<id>Release</id>
|
|
||||||
<activation>
|
|
||||||
<activeByDefault>false</activeByDefault>
|
|
||||||
</activation>
|
|
||||||
<properties>
|
|
||||||
<version>${project.version}-Release</version>
|
|
||||||
<dependencies>softdepend: [ PCGF_PluginLib ]</dependencies>
|
|
||||||
<mainClass>${project.groupId}.${project.artifactId}.Bukkit.${project.artifactId}BadRabbit</mainClass>
|
|
||||||
</properties>
|
|
||||||
<dependencies>
|
|
||||||
<dependency>
|
|
||||||
<groupId>at.pcgamingfreaks</groupId>
|
|
||||||
<artifactId>Minepacks</artifactId>
|
|
||||||
<version>${project.version}</version>
|
|
||||||
<classifier>Standalone</classifier>
|
|
||||||
</dependency>
|
|
||||||
</dependencies>
|
|
||||||
<build>
|
|
||||||
<plugins>
|
|
||||||
<plugin>
|
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
|
||||||
<artifactId>maven-shade-plugin</artifactId>
|
|
||||||
<version>3.2.1</version>
|
|
||||||
<executions>
|
|
||||||
<execution>
|
|
||||||
<phase>package</phase>
|
|
||||||
<goals>
|
|
||||||
<goal>shade</goal>
|
|
||||||
</goals>
|
|
||||||
<configuration>
|
|
||||||
<shadedArtifactAttached>true</shadedArtifactAttached>
|
|
||||||
<shadedClassifierName>Release</shadedClassifierName>
|
|
||||||
<createDependencyReducedPom>false</createDependencyReducedPom>
|
|
||||||
<minimizeJar>false</minimizeJar>
|
|
||||||
<artifactSet>
|
|
||||||
<includes>
|
|
||||||
<include>at.pcgamingfreaks:Minepacks-API</include>
|
|
||||||
<include>at.pcgamingfreaks:BadRabbit</include>
|
|
||||||
<include>at.pcgamingfreaks:Minepacks</include>
|
|
||||||
</includes>
|
|
||||||
</artifactSet>
|
|
||||||
<relocations>
|
|
||||||
<relocation>
|
|
||||||
<pattern>at.pcgamingfreaks.BadRabbit</pattern>
|
|
||||||
<shadedPattern>at.pcgamingfreaks.Minepacks</shadedPattern>
|
|
||||||
</relocation>
|
|
||||||
</relocations>
|
|
||||||
</configuration>
|
|
||||||
</execution>
|
|
||||||
</executions>
|
|
||||||
</plugin>
|
|
||||||
<plugin>
|
|
||||||
<groupId>org.codehaus.mojo</groupId>
|
|
||||||
<artifactId>license-maven-plugin</artifactId>
|
|
||||||
<version>1.20</version>
|
|
||||||
<configuration>
|
|
||||||
<excludedScopes>test,provided,system</excludedScopes>
|
|
||||||
<generateBundle>true</generateBundle>
|
|
||||||
<licensesOutputFile>${project.build.directory}/generated-resources/licenses-THIRD-PARTY.xml</licensesOutputFile>
|
|
||||||
</configuration>
|
|
||||||
<executions>
|
|
||||||
<execution>
|
|
||||||
<id>add-third-party</id>
|
|
||||||
<phase>generate-resources</phase>
|
|
||||||
<goals>
|
|
||||||
<goal>add-third-party</goal>
|
|
||||||
<goal>download-licenses</goal>
|
|
||||||
</goals>
|
|
||||||
</execution>
|
|
||||||
</executions>
|
|
||||||
</plugin>
|
|
||||||
</plugins>
|
|
||||||
</build>
|
|
||||||
</profile>
|
|
||||||
</profiles>
|
|
||||||
|
|
||||||
<distributionManagement>
|
<distributionManagement>
|
||||||
<repository>
|
<repository>
|
||||||
|
Loading…
Reference in New Issue
Block a user