forked from Minecrell/plugin-yml
-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle.kts
64 lines (58 loc) · 2.02 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
plugins {
`java-gradle-plugin`
`kotlin-dsl`
id("com.gradle.plugin-publish") version "1.3.0"
id("com.diffplug.spotless") version "6.25.0"
}
val url: String by extra
repositories {
gradlePluginPortal()
}
dependencies {
implementation("com.fasterxml.jackson.module:jackson-module-kotlin:2.18.1") {
exclude(group = "org.jetbrains.kotlin")
}
implementation("com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.18.1")
}
spotless {
kotlin{
licenseHeaderFile(rootProject.file("HEADER.txt"))
}
java {
target("**/*.java")
}
}
gradlePlugin {
website = url
vcsUrl = url
plugins {
register("bukkit") {
id = "de.eldoria.plugin-yml.bukkit"
displayName = "plugin-yml (Bukkit)"
description = "Generate plugin.yml for Bukkit plugins based on the Gradle project"
implementationClass = "net.minecrell.pluginyml.bukkit.BukkitPlugin"
tags = listOf("bukkit")
}
register("bungee") {
id = "de.eldoria.plugin-yml.bungee"
displayName = "plugin-yml (BungeeCord)"
description = "Generate bungee.yml for BungeeCord plugins based on the Gradle project"
implementationClass = "net.minecrell.pluginyml.bungee.BungeePlugin"
tags = listOf("bungee")
}
register("nukkit") {
id = "de.eldoria.plugin-yml.nukkit"
displayName = "plugin-yml (Nukkit)"
description = "Generate nukkit.yml for Nukkit plugins based on the Gradle project"
implementationClass = "net.minecrell.pluginyml.nukkit.NukkitPlugin"
tags = listOf("nukkit")
}
register("paper") {
id = "de.eldoria.plugin-yml.paper"
displayName = "plugin-yml (Paper)"
description = "Generate paper-plugin.yml for Paper plugins based on the Gradle project"
implementationClass = "net.minecrell.pluginyml.paper.PaperPlugin"
tags = listOf("paper")
}
}
}