-
Notifications
You must be signed in to change notification settings - Fork 19
/
build.gradle
84 lines (72 loc) · 1.79 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
plugins {
id 'java'
alias(libs.plugins.eclipseApt)
alias(libs.plugins.indra.sonatype)
alias(libs.plugins.nexusPublish)
alias(libs.plugins.ideaExt)
}
indraSonatype {
useAlternateSonatypeOSSHost("s01")
}
allprojects {
// subprojects would not configure second layer subprojects
if (project == rootProject) {
return
}
apply plugin: "net.kyori.indra"
apply plugin: "net.kyori.indra.checkstyle"
apply plugin: "net.kyori.indra.licenser.spotless"
apply plugin: "com.diffplug.eclipse.apt"
apply plugin: "org.jetbrains.gradle.plugin.idea-ext"
indraSpotlessLicenser {
licenseHeaderFile(rootProject.file("LICENSE_HEADER"))
}
spotless {
ratchetFrom("origin/mc/1.21")
java {
importOrderFile(rootProject.file(".spotless/kyori.importorder"))
trimTrailingWhitespace()
endWithNewline()
indentWithSpaces(2)
removeUnusedImports()
}
}
indra {
github("KyoriPowered", "adventure-platform-mod") {
ci(true)
}
javaVersions().target(21)
mitLicense()
checkstyle(libs.versions.checkstyle.get())
signWithKeyFromPrefixedProperties("kyori")
configurePublications {
pom {
developers {
developer {
id = "kashike"
timezone = "America/Vancouver"
}
developer {
id = "lucko"
name = "Luck"
url = "https://lucko.me"
email = "[email protected]"
}
developer {
id = "zml"
name = "zml"
timezone = "America/Vancouver"
}
developer {
id = "Electroid"
}
developer {
id.set("jmp")
name.set("Jason Penilla")
url.set("https://github.com/jpenilla")
}
}
}
}
}
}