-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.gradle
105 lines (93 loc) · 2.1 KB
/
build.gradle
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
plugins {
alias libs.plugins.indra
alias libs.plugins.indra.checkstyle
alias libs.plugins.indra.publishing.sonatype
alias libs.plugins.spotless
alias libs.plugins.indra.licenser.spotless
alias libs.plugins.indra.crossdoc
alias libs.plugins.nexusPublish
id 'eclipse'
}
dependencies {
compileOnlyApi libs.jetbrainsAnnotations
testImplementation platform(libs.junit.bom)
testImplementation libs.junit.api
testRuntimeOnly libs.junit.engine
testRuntimeOnly libs.junit.launcher
checkstyle libs.stylecheck
compileOnly libs.jansi
}
spotless {
ratchetFrom 'origin/trunk'
java {
endWithNewline()
indentWithSpaces 2
importOrderFile rootProject.file('.spotless/kyori.importorder')
trimTrailingWhitespace()
}
}
eclipse {
classpath {
file.whenMerged { classpath ->
classpath.entries.each { entry ->
if (entry instanceof org.gradle.plugins.ide.eclipse.model.SourceFolder) {
def extraReads = ['org.junit.jupiter.api']
.collect { "net.kyori.ansi=$it" }
.join(':')
entry.entryAttributes['add-reads'] = extraReads
entry.entryAttributes['module'] = 'true'
}
}
}
}
}
sourceSets {
main {
multirelease {
alternateVersions(9, 22)
moduleName "net.kyori.ansi"
requireAllPackagesExported()
}
}
}
indraSonatype {
useAlternateSonatypeOSSHost("s01")
}
indra {
github("KyoriPowered", "ansi") {
ci(true)
}
mitLicense()
checkstyle libs.versions.checkstyle.get()
javaVersions {
testWith(11, 17, 20)
}
signWithKeyFromPrefixedProperties("kyori")
configurePublications {
pom {
developers {
developer {
id = "kashike"
timezone = "America/Vancouver"
}
developer {
id = "lucko"
name = "Luck"
url = "https://lucko.me"
email = "git@lucko.me"
}
developer {
id = "zml"
name = "zml"
timezone = "America/Vancouver"
}
developer {
id = "Electroid"
}
}
}
}
}
indraCrossdoc {
baseUrl().set(providers.gradleProperty("javadocPublishRoot"))
}