-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
83 lines (69 loc) · 2.03 KB
/
build.gradle.kts
File metadata and controls
83 lines (69 loc) · 2.03 KB
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
import com.diffplug.gradle.spotless.SpotlessExtension
import com.diffplug.gradle.spotless.SpotlessPlugin
import net.kyori.indra.IndraCheckstylePlugin
import net.kyori.indra.IndraPlugin
import net.kyori.indra.IndraPublishingPlugin
import xyz.jpenilla.runpaper.task.RunServer
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 "2.2.10" apply false
id("com.diffplug.spotless") version "7.2.1"
}
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>()
}
java {
disableAutoTargetJvm()
}
repositories {
mavenCentral()
sonatype.snapshots()
maven("https://repo.papermc.io/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("1.7.1")
}
}
// Configure any existing RunServerTasks
tasks.withType<RunServer> {
minecraftVersion("1.19.4")
jvmArgs("-Dio.papermc.paper.suppress.sout.nags=true")
}
}