generated from srnyx/plugin-template
/
build.gradle.kts
51 lines (43 loc) · 1.68 KB
/
build.gradle.kts
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
import xyz.srnyx.gradlegalaxy.data.pom.DeveloperData
import xyz.srnyx.gradlegalaxy.data.pom.LicenseData
import xyz.srnyx.gradlegalaxy.enums.Repository
import xyz.srnyx.gradlegalaxy.enums.repository
import xyz.srnyx.gradlegalaxy.utility.*
plugins {
java
`java-library`
id("xyz.srnyx.gradle-galaxy") version "1.1.2"
id("com.github.johnrengelman.shadow") version "8.1.1"
}
setupMC("xyz.srnyx", "5.0.0", "General purpose API with tons of features")
spigotAPI("1.8.8")
// Dependencies
repository(Repository.JITPACK, Repository.PLACEHOLDER_API, Repository.CODE_MC)
dependencies {
compileOnlyApi("org.jetbrains", "annotations", "24.1.0")
compileOnly("me.clip", "placeholderapi", "2.11.3")
implementationRelocate(project, "xyz.srnyx:java-utilities:1.0.0", "xyz.srnyx.javautilities")
implementationRelocate(project, "org.reflections:reflections:0.10.2") {
exclude("com.google.code.findbugs", "jsr305")
exclude("org.slf4j", "slf4j-api")
}
implementationRelocate(project, "org.bstats:bstats-bukkit:3.0.2")
implementationRelocate(project, "de.tr7zw:item-nbt-api:2.12.4", "de.tr7zw.changeme.nbtapi") {
exclude("de.tr7zw", "functional-annotations")
}
// Storage methods (MySQL & SQLite provided by Spigot, MariaDB uses MySQL)
runtimeOnly("com.h2database:h2:2.2.220")
runtimeOnly("org.postgresql:postgresql:42.7.3") {
exclude("org.checkerframework")
}
}
// Relocations
relocate("javassist")
relocate("org.h2")
relocate("org.postgresql")
// Publishing
setupPublishing(
artifactId = "annoying-api",
url = "https://annoying-api.srnyx.com",
licenses = listOf(LicenseData.MIT),
developers = listOf(DeveloperData.srnyx))