diff --git a/build.gradle b/build.gradle index b50b48f..6dae82c 100644 --- a/build.gradle +++ b/build.gradle @@ -1,9 +1,27 @@ -group "io.github.zrdzn.minecraft" -version "1.1.1" +plugins { + id("com.github.johnrengelman.shadow") version "7.1.2" +} + +allprojects { + group "io.github.zrdzn.minecraft" + version "1.1.1" +} subprojects { apply plugin: "java" + apply plugin: "com.github.johnrengelman.shadow" sourceCompatibility = JavaVersion.VERSION_1_8 targetCompatibility = JavaVersion.VERSION_1_8 + + compileJava.options.encoding = "UTF-8" + + repositories { + mavenCentral() + + maven { + name "spigot-repository" + url "https://hub.spigotmc.org/nexus/content/repositories/snapshots/" + } + } } \ No newline at end of file diff --git a/plugin/build.gradle b/plugin/build.gradle index e3229d1..de54a12 100644 --- a/plugin/build.gradle +++ b/plugin/build.gradle @@ -1,17 +1,4 @@ -plugins { - id "com.github.johnrengelman.shadow" version "7.1.2" -} - -compileJava.options.encoding = "UTF-8" - repositories { - mavenCentral() - - maven { - name "spigot-repository" - url "https://hub.spigotmc.org/nexus/content/repositories/snapshots/" - } - maven { name "mattstudios-repository" url "https://repo.mattstudios.me/artifactory/public/" @@ -29,7 +16,7 @@ java { } shadowJar { - archiveFileName = "LovelyDrop v${project.parent.version}.jar" + archiveFileName = "LovelyDrop v${project.version}.jar" relocate "dev.triumphteam.gui", "io.github.zrdzn.minecraft.lovelydrop.gui" } \ No newline at end of file