-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle.kts
74 lines (61 loc) · 1.86 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
plugins {
id("org.spongepowered.gradle.sponge.dev") version "1.1.0-SNAPSHOT"
id("net.kyori.indra.checkstyle") version "2.0.1"
id("net.kyori.indra.publishing.sonatype") version "2.0.1"
}
dependencies {
compileOnlyApi("org.checkerframework:checker-qual:3.12.0")
}
tasks.jar {
manifest.attributes(
"Automatic-Module-Name" to "org.spongepowered.observer"
)
}
allprojects {
apply(plugin = "org.spongepowered.gradle.sponge.dev")
apply(plugin = "net.kyori.indra.publishing")
apply(plugin = "net.kyori.indra.checkstyle")
repositories {
org.spongepowered.gradle.convention.ConventionConstants.spongeRepo(this)
}
spongeConvention {
repository("observer") {
ci(true)
publishing(true)
}
mitLicense()
licenseParameters {
this["organization"] = rootProject.property("organization")
}
}
val sourceOutput by configurations.registering
val main by sourceSets
dependencies {
main.allSource.srcDirs.forEach {
add(sourceOutput.name, project.files(it.relativeTo(project.projectDir).path))
}
testImplementation("org.junit.jupiter:junit-jupiter-api:5.7.1")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.7.1")
}
tasks {
jar {
}
javadoc {
options {
(this as StandardJavadocDocletOptions).apply {
links(
"http://www.slf4j.org/apidocs/",
"https://google.github.io/guava/releases/21.0/api/docs/",
"https://google.github.io/guice/api-docs/4.1/javadoc/"
)
}
}
}
}
}
subprojects {
group = "${rootProject.group}.${rootProject.name}"
dependencies {
implementation(rootProject)
}
}