diff options
author | MylesAndMore <mylesandmore9@gmail.com> | 2023-06-18 20:51:06 +0200 |
---|---|---|
committer | MylesAndMore <mylesandmore9@gmail.com> | 2023-06-18 20:51:06 +0200 |
commit | da3473a704246abbe60071ec4069664b2b50a7b3 (patch) | |
tree | d443323350408724e70590659b7d5609600eb110 /build.gradle | |
parent | 19d8ffbc6659c7de13b81a587dae7081078649c6 (diff) | |
download | Tumble-da3473a704246abbe60071ec4069664b2b50a7b3.tar.gz Tumble-da3473a704246abbe60071ec4069664b2b50a7b3.tar.bz2 Tumble-da3473a704246abbe60071ec4069664b2b50a7b3.zip |
bstats shading and fix an error where the plugin wouldn't load
Diffstat (limited to '')
-rw-r--r-- | build.gradle | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/build.gradle b/build.gradle index f751f6b..c5c2913 100644 --- a/build.gradle +++ b/build.gradle @@ -1,5 +1,6 @@ plugins { id 'java-library' + id "com.github.johnrengelman.shadow" version "7.1.0" } java { @@ -8,17 +9,25 @@ java { } } -group 'Tumble' -version '1.0.3' - repositories { mavenCentral() // Use Maven Central for resolving dependencies. maven { url 'https://oss.sonatype.org/content/repositories/snapshots' } maven { url 'https://hub.spigotmc.org/nexus/content/repositories/snapshots/' } - maven { url = "https://repo.onarandombox.com/content/groups/public/" } + maven { url "https://repo.onarandombox.com/content/groups/public/" } } dependencies { - compileOnly 'org.spigotmc:spigot-api:1.19.2-R0.1-SNAPSHOT' - compileOnly 'com.onarandombox.multiversecore:Multiverse-Core:4.3.1' + compileOnly('org.spigotmc:spigot-api:1.19.2-R0.1-SNAPSHOT') + compileOnly('com.onarandombox.multiversecore:Multiverse-Core:4.3.1') + implementation('org.bstats:bstats-bukkit:3.0.2') +} + +// Disable generation of the normal JAR to reduce confusion and only generate the correctly shadowed JAR including bStats +jar.enabled = false +jar.finalizedBy(shadowJar) +shadowJar { + archiveBaseName.set('Tumble') + archiveClassifier.set('') + archiveVersion.set('1.0.3') + relocate 'org.bstats', 'com.MylesAndMore.bstats' } |