-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
126 lines (110 loc) · 3.63 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
import net.minecrell.pluginyml.paper.PaperPluginDescription
plugins {
`java-library`
`maven-publish`
alias(libs.plugins.shadow)
alias(libs.plugins.plugin.yml)
}
repositories {
mavenLocal()
mavenCentral()
gradlePluginPortal()
maven("https://repo.papermc.io/repository/maven-public/")
maven("https://jitpack.io")
maven("https://maven.citizensnpcs.co/repo/")
maven("https://repo.extendedclip.com/content/repositories/placeholderapi/")
maven("https://repo.firedev.uk/repository/maven-public/")
maven("https://s01.oss.sonatype.org/content/repositories/snapshots/")
maven("https://repo.minebench.de/")
maven("https://repo.codemc.io/repository/maven-snapshots/")
maven("https://repo.md5lukas.de/public")
}
dependencies {
compileOnly(libs.paper.api)
compileOnly(libs.placeholderapi)
compileOnly(libs.vault)
compileOnly(libs.miniplaceholders)
implementation(libs.inventorygui)
implementation(libs.anvilgui)
implementation(libs.commandapi)
implementation(libs.vanishchecker)
implementation(libs.boostedyaml)
implementation(libs.bstats)
}
group = "uk.firedev"
version = "2.2.0-SNAPSHOT"
description = "A collection of classes for easier use of Paper's API"
java.sourceCompatibility = JavaVersion.VERSION_21
paper {
name = project.name
version = project.version.toString()
main = "uk.firedev.daisylib.local.DaisyLib"
apiVersion = "1.21"
author = "FireML"
description = project.description.toString()
serverDependencies {
register("Vault") {
required = false
load = PaperPluginDescription.RelativeLoadOrder.BEFORE
}
register("Denizen") {
required = false
load = PaperPluginDescription.RelativeLoadOrder.BEFORE
}
register("PlaceholderAPI") {
required = false
load = PaperPluginDescription.RelativeLoadOrder.BEFORE
}
}
}
publishing {
repositories {
maven {
name = "firedevRepo"
// Repository settings
var repoUrlString = "https://repo.firedev.uk/repository/maven-"
repoUrlString += if (project.version.toString().endsWith("-SNAPSHOT")) {
"snapshots/"
} else {
"releases/"
}
url = uri(repoUrlString)
credentials(PasswordCredentials::class)
authentication {
create<BasicAuthentication>("basic")
}
}
}
publications {
create<MavenPublication>("maven") {
groupId = project.group.toString()
artifactId = project.name
version = project.version.toString()
from(components["java"])
}
}
}
tasks {
build {
dependsOn(shadowJar)
}
shadowJar {
archiveBaseName.set(project.name)
archiveVersion.set(project.version.toString())
archiveClassifier.set("")
// Libs Package
relocate("de.themoep.inventorygui", "uk.firedev.daisylib.libs.themoep.inventorygui")
relocate("net.wesjd.anvilgui", "uk.firedev.daisylib.libs.wesjd.anvilgui")
relocate("dev.jorel.commandapi", "uk.firedev.daisylib.libs.commandapi")
relocate("dev.dejvokep.boostedyaml", "uk.firedev.daisylib.libs.boostedyaml")
relocate("org.bstats", "uk.firedev.daisylib.libs.bstats")
// Utils Package
relocate("uk.firedev.vanishchecker", "uk.firedev.daisylib.utils.vanishchecker")
manifest {
attributes["paperweight-mappings-namespace"] = "spigot"
}
}
withType<JavaCompile> {
options.encoding = "UTF-8"
}
}