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 diff --git a/pom.xml b/pom.xml deleted file mode 100644 index 6287efc..0000000 --- a/pom.xml +++ /dev/null @@ -1,78 +0,0 @@ - - 4.0.0 - com.vexsoftware - votifier - 1.9 - Votifier - - UTF-8 - - - - - bukkit - http://repo.bukkit.org/content/groups/public/ - - - - - - - org.bukkit - bukkit - 1.7.9-R0.2 - jar - compile - - - - - clean package - - - - org.apache.maven.plugins - maven-compiler-plugin - 2.3.2 - - 1.7 - 1.7 - - - - - org.apache.maven.plugins - maven-jar-plugin - 2.3.1 - - - com.google.code.maven-replacer-plugin - maven-replacer-plugin - 1.3.8 - - - prepare-package - - replace - - - - - 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 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