-
Notifications
You must be signed in to change notification settings - Fork 13
/
build.gradle.kts
81 lines (68 loc) · 2.09 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
import com.diffplug.gradle.spotless.SpotlessExtension
import com.diffplug.gradle.spotless.SpotlessPlugin
import com.diffplug.gradle.spotless.SpotlessTask
import net.kyori.indra.IndraCheckstylePlugin
import net.kyori.indra.IndraPlugin
import net.kyori.indra.IndraPublishingPlugin
import net.kyori.indra.repository.sonatypeSnapshots
import xyz.jpenilla.runpaper.task.RunServerTask
plugins {
alias(libs.plugins.indra)
alias(libs.plugins.indra.publishing) apply false
alias(libs.plugins.indra.publishing.sonatype)
alias(libs.plugins.indra.checkstyle) apply false
alias(libs.plugins.runPaper) apply false
// Kotlin plugin prefers to be applied to parent when it's used in multiple sub-modules.
kotlin("jvm") version "1.8.21" apply false
id("com.diffplug.spotless") version "6.18.0"
}
group = "org.incendo.interfaces"
version = "1.0.0-SNAPSHOT"
description = "A builder-style user interface library."
subprojects {
apply<IndraPlugin>()
apply<IndraCheckstylePlugin>()
apply<SpotlessPlugin>()
// Don't publish examples
if (!name.startsWith("example-")) {
apply<IndraPublishingPlugin>()
}
repositories {
mavenCentral()
sonatypeSnapshots()
maven("https://papermc.io/repo/repository/maven-public/")
}
dependencies {
compileOnlyApi(rootProject.libs.checker.qual)
}
indra {
mitLicense()
javaVersions {
minimumToolchain(17)
target(17)
}
github("incendo", "interfaces") {
ci(true)
}
configurePublications {
pom {
developers {
developer {
id.set("kadenscott")
email.set("kscottdev@gmail.com")
}
}
}
}
}
configure<SpotlessExtension> {
kotlin {
ktlint("0.47.1")
}
}
// Configure any existing RunServerTasks
tasks.withType<RunServerTask> {
minecraftVersion("1.19.4")
jvmArgs("-Dio.papermc.paper.suppress.sout.nags=true")
}
}