-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
134 lines (113 loc) · 3.65 KB
/
Copy pathbuild.gradle.kts
File metadata and controls
134 lines (113 loc) · 3.65 KB
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
127
128
129
130
131
132
133
134
plugins {
java
jacoco
alias(libs.plugins.shadow)
alias(libs.plugins.runPaper)
alias(libs.plugins.pluginYml)
`maven-publish`
}
group = "net.onelitefeather"
version = (version as String).substringBefore('#').trim()
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(25))
}
}
dependencies {
// Paper
compileOnly(libs.paper)
//Adventure (Bukkit)
implementation(libs.adventureBukkit)
//Cloud command framework
implementation(libs.cloudPaper)
implementation(libs.cloudAnnotations)
implementation(libs.cloudExtras)
implementation(libs.commodore)
//Caching
implementation(libs.caffeine)
// Database
implementation(libs.bundles.hibernate)
implementation(libs.jaxbRuntime)
implementation(libs.postgresql)
// Testing
testImplementation(libs.junitJupiterApi)
testRuntimeOnly(libs.junitJupiterEngine)
}
tasks {
runServer {
minecraftVersion("26.1.2")
jvmArgs("-Xmx4G", "-Dcom.mojang.eula.agree=true")
}
test {
useJUnitPlatform()
}
shadowJar {
archiveFileName.set("${rootProject.name}.${archiveExtension.getOrElse("jar")}")
}
jacocoTestReport {
dependsOn(rootProject.tasks.test)
reports {
xml.required.set(true)
}
}
}
publishing {
publications.create<MavenPublication>("maven") {
artifact(project.tasks.getByName("shadowJar"))
version = rootProject.version as String
artifactId = "PlayerKits"
groupId = rootProject.group as String
pom {
name = "PlayerKits"
description = "A simple Kits plugin to give players certain items."
url = "https://github.com/OneLiteFeatherNET/playerkits"
developers {
developer {
id = "theShadowsDust"
name = "theShadowsDust"
email = "theShadowDust@onelitefeather.net"
}
developer {
id = "themeinerlp"
name = "Phillipp Glanz"
email = "p.glanz@madfix.me"
}
}
scm {
connection = "scm:git:git://github.com:OneLiteFeatherNET/PlayerKits.git"
developerConnection = "scm:git:ssh://git@github.com:OneLiteFeatherNET/PlayerKits.git"
url = "https://github.com/OneLiteFeatherNET/PlayerKits"
}
}
}
repositories {
maven {
authentication {
credentials(PasswordCredentials::class) {
// Those credentials need to be set under "Settings -> Secrets -> Actions" in your repository
username = System.getenv("ONELITEFEATHER_MAVEN_USERNAME")
password = System.getenv("ONELITEFEATHER_MAVEN_PASSWORD")
}
}
name = "OneLiteFeatherRepository"
val releasesRepoUrl = uri("https://repo.onelitefeather.dev/onelitefeather-releases")
val snapshotsRepoUrl = uri("https://repo.onelitefeather.dev/onelitefeather-snapshots")
url = if (version.toString().contains("SNAPSHOT") || version.toString().contains("BETA") || version.toString().contains("ALPHA")) snapshotsRepoUrl else releasesRepoUrl
}
}
}
paper {
main = "${rootProject.group}.playerkits.PlayerKitsPlugin"
apiVersion = "1.20"
author = "theShadowsDust"
authors = listOf("OneLiteFeather")
//Paper
hasOpenClassloader = false
generateLibrariesJson = false
foliaSupported = true
serverDependencies {
register("Vault") {
required = false
}
}
}