From 7f91b739f2777433ccc015a606e4d80d84934601 Mon Sep 17 00:00:00 2001 From: Gabriele C Date: Mon, 17 Sep 2018 22:55:36 +0200 Subject: [PATCH] Maven cleaup --- pom.xml | 152 ++++++++++-------- .../fr/xephi/authme/datasource/SQLite.java | 4 + src/main/resources/plugin.yml | 8 +- 3 files changed, 95 insertions(+), 69 deletions(-) diff --git a/pom.xml b/pom.xml index 138f017c..d487788a 100644 --- a/pom.xml +++ b/pom.xml @@ -11,8 +11,7 @@ AuthMeReloaded The first authentication plugin for the Bukkit API! 2013 - http://dev.bukkit.org/bukkit-plugins/authme-reloaded/ - + https://github.com/AuthMe/AuthMeReloaded AuthMe-Team @@ -55,31 +54,31 @@ - + + false + + UTF-8 UTF-8 - 1.8 + 1.8 + 3.3.9 - + + 1.13.1-R0.1-SNAPSHOT + + AuthMe CUSTOM - false ${project.version}-b${project.buildNumber} + ${project.outputName}-${project.version} - - ${project.outputName} - ${project.versionCode} - ${project.groupId}.${project.artifactId}.${bukkitplugin.name} - Xephi, sgdc3, DNx5, timvisee, games647, ljacqu, Gnat008 - - - 1.13-R0.1-SNAPSHOT + + ${project.outputName} + ${project.versionCode} + ${project.groupId}.${project.artifactId}.${pluginDescription.name} + Xephi, sgdc3, DNx5, timvisee, games647, ljacqu, Gnat008 - - 3.3.9 - - @@ -109,8 +108,9 @@ - clean install - ${project.outputName}-${project.version}-noshade + clean package + + ${project.finalNameBase}-noshade @@ -132,25 +132,51 @@ + + + org.apache.maven.plugins + maven-enforcer-plugin + 1.4.1 + + + enforce-environment + + enforce + + + + + 3.3.9 + + + true + + + + + org.apache.maven.plugins maven-clean-plugin 3.1.0 + org.apache.maven.plugins maven-resources-plugin 3.1.0 + org.apache.maven.plugins maven-compiler-plugin 3.8.0 - ${jdk.version} - ${jdk.version} + ${java.version} + ${java.version} + org.jacoco jacoco-maven-plugin @@ -170,6 +196,7 @@ + org.apache.maven.plugins maven-surefire-plugin @@ -181,17 +208,24 @@ ${project.skipExtendedHashTests} + + false + org.apache.maven.plugins maven-jar-plugin 3.1.0 + org.apache.maven.plugins maven-javadoc-plugin 3.0.1 + + ${project.finalNameBase} + attach-javadoc @@ -199,23 +233,16 @@ jar - - aggregate-javadoc - - aggregate - - - - ${project.outputName}-${project.version} - public - false - + org.apache.maven.plugins maven-source-plugin 3.0.1 + + ${project.finalNameBase} + attach-sources @@ -224,10 +251,8 @@ - - ${project.outputName}-${project.version} - + org.apache.maven.plugins maven-shade-plugin @@ -241,9 +266,12 @@ + false + true - ${project.outputName}-${project.version} + + ${project.finalNameBase} org.bstats fr.xephi.authme.libs.org.bstats - - org.postgresql - fr.xephi.authme.libs.org.postgresql - @@ -323,27 +351,31 @@ + org.apache.maven.plugins maven-install-plugin 2.5.2 + org.apache.maven.plugins maven-deploy-plugin 2.8.2 + org.apache.maven.plugins maven-site-plugin 3.7.1 + org.eluder.coveralls coveralls-maven-plugin 4.3.0 - + false @@ -357,10 +389,16 @@ https://hub.spigotmc.org/nexus/content/repositories/snapshots - + - ess-repo - http://repo.ess3.net/content/groups/essentials + codemc-repo + https://repo.codemc.org/repository/maven-public/ + + + + + enderzone-repo + https://ci.ender.zone/plugin/repository/everything @@ -381,12 +419,6 @@ http://nexus.hc.to/content/repositories/pub_releases - - - codemc-repo - https://repo.codemc.org/repository/maven-public/ - - bstats-repo @@ -511,7 +543,7 @@ org.spigotmc spigot-api - ${bukkit.version} + ${spigot.version} provided @@ -766,22 +798,12 @@ - + net.ess3 - Essentials - 2.13.1 + EssentialsX + 2.15.0 provided - - - org.bukkit - bukkit - - - org.bukkit - craftbukkit - - diff --git a/src/main/java/fr/xephi/authme/datasource/SQLite.java b/src/main/java/fr/xephi/authme/datasource/SQLite.java index 93b7f48a..fe7260ec 100644 --- a/src/main/java/fr/xephi/authme/datasource/SQLite.java +++ b/src/main/java/fr/xephi/authme/datasource/SQLite.java @@ -75,6 +75,8 @@ public class SQLite extends AbstractSqlDataSource { /** * Initializes the connection to the SQLite database. + * + * @throws SQLException when an SQL error occurs while connecting */ protected void connect() throws SQLException { try { @@ -90,6 +92,8 @@ public class SQLite extends AbstractSqlDataSource { /** * Creates the table if necessary, or adds any missing columns to the table. + * + * @throws SQLException when an SQL error occurs while initializing the database */ @VisibleForTesting protected void setup() throws SQLException { diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml index 8df9a180..027da3dc 100644 --- a/src/main/resources/plugin.yml +++ b/src/main/resources/plugin.yml @@ -1,9 +1,9 @@ -name: ${bukkitplugin.name} -authors: [${bukkitplugin.authors}] +name: ${pluginDescription.name} +authors: [${pluginDescription.authors}] website: ${project.url} description: ${project.description} -main: ${bukkitplugin.main} -version: ${bukkitplugin.version} +main: ${pluginDescription.main} +version: ${pluginDescription.version} api-version: 1.13 softdepend: - Vault