-
Notifications
You must be signed in to change notification settings - Fork 6
/
build.gradle
101 lines (89 loc) · 2.48 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
plugins {
alias(libs.plugins.indra) apply false
alias(libs.plugins.indra.spotlessLicenser) apply false
alias(libs.plugins.indra.pluginPublish) apply false
alias(libs.plugins.gradlePluginPublish) apply false
alias(libs.plugins.eclipseApt) apply false
alias(libs.plugins.spotless)
id "eclipse"
}
group = "net.kyori"
version = "4.0.0-SNAPSHOT"
description = "KyoriPowered organizational build standards and utilities"
subprojects {
apply plugin: "java-gradle-plugin"
apply plugin: "net.kyori.indra"
apply plugin: "net.kyori.indra.licenser.spotless"
apply plugin: "com.diffplug.eclipse.apt"
apply plugin: "com.diffplug.spotless"
dependencies {
testImplementation platform(libs.junit.bom)
testImplementation libs.junit.api
testImplementation libs.junit.params
testRuntimeOnly libs.junit.engine
testRuntimeOnly libs.junit.launcher
}
if (!project.findProperty('indra.skipPublishing')) {
apply plugin: "com.gradle.plugin-publish"
apply plugin: "net.kyori.indra.publishing.gradle-plugin"
indraPluginPublishing {
bundleTags("kyori", "standard")
website("https://github.com/KyoriPowered/indra/wiki")
}
}
if ('true' == project.findProperty("skipFunctionalTests")) {
tasks.named('test') {
useJUnitPlatform {
excludeTags 'functional'
}
}
}
indra {
github("KyoriPowered", "indra") {
ci true
}
mitLicense()
javaVersions {
target 11
minimumToolchain 17
testWith(11, 17, 21)
}
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"
}
}
}
}
spotless { spot ->
ratchetFrom "origin/main/4.x"
java {
targetExclude 'src/test/resources/**'
formatAnnotations()
removeUnusedImports()
}
["java", "groovyGradle"].each {
spot."$it" {
importOrderFile rootProject.file('.spotless/kyori.importorder')
trimTrailingWhitespace()
endWithNewline()
indentWithSpaces(2)
}
}
}
publishSnapshotsTo("stellardrift", "https://repo.stellardrift.ca/repository/snapshots/")
}
}