aboutsummaryrefslogtreecommitdiff
path: root/build.gradle
blob: c5c2913c910ec5eaef570678a0d7f682e5b8030d (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
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/" }
}

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')
}

// 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'
}