forked from spigradle/spigradle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
83 lines (76 loc) · 2.77 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
82
83
import kr.entree.spigradle.build.VersionTask
plugins {
`kotlin-dsl`
`kotlin-kapt`
`java-gradle-plugin`
`spigradle-meta`
`spigradle-publish`
`spigradle-docs`
}
group = "kr.entree"
version = VersionTask.readVersion(project)
description = "An intelligent Gradle plugin for developing Minecraft resources."
gradlePlugin {
plugins {
create("spigradle") {
id = "kr.entree.spigradle.base"
implementationClass = "kr.entree.spigradle.module.common.SpigradlePlugin"
}
create("spigot") {
id = "kr.entree.spigradle"
implementationClass = "kr.entree.spigradle.module.spigot.SpigotPlugin"
}
create("bungee") {
id = "kr.entree.spigradle.bungee"
implementationClass = "kr.entree.spigradle.module.bungee.BungeePlugin"
}
create("nukkit") {
id = "kr.entree.spigradle.nukkit"
implementationClass = "kr.entree.spigradle.module.nukkit.NukkitPlugin"
}
}
}
repositories {
jcenter()
gradlePluginPortal()
maven { setUrl("https://hub.spigotmc.org/nexus/content/repositories/snapshots/") }
maven { setUrl("https://oss.sonatype.org/content/repositories/snapshots/") }
}
dependencies {
val jacksonVersion = "2.11.0"
implementation(kotlin("stdlib-jdk8"))
implementation("com.google.guava:guava:29.0-jre")
implementation("com.fasterxml.jackson.core:jackson-core:$jacksonVersion")
implementation("com.fasterxml.jackson.core:jackson-annotations:$jacksonVersion")
implementation("com.fasterxml.jackson.module:jackson-module-kotlin:$jacksonVersion")
implementation("com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:$jacksonVersion")
implementation("org.ow2.asm:asm:8.0.1")
implementation("gradle.plugin.org.jetbrains.gradle.plugin.idea-ext:gradle-idea-ext:0.8.1")
implementation("kr.entree:spigradle-annotations:2.1.0")
kapt("com.google.auto.service:auto-service:1.0-rc7")
compileOnly("org.spigotmc:spigot-api:1.15.2-R0.1-SNAPSHOT")
testImplementation("org.junit.jupiter:junit-jupiter-api:5.6.2")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.6.2")
testImplementation(kotlin("test"))
testImplementation(kotlin("test-junit5"))
testImplementation(gradleTestKit())
}
configurations {
implementation.get().dependencies += kapt.get().dependencies
testImplementation.get().dependencies += implementation.get().dependencies
}
tasks {
compileKotlin {
kotlinOptions {
freeCompilerArgs = listOf("-Xopt-in=kotlin.RequiresOptIn")
}
}
test {
useJUnitPlatform()
maxParallelForks = 4
testLogging {
events("passed", "skipped", "failed")
}
dependsOn(getByName("publishToMavenLocal"))
}
}