Set management and real pom section

This commit is contained in:
Flowsqy 2021-12-27 16:55:22 +01:00
parent 2294cce5a0
commit 9962be1231
2 changed files with 183 additions and 87 deletions

View File

@ -11,9 +11,110 @@
<artifactId>plugin</artifactId> <artifactId>plugin</artifactId>
<properties> <dependencies>
<maven.compiler.source>17</maven.compiler.source> <dependency>
<maven.compiler.target>17</maven.compiler.target> <groupId>org.spigotmc</groupId>
</properties> <artifactId>spigot-api</artifactId>
</dependency>
<dependency>
<groupId>com.github.MilkBowl</groupId>
<artifactId>VaultAPI</artifactId>
</dependency>
<dependency>
<groupId>fr.xephi</groupId>
<artifactId>authme</artifactId>
</dependency>
<dependency>
<groupId>com.plotsquared</groupId>
<artifactId>PlotSquared-Core</artifactId>
</dependency>
<dependency>
<groupId>com.github.rlf.uSkyBlock</groupId>
<artifactId>uSkyBlock-API</artifactId>
</dependency>
<dependency>
<groupId>com.wasteofplastic</groupId>
<artifactId>askyblock</artifactId>
</dependency>
<dependency>
<groupId>com.github.TechFortress</groupId>
<artifactId>GriefPrevention</artifactId>
</dependency>
<dependency>
<groupId>me.wiefferink</groupId>
<artifactId>areashop</artifactId>
</dependency>
<dependency>
<groupId>world.bentobox</groupId>
<artifactId>bentobox</artifactId>
</dependency>
<dependency>
<groupId>com.github.IntellectualSites.PlotSquared</groupId>
<artifactId>Core</artifactId>
</dependency>
<dependency>
<groupId>com.github.TownyAdvanced</groupId>
<artifactId>Towny</artifactId>
</dependency>
<dependency>
<groupId>pl.gnacik.islandworld</groupId>
<artifactId>IslandWorld</artifactId>
</dependency>
<!-- Only required for build to succeed ? -->
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
</dependency>
<!-- Shaded dependencies -->
<dependency>
<groupId>org.codemc.worldguardwrapper</groupId>
<artifactId>worldguardwrapper</artifactId>
</dependency>
<dependency>
<groupId>org.bstats</groupId>
<artifactId>bstats-bukkit</artifactId>
</dependency>
<dependency>
<groupId>com.zaxxer</groupId>
<artifactId>HikariCP</artifactId>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-jdk14</artifactId>
</dependency>
<dependency>
<groupId>org.inventivetalent</groupId>
<artifactId>reflectionhelper</artifactId>
</dependency>
</dependencies>
<build>
<resources>
<resource>
<directory>src/main/resources</directory>
<filtering>true</filtering>
</resource>
</resources>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
</plugin>
</plugins>
</build>
</project> </project>

161
pom.xml
View File

@ -204,90 +204,85 @@
</dependency> </dependency>
</dependencies> </dependencies>
</dependencyManagement> </dependencyManagement>
<build>
<resources>
<resource>
<directory>src/main/resources</directory>
<targetPath>.</targetPath>
<filtering>true</filtering>
</resource>
</resources>
<plugins> <build>
<plugin> <pluginManagement>
<groupId>org.apache.maven.plugins</groupId> <plugins>
<artifactId>maven-shade-plugin</artifactId> <plugin>
<version>3.2.2</version> <groupId>org.apache.maven.plugins</groupId>
<executions> <artifactId>maven-shade-plugin</artifactId>
<execution> <version>3.2.2</version>
<phase>package</phase> <executions>
<goals> <execution>
<goal>shade</goal> <phase>package</phase>
</goals> <goals>
</execution> <goal>shade</goal>
</executions> </goals>
<configuration> </execution>
<createDependencyReducedPom>false</createDependencyReducedPom> </executions>
<relocations> <configuration>
<relocation> <createDependencyReducedPom>false</createDependencyReducedPom>
<pattern>org.bstats</pattern> <relocations>
<shadedPattern>de.epiceric.shopchest.dependencies.bstats</shadedPattern> <relocation>
</relocation> <pattern>org.bstats</pattern>
<relocation> <shadedPattern>de.epiceric.shopchest.dependencies.bstats</shadedPattern>
<pattern>org.codemc.worldguardwrapper</pattern> </relocation>
<shadedPattern>de.epiceric.shopchest.dependencies.worldguardwrapper</shadedPattern> <relocation>
</relocation> <pattern>org.codemc.worldguardwrapper</pattern>
<relocation> <shadedPattern>de.epiceric.shopchest.dependencies.worldguardwrapper</shadedPattern>
<pattern>com.zaxxer.hikari</pattern> </relocation>
<shadedPattern>de.epiceric.shopchest.dependencies.hikari</shadedPattern> <relocation>
</relocation> <pattern>com.zaxxer.hikari</pattern>
<relocation> <shadedPattern>de.epiceric.shopchest.dependencies.hikari</shadedPattern>
<pattern>org.slf4j</pattern> </relocation>
<shadedPattern>de.epiceric.shopchest.dependencies.slf4j</shadedPattern> <relocation>
</relocation> <pattern>org.slf4j</pattern>
<relocation> <shadedPattern>de.epiceric.shopchest.dependencies.slf4j</shadedPattern>
<pattern>org.inventivetalent.reflection</pattern> </relocation>
<shadedPattern>de.epiceric.shopchest.dependencies.reflectionhelper</shadedPattern> <relocation>
</relocation> <pattern>org.inventivetalent.reflection</pattern>
</relocations> <shadedPattern>de.epiceric.shopchest.dependencies.reflectionhelper</shadedPattern>
</configuration> </relocation>
</plugin> </relocations>
<plugin> </configuration>
<groupId>org.apache.maven.plugins</groupId> </plugin>
<artifactId>maven-source-plugin</artifactId> <plugin>
<version>3.2.1</version> <groupId>org.apache.maven.plugins</groupId>
<executions> <artifactId>maven-source-plugin</artifactId>
<execution> <version>3.2.1</version>
<goals> <executions>
<goal>jar-no-fork</goal> <execution>
</goals> <goals>
</execution> <goal>jar-no-fork</goal>
</executions> </goals>
</plugin> </execution>
<plugin> </executions>
<groupId>org.apache.maven.plugins</groupId> </plugin>
<artifactId>maven-javadoc-plugin</artifactId> <plugin>
<version>3.2.0</version> <groupId>org.apache.maven.plugins</groupId>
<configuration> <artifactId>maven-javadoc-plugin</artifactId>
<doclint>none</doclint> <version>3.2.0</version>
</configuration> <configuration>
<executions> <doclint>none</doclint>
<execution> </configuration>
<goals> <executions>
<goal>jar</goal> <execution>
</goals> <goals>
</execution> <goal>jar</goal>
</executions> </goals>
</plugin> </execution>
<plugin> </executions>
<groupId>org.apache.maven.plugins</groupId> </plugin>
<artifactId>maven-release-plugin</artifactId> <plugin>
<version>3.0.0-M1</version> <groupId>org.apache.maven.plugins</groupId>
<configuration> <artifactId>maven-release-plugin</artifactId>
<tagNameFormat>v@{project.version}</tagNameFormat> <version>3.0.0-M1</version>
</configuration> <configuration>
</plugin> <tagNameFormat>v@{project.version}</tagNameFormat>
</plugins> </configuration>
</plugin>
</plugins>
</pluginManagement>
</build> </build>
</project> </project>