-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
136 lines (110 loc) · 3.57 KB
/
build.gradle.kts
File metadata and controls
136 lines (110 loc) · 3.57 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
135
136
import com.github.spotbugs.snom.SpotBugsTask
plugins {
id("checkstyle")
id("com.github.spotbugs") version "6.2.2"
`java-library`
`maven-publish`
}
group = "net.bridgesplash.sidebar"
version = System.getenv("TAG_VERSION")?: "dev"
repositories {
mavenCentral()
}
dependencies {
api("net.minestom:minestom:2025.09.13-1.21.8")
api("net.kyori:adventure-text-minimessage:4.24.0")
compileOnly("com.github.spotbugs:spotbugs-annotations:4.9.3")
spotbugsPlugins("com.h3xstream.findsecbugs:findsecbugs-plugin:1.14.0")
// lombok
implementation("org.projectlombok:lombok:1.18.38")
annotationProcessor("org.projectlombok:lombok:1.18.38")
// jetbrains annotations
implementation("org.jetbrains:annotations:26.0.2")
testImplementation(platform("org.junit:junit-bom:5.10.0"))
testImplementation("org.junit.jupiter:junit-jupiter")
testImplementation("net.kyori:adventure-text-minimessage:4.24.0")
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
}
checkstyle {
toolVersion = "10.14.0"
maxWarnings = 0
}
configurations.checkstyle {
resolutionStrategy.capabilitiesResolution.withCapability("com.google.collections:google-collections") {
select("com.google.guava:guava:23.0")
}
}
java{
withSourcesJar()
withJavadocJar()
toolchain.languageVersion = JavaLanguageVersion.of(21)
}
tasks{
withType<Jar> { duplicatesStrategy = DuplicatesStrategy.EXCLUDE }
compileJava {
options.encoding = "UTF-8"
}
withType<Checkstyle>().configureEach {
reports {
xml.required = false
html.required = true
}
}
withType<SpotBugsTask>().configureEach {
reports.create("html") {
required = true
}
reports.create("xml") {
required = false
}
}
test {
useJUnitPlatform()
}
}
publishing{
repositories{
maven {
name = "release"
url = uri("https://repo.tesseract.club/releases")
credentials {
username = System.getenv("MAVEN_USERNAME")
password = System.getenv("MAVEN_SECRET")
}
}
}
publications{
create<MavenPublication>("maven"){
groupId = "net.bridgesplash"
artifactId = "sidebar-api"
version = project.version as String
from(components["java"])
pom{
name.set(project.name)
description.set("A sidebar library that feels uses state to handle updates")
url.set("https://github.com/BridgeSplash/SidebarAPI")
developers{
developer {
id.set("tropicalshadow")
name.set("TropicalShadow")
email.set("me@tesseract.club")
}
}
issueManagement{
system.set("GitHub")
url.set("https://github.com/BridgeSplash/SidebarAPI/issues")
}
scm{
connection.set("scm:git:git://github.com/BridgeSplash/SidebarAPI.git")
developerConnection.set("scm:git:ssh://github.com/BridgeSplash/SidebarAPI.git")
url.set("https://github.com/BridgeSplash/SidebarAPI")
tag.set("HEAD")
}
ciManagement {
system.set("Github Actions")
url.set("https://github.com/BridgeSplash/SidebarAPI/actions")
}
}
}
}
}