-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
95 lines (79 loc) · 2.64 KB
/
build.gradle.kts
File metadata and controls
95 lines (79 loc) · 2.64 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
import com.vanniktech.maven.publish.MavenPublishBaseExtension
plugins {
id("java-library")
alias(libs.plugins.lombok) apply false
alias(libs.plugins.publish) apply false
}
tasks.jar {
enabled = false
}
subprojects {
apply(plugin = "java-library")
apply(plugin = rootProject.libs.plugins.lombok.get().pluginId)
apply(plugin = rootProject.libs.plugins.publish.get().pluginId)
group = "org.allaymc.protocol"
version = rootProject.version
tasks {
withType<JavaCompile>().configureEach {
options.encoding = Charsets.UTF_8.name()
options.compilerArgs.add("-parameters")
}
withType<Javadoc>().configureEach {
(options as StandardJavadocDocletOptions).addBooleanOption("Xdoclint:-missing", true)
}
test {
useJUnitPlatform()
}
}
repositories {
mavenCentral()
maven("https://repo.opencollab.dev/maven-releases/")
maven("https://repo.opencollab.dev/maven-snapshots/")
}
dependencies {
compileOnly(rootProject.libs.checker.qual)
}
java {
withSourcesJar()
toolchain {
languageVersion.set(JavaLanguageVersion.of(21))
}
}
configure<MavenPublishBaseExtension> {
publishToMavenCentral()
signAllPublications()
coordinates(
project.group.toString(),
project.name,
project.version.toString()
)
pom {
name.set(project.name)
description.set("A protocol library for Minecraft: Bedrock Edition that supports multiple versions.")
url.set("https://github.com/AllayMC/Protocol")
scm {
connection.set("scm:git:git://github.com/AllayMC/Protocol.git")
developerConnection.set("scm:git:ssh://github.com/AllayMC/Protocol.git")
url.set("https://github.com/AllayMC/Protocol")
}
licenses {
license {
name.set("The Apache Software License, Version 2.0")
url.set("https://www.apache.org/licenses/LICENSE-2.0.txt")
}
}
developers {
developer {
name.set("CloudburstMC Team")
organization.set("CloudburstMC")
organizationUrl.set("https://github.com/CloudburstMC")
}
developer {
name.set("AllayMC Team")
organization.set("AllayMC")
organizationUrl.set("https://github.com/AllayMC")
}
}
}
}
}