From b4550d1b109090786349885f59169c0eb8dfa67f Mon Sep 17 00:00:00 2001 From: Ian <60456400+KaboomB52@users.noreply.github.com> Date: Fri, 29 Nov 2024 02:43:01 -0600 Subject: [PATCH 1/2] Update to Java 11, fix RSAIO --- pom.xml | 20 ++++++++++++------- .../vexsoftware/votifier/crypto/RSAIO.java | 4 ++-- src/main/resources/plugin.yml | 3 ++- 3 files changed, 17 insertions(+), 10 deletions(-) diff --git a/pom.xml b/pom.xml index 6287efc..9d4bdba 100644 --- a/pom.xml +++ b/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.vexsoftware votifier - 1.9 + 2.0 Votifier UTF-8 @@ -19,12 +19,18 @@ - org.bukkit - bukkit - 1.7.9-R0.2 + org.eytril.spigot + kewlspigot-server + 1.8.8-R0.1-SNAPSHOT jar compile + + jakarta.xml.bind + jakarta.xml.bind-api + 4.0.2 + compile + @@ -36,15 +42,15 @@ maven-compiler-plugin 2.3.2 - 1.7 - 1.7 + 11 + 11 org.apache.maven.plugins maven-jar-plugin - 2.3.1 + 3.3.0 com.google.code.maven-replacer-plugin diff --git a/src/main/java/com/vexsoftware/votifier/crypto/RSAIO.java b/src/main/java/com/vexsoftware/votifier/crypto/RSAIO.java index a5727ee..1e64ac1 100644 --- a/src/main/java/com/vexsoftware/votifier/crypto/RSAIO.java +++ b/src/main/java/com/vexsoftware/votifier/crypto/RSAIO.java @@ -18,6 +18,8 @@ package com.vexsoftware.votifier.crypto; +import jakarta.xml.bind.DatatypeConverter; + import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; @@ -28,8 +30,6 @@ import java.security.spec.PKCS8EncodedKeySpec; import java.security.spec.X509EncodedKeySpec; -import javax.xml.bind.DatatypeConverter; - /** * Static utility methods for saving and loading RSA key pairs. * diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml index 0762eea..c356caa 100644 --- a/src/main/resources/plugin.yml +++ b/src/main/resources/plugin.yml @@ -2,4 +2,5 @@ name: Votifier main: com.vexsoftware.votifier.Votifier version: maven-version-number description: A plugin that gets notified when votes are made for the server on toplists. -authors: [blakeman8192, Kramer] \ No newline at end of file +authors: [blakeman8192, Kramer, Ian] +api-version: 1.13+ # For those higher versions <3 \ No newline at end of file From ff5add66d6e4787b96e6c6e6814909e3f5258079 Mon Sep 17 00:00:00 2001 From: Ian <60456400+KaboomB52@users.noreply.github.com> Date: Fri, 29 Nov 2024 02:56:22 -0600 Subject: [PATCH 2/2] Forgot to shade it, 2.0 now done! --- dependency-reduced-pom.xml | 56 +++++++++++++++++++++++++++++++++++ pom.xml | 35 +++++++++------------- src/main/resources/plugin.yml | 2 +- 3 files changed, 71 insertions(+), 22 deletions(-) create mode 100644 dependency-reduced-pom.xml diff --git a/dependency-reduced-pom.xml b/dependency-reduced-pom.xml new file mode 100644 index 0000000..b0557cb --- /dev/null +++ b/dependency-reduced-pom.xml @@ -0,0 +1,56 @@ + + + 4.0.0 + com.vexsoftware + votifier + Votifier + 2.0 + + + + maven-compiler-plugin + 2.3.2 + + 11 + 11 + + + + maven-jar-plugin + 3.3.0 + + + maven-shade-plugin + 3.4.1 + + + package + + shade + + + true + + + + + + + + + bukkit + http://repo.bukkit.org/content/groups/public/ + + + + + org.eytril.spigot + kewlspigot-server + 1.8.8-R0.1-SNAPSHOT + provided + + + + UTF-8 + + diff --git a/pom.xml b/pom.xml index 9d4bdba..dff2892 100644 --- a/pom.xml +++ b/pom.xml @@ -23,7 +23,7 @@ kewlspigot-server 1.8.8-R0.1-SNAPSHOT jar - compile + provided jakarta.xml.bind @@ -34,8 +34,8 @@ - clean package + org.apache.maven.plugins @@ -46,39 +46,32 @@ 11 + org.apache.maven.plugins maven-jar-plugin 3.3.0 + + - com.google.code.maven-replacer-plugin - maven-replacer-plugin - 1.3.8 + org.apache.maven.plugins + maven-shade-plugin + 3.4.1 - prepare-package + package - replace + shade + + true + - - target/classes/plugin.yml - - - maven-version-number - ${project.version} - - - - - - org.apache.maven.plugins - maven-javadoc-plugin - 2.9 + diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml index c356caa..0a65855 100644 --- a/src/main/resources/plugin.yml +++ b/src/main/resources/plugin.yml @@ -1,6 +1,6 @@ name: Votifier main: com.vexsoftware.votifier.Votifier -version: maven-version-number +version: 2.0 description: A plugin that gets notified when votes are made for the server on toplists. authors: [blakeman8192, Kramer, Ian] api-version: 1.13+ # For those higher versions <3 \ No newline at end of file