generated from srnyx/plugin-template
-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.gradle.kts
42 lines (36 loc) · 1.77 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
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.3.2"
id("com.gradleup.shadow") version "8.3.5"
id("net.kyori.blossom") version "2.1.0"
id("org.jetbrains.gradle.plugin.idea-ext") version "1.1.9"
}
setupMC("xyz.srnyx", "5.1.5", "General purpose API with tons of features")
spigotAPI("1.8.8")
// Blossom (see java-templates module)
sourceSets.main { blossom.javaSources { property("annoying_api_version", version.toString()) } }
// Dependencies
repository(Repository.JITPACK, Repository.PLACEHOLDER_API, Repository.ALESSIO_DP, Repository.CODE_MC)
dependencies {
compileOnly("me.clip", "placeholderapi", "2.11.6")
compileOnlyApi("org.bstats", "bstats-bukkit", "3.1.0") // Downloaded on runtime
compileOnlyApi("org.reflections", "reflections", "0.10.2") // Downloaded on runtime
compileOnly("de.tr7zw", "item-nbt-api", "2.14.0") // Downloaded on runtime
compileOnlyApi("com.h2database", "h2", "2.2.224") // Downloaded on runtime (don't update to keep support for Java 8)
compileOnlyApi("org.postgresql", "postgresql", "42.7.4") // Downloaded on runtime
compileOnlyApi("org.jetbrains", "annotations", "26.0.1")
implementationRelocate(project, "net.byteflux:libby-bukkit:1.3.1", "net.byteflux.libby")
implementationRelocate(project, "xyz.srnyx:java-utilities:2.0.0", "xyz.srnyx.javautilities")
}
// Publishing
setupPublishing(
artifactId = "annoying-api",
url = "https://annoying-api.srnyx.com",
licenses = listOf(LicenseData.MIT),
developers = listOf(DeveloperData.srnyx))