From 1eddc2cb8b2ed055db6e35dbd86d1182afde761a Mon Sep 17 00:00:00 2001 From: Aikar Date: Sun, 26 Apr 2020 17:43:08 -0400 Subject: [PATCH] Clean up build scripts and rework shading/relocation ACF deps such as timings lib and expiring map will now properly be relocated into ACF. This will avoid version conflicts with ExpiringMap and TimingsLib Sadly, because locales is an exposed API, we can not relocate locales... It will still be on plugins to add the locales relocation themselves. Will update wiki to document this. also updated maven plugins to newest versions, minus surefire, as 3.0 doesn't work with current setup. Went to latest 2.x there. Got rid of a lot of duplicated shade configuration stuff across submodules too. --- bukkit/pom.xml | 26 -------------------------- core/pom.xml | 32 +------------------------------- example/pom.xml | 9 +++++++-- jda/pom.xml | 22 ---------------------- pom.xml | 30 ++++++++++++++++++++++-------- 5 files changed, 30 insertions(+), 89 deletions(-) diff --git a/bukkit/pom.xml b/bukkit/pom.xml index 5433b2b9..4e8d40d6 100644 --- a/bukkit/pom.xml +++ b/bukkit/pom.xml @@ -60,32 +60,6 @@ - - - org.apache.maven.plugins - maven-shade-plugin - 3.1.1 - - - package - - shade - - - - - ${project.build.directory}/dependency-reduced-pom.xml - - true - - - co.aikar.timings.lib - co.aikar.commands.timings - - - - - ${project.basedir}/../languages/minecraft/ diff --git a/core/pom.xml b/core/pom.xml index 52645ea1..bfe2e16a 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -55,41 +55,11 @@ net.jodah expiringmap - 0.5.8 + 0.5.9 compile - - - org.apache.maven.plugins - maven-shade-plugin - 3.1.1 - - - package - - shade - - - - - ${project.build.directory}/dependency-reduced-pom.xml - - true - - - co.aikar.locales - co.aikar.commands.locales - - - net.jodah.expiringmap - co.aikar.commands.lib.expiringmap - - - - - ${project.basedir}/../languages/core/ diff --git a/example/pom.xml b/example/pom.xml index 2d71723f..26843cd0 100644 --- a/example/pom.xml +++ b/example/pom.xml @@ -62,11 +62,16 @@ maven-shade-plugin 3.1.1 - ${project.build.directory}/dependency-reduced-pom.xml + ${project.build.directory}/dependency-reduced-pom.xml + co.aikar.commands - com.exampleplugin.acf + com.exampleplugin.lib.acf + + + co.aikar.locales + com.exampleplugin.lib.locales diff --git a/jda/pom.xml b/jda/pom.xml index 56135850..1a80e91a 100644 --- a/jda/pom.xml +++ b/jda/pom.xml @@ -62,28 +62,6 @@ - - - org.apache.maven.plugins - maven-shade-plugin - 3.1.1 - - - package - - shade - - - - - ${project.build.directory}/dependency-reduced-pom.xml - - true - - - - - - true + + + net.jodah.expiringmap + co.aikar.commands.lib.expiringmap + + + co.aikar.util + co.aikar.commands.lib.util + + + co.aikar.timings.lib + co.aikar.commands.lib.timings + + + + ${project.build.directory}/dependency-reduced-pom.xml + org.apache.maven.plugins maven-javadoc-plugin - 3.0.1 + 3.2.0 ../docs/${project.artifactId}/ true