From f3e7d66441c5fe8043f0227bd36c21ff6a5bac3e Mon Sep 17 00:00:00 2001 From: TheKDub Date: Mon, 19 Jul 2021 19:57:35 -0400 Subject: [PATCH 1/4] Updated dependencies in pom.xml; plugin is now compatible with Minecraft 1.17.1 and Java 16. --- pom.xml | 51 +++++++++++++++++++++++++++++++++++---------------- 1 file changed, 35 insertions(+), 16 deletions(-) diff --git a/pom.xml b/pom.xml index 6287efc..a0ff6c6 100644 --- a/pom.xml +++ b/pom.xml @@ -3,28 +3,47 @@ 4.0.0 com.vexsoftware votifier - 1.9 + 1.10 Votifier UTF-8 + - bukkit - http://repo.bukkit.org/content/groups/public/ + spigot-repo + https://hub.spigotmc.org/nexus/content/repositories/snapshots/ - + - + + + org.spigotmc + spigot-api + 1.17.1-R0.1-SNAPSHOT + provided + + + + com.google.code.maven-replacer-plugin + maven-replacer-plugin + 1.4.1 + + + + org.apache.maven.plugins + maven-javadoc-plugin + 3.3.0 + + - org.bukkit - bukkit - 1.7.9-R0.2 - jar - compile + javax.xml.bind + jaxb-api + 2.3.1 + @@ -34,22 +53,22 @@ org.apache.maven.plugins maven-compiler-plugin - 2.3.2 + 3.8.1 - 1.7 - 1.7 + 1.16 + 1.16 org.apache.maven.plugins maven-jar-plugin - 2.3.1 + 3.2.0 com.google.code.maven-replacer-plugin maven-replacer-plugin - 1.3.8 + 1.4.1 prepare-package @@ -71,7 +90,7 @@ org.apache.maven.plugins maven-javadoc-plugin - 2.9 + 3.3.0 From 188c35659fb996755854e7a5772d16865af76249 Mon Sep 17 00:00:00 2001 From: TheKDub Date: Mon, 19 Jul 2021 20:23:50 -0400 Subject: [PATCH 2/4] Added maven-assembly-plugin to package dependencies with the plugin since they don't seem to be available from the server. --- pom.xml | 27 +++++++++++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index a0ff6c6..04f862e 100644 --- a/pom.xml +++ b/pom.xml @@ -37,6 +37,12 @@ maven-javadoc-plugin 3.3.0 + + + org.apache.maven.plugins + maven-assembly-plugin + 3.3.0 + javax.xml.bind @@ -44,6 +50,7 @@ 2.3.1 + @@ -55,8 +62,8 @@ maven-compiler-plugin 3.8.1 - 1.16 - 1.16 + 16 + 16 @@ -92,6 +99,22 @@ maven-javadoc-plugin 3.3.0 + + maven-assembly-plugin + + + package + + single + + + + + + jar-with-dependencies + + + From 2b92721b4f178cc647c24f050780a23029fbfb23 Mon Sep 17 00:00:00 2001 From: TheKDub Date: Wed, 15 Dec 2021 17:38:04 -0500 Subject: [PATCH 3/4] Converted project to Gradle. Updated to version 1.11 for Minecraft 1.18.1. --- pom.xml | 120 ---------------------------------- src/main/resources/plugin.yml | 2 +- 2 files changed, 1 insertion(+), 121 deletions(-) delete mode 100644 pom.xml diff --git a/pom.xml b/pom.xml deleted file mode 100644 index 04f862e..0000000 --- a/pom.xml +++ /dev/null @@ -1,120 +0,0 @@ - - 4.0.0 - com.vexsoftware - votifier - 1.10 - Votifier - - UTF-8 - - - - - - spigot-repo - https://hub.spigotmc.org/nexus/content/repositories/snapshots/ - - - - - - - org.spigotmc - spigot-api - 1.17.1-R0.1-SNAPSHOT - provided - - - - com.google.code.maven-replacer-plugin - maven-replacer-plugin - 1.4.1 - - - - org.apache.maven.plugins - maven-javadoc-plugin - 3.3.0 - - - - org.apache.maven.plugins - maven-assembly-plugin - 3.3.0 - - - - javax.xml.bind - jaxb-api - 2.3.1 - - - - - - - clean package - - - - org.apache.maven.plugins - maven-compiler-plugin - 3.8.1 - - 16 - 16 - - - - - org.apache.maven.plugins - maven-jar-plugin - 3.2.0 - - - com.google.code.maven-replacer-plugin - maven-replacer-plugin - 1.4.1 - - - prepare-package - - replace - - - - - target/classes/plugin.yml - - - maven-version-number - ${project.version} - - - - - - org.apache.maven.plugins - maven-javadoc-plugin - 3.3.0 - - - maven-assembly-plugin - - - package - - single - - - - - - jar-with-dependencies - - - - - - diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml index 0762eea..308c307 100644 --- a/src/main/resources/plugin.yml +++ b/src/main/resources/plugin.yml @@ -1,5 +1,5 @@ name: Votifier main: com.vexsoftware.votifier.Votifier -version: maven-version-number +version: 1.11 description: A plugin that gets notified when votes are made for the server on toplists. authors: [blakeman8192, Kramer] \ No newline at end of file From 3e0fe78ac7ffeb2606ad7d705e312991180937dc Mon Sep 17 00:00:00 2001 From: TheKDub Date: Wed, 15 Dec 2021 17:38:53 -0500 Subject: [PATCH 4/4] Added build.gradle. --- build.gradle | 53 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 build.gradle diff --git a/build.gradle b/build.gradle new file mode 100644 index 0000000..14eb2be --- /dev/null +++ b/build.gradle @@ -0,0 +1,53 @@ +buildscript { + repositories { + jcenter() + } + dependencies { + classpath 'com.github.jengelman.gradle.plugins:shadow:5.2.0' + } +} + +plugins { + id 'java' +} +apply plugin: 'com.github.johnrengelman.shadow' +group 'com.vexsoftware.votifier' +version '1.18.1-1.11' + +repositories { + mavenCentral() + maven { + url = 'https://hub.spigotmc.org/nexus/content/repositories/snapshots/' + + // As of Gradle 5.1, you can limit this to only those + // dependencies you expect from it + content { + includeGroup 'org.bukkit' + includeGroup 'org.spigotmc' + } + } + /* + As Spigot-API depends on the Bungeecord ChatComponent-API, + we need to add the Sonatype OSS repository, as Gradle, + in comparison to maven, doesn't want to understand the ~/.m2 + directory unless added using mavenLocal(). Maven usually just gets + it from there, as most people have run the BuildTools at least once. + This is therefore not needed if you're using the full Spigot/CraftBukkit, + or if you're using the Bukkit API. + */ + maven { url = 'https://oss.sonatype.org/content/repositories/snapshots' } + maven { url = 'https://oss.sonatype.org/content/repositories/central' } + mavenLocal() // This is needed for CraftBukkit and Spigot. + + // ProtocolLib + maven { url = 'https://repo.dmulloy2.net/repository/public/' } +} + +dependencies { + // Jetbrains Annotations, include in jar + implementation 'org.jetbrains:annotations:19.0.0' + // https://mvnrepository.com/artifact/javax.xml.bind/jaxb-api + implementation group: 'javax.xml.bind', name: 'jaxb-api', version: '2.3.1' + // Spigot, proided by server + compileOnly 'org.spigotmc:spigot:1.18.1-R0.1-SNAPSHOT' // The full Spigot server with no shadowing. Requires mavenLocal. +} \ No newline at end of file