aboutsummaryrefslogtreecommitdiffstats
path: root/build.gradle
diff options
context:
space:
mode:
authorLMBishop <13875753+LMBishop@users.noreply.github.com>2021-04-02 00:10:48 +0100
committerLMBishop <13875753+LMBishop@users.noreply.github.com>2021-04-02 00:10:48 +0100
commit3bc61fa1b1fe0697ac0a33265e5fd05b2ceca381 (patch)
treeb75e4abb8b2cd909c3107ca61669c9cb3295711a /build.gradle
parent45b60a9a8c531018abb7bbca2bc289c195aeb814 (diff)
Update bStats
Diffstat (limited to 'build.gradle')
-rw-r--r--build.gradle16
1 files changed, 16 insertions, 0 deletions
diff --git a/build.gradle b/build.gradle
index ce32af69..e8e8c1f5 100644
--- a/build.gradle
+++ b/build.gradle
@@ -1,5 +1,6 @@
plugins {
id 'java'
+ id 'com.github.johnrengelman.shadow' version '6.1.0'
}
group = 'com.leonardobishop'
@@ -38,6 +39,8 @@ repositories {
maven { url = 'https://jitpack.io' }
// CoreProtect
maven { url = 'https://maven.playpro.com/' }
+ // bStats
+ maven { url = uri('https://repo.codemc.org/repository/maven-public') }
mavenCentral()
}
@@ -85,10 +88,23 @@ dependencies {
compileOnly ('net.coreprotect:coreprotect:2.18.2') {
exclude group: 'com.sk89q.worldedit', module: 'worldedit-bukkit'
}
+ // bStats
+ implementation 'org.bstats:bstats-bukkit-lite:1.8'
compileOnly fileTree(dir: 'libs', includes: ['*.jar'])
}
+shadowJar {
+ relocate 'org.bstats', 'com.leonardobishop.quests.libs.bstats'
+ archiveClassifier.set('')
+}
+
+jar.enabled = false
+
+tasks.build {
+ dependsOn(tasks.shadowJar)
+}
+
compileJava {
sourceCompatibility = '1.8'
targetCompatibility = '1.8'