-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle.kts
82 lines (72 loc) · 1.61 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
plugins {
alias(libs.plugins.indra)
alias(libs.plugins.indra.checkstyle)
alias(libs.plugins.indra.crossdoc)
alias(libs.plugins.indra.licenser.spotless)
alias(libs.plugins.indra.publishing.sonatype)
alias(libs.plugins.nexusPublish)
alias(libs.plugins.spotless)
}
dependencies {
compileOnlyApi(libs.jetbrainsAnnotations)
testImplementation(platform(libs.junit.bom))
testImplementation(libs.junit.api)
testRuntimeOnly(libs.junit.engine)
testRuntimeOnly(libs.junit.launcher)
checkstyle(libs.stylecheck)
}
spotless {
ratchetFrom("origin/trunk")
java {
endWithNewline()
indentWithSpaces(2)
importOrderFile(rootProject.file(".spotless/kyori.importorder"))
trimTrailingWhitespace()
}
}
sourceSets {
main {
multirelease {
alternateVersions(9)
moduleName("net.kyori.option")
requireAllPackagesExported()
}
}
}
indraSonatype {
useAlternateSonatypeOSSHost("s01")
}
indra {
github("KyoriPowered", "option") {
ci(true)
}
mitLicense()
checkstyle(libs.versions.checkstyle.get())
javaVersions {
minimumToolchain(17)
testWith(11, 17, 21)
}
signWithKeyFromPrefixedProperties("kyori")
configurePublications {
pom {
url = "https://option.kyori.net"
developers {
developer {
id = "kashike"
timezone = "America/Vancouver"
}
developer {
id = "zml"
name = "zml"
timezone = "America/Vancouver"
}
}
}
}
}
indraCrossdoc {
baseUrl().set(providers.gradleProperty("javadocPublishRoot"))
}
tasks.jar {
indraGit.applyVcsInformationToManifest(manifest)
}