-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
88 lines (77 loc) · 1.98 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
plugins {
alias libs.plugins.errorprone
alias libs.plugins.spotless
alias libs.plugins.indra
alias libs.plugins.indra.checkstyle
alias libs.plugins.indra.licenserSpotless
alias libs.plugins.indra.sonatype
alias libs.plugins.nexusPublish
}
group = "net.kyori"
version = "1.4.1-SNAPSHOT"
description = "Helpful API for writing Gradle plugins"
indraSonatype {
useAlternateSonatypeOSSHost("s01")
}
dependencies {
compileOnlyApi libs.jetbrainsAnnotations
implementation gradleApi()
testImplementation platform(libs.junit.bom)
testImplementation libs.junit.api
testRuntimeOnly libs.junit.engine
testRuntimeOnly libs.junit.launcher
}
tasks.withType(Test).configureEach {
if (!name.contains("Java8")) {
jvmArgs(["--add-opens=java.base/java.lang=ALL-UNNAMED"]) // for ProjectBuilder tests
}
}
allprojects {
apply plugin: "net.kyori.indra"
apply plugin: "net.kyori.indra.licenser.spotless"
apply plugin: "net.kyori.indra.publishing"
apply plugin: "net.kyori.indra.checkstyle"
apply plugin: "net.ltgt.errorprone"
dependencies {
checkstyle(libs.stylecheck)
errorprone(libs.errorprone)
}
spotless {
ratchetFrom 'origin/main'
java {
endWithNewline()
indentWithSpaces(2)
importOrderFile rootProject.file('.spotless/kyori.importorder')
formatAnnotations()
removeUnusedImports()
}
}
indra {
github("KyoriPowered", "mammoth") {
ci true
publishing true
}
mitLicense()
checkstyle(libs.versions.checkstyle.get())
signWithKeyFromPrefixedProperties("kyori")
configurePublications {
pom {
organization {
name = "KyoriPowered"
url = "https://kyori.net"
}
developers {
developer {
id = "kashike"
timezone = "America/Vancouver"
}
developer {
id = "zml"
email = "zml at kyori [.] net"
timezone = "America/Vancouver"
}
}
}
}
}
}