aboutsummaryrefslogtreecommitdiff
path: root/build.gradle
blob: 8791ad3e67f53c139e39a04a3412ddb58d2bbeee (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
plugins {
    id 'java-library'
    id "com.github.johnrengelman.shadow" version "7.1.0"
}

java {
    toolchain {
        languageVersion = JavaLanguageVersion.of(17)
    }
}

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.jeff-media.com/public/"}
}

dependencies {
    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')
    implementation('com.jeff_media:SpigotUpdateChecker:3.0.3')
}

// 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.4')
    relocate 'org.bstats', 'com.MylesAndMore.bstats'
    relocate 'com.jeff_media.updatechecker', 'com.MylesAndMore.updatechecker'
}