-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
38 lines (31 loc) · 1.13 KB
/
build.gradle.kts
File metadata and controls
38 lines (31 loc) · 1.13 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
group = "com.github.imdmk.automessage"
version = "2.0.0"
subprojects {
version = "2.0.0"
apply(plugin = "java-library")
repositories {
mavenCentral()
maven("https://hub.spigotmc.org/nexus/content/repositories/snapshots/") // Spigot
maven("https://repo.eternalcode.pl/releases") // Eternalcode
maven("https://storehouse.okaeri.eu/repository/maven-public/") // Okaeri
maven("https://repo.panda-lang.org/releases") // Litecommands
}
extensions.configure<JavaPluginExtension> {
toolchain.languageVersion.set(JavaLanguageVersion.of(21))
withJavadocJar()
withSourcesJar()
}
tasks.withType<Javadoc>().configureEach {
isFailOnError = false
val opts = options as StandardJavadocDocletOptions
opts.addStringOption("Xdoclint:none", "-quiet")
}
tasks.withType<Test>().configureEach {
useJUnitPlatform()
}
tasks.withType<JavaCompile>().configureEach {
options.compilerArgs.addAll(listOf("-Xlint:deprecation", "-Xlint:unchecked", "-parameters"))
options.encoding = "UTF-8"
options.release.set(21)
}
}