plugin-yml/build.gradle.kts

63 lines
1.7 KiB
Plaintext
Raw Normal View History

2017-09-27 18:19:16 +00:00
plugins {
`java-gradle-plugin`
`kotlin-dsl`
`maven-publish`
id("com.gradle.plugin-publish") version "0.14.0"
id("org.cadixdev.licenser") version "0.6.0"
2017-09-27 18:19:16 +00:00
}
2017-09-28 17:35:20 +00:00
val url: String by extra
2017-09-27 18:19:16 +00:00
repositories {
2018-07-24 12:04:52 +00:00
gradlePluginPortal()
2017-09-27 18:19:16 +00:00
}
dependencies {
implementation("com.fasterxml.jackson.module:jackson-module-kotlin:2.12.3") {
2017-09-27 18:19:16 +00:00
exclude(group = "org.jetbrains.kotlin")
}
implementation("com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.12.3")
2017-09-27 18:19:16 +00:00
}
java {
withSourcesJar()
2017-09-27 18:19:16 +00:00
}
gradlePlugin {
plugins {
register("bukkit") {
2017-09-27 18:19:16 +00:00
id = "net.minecrell.plugin-yml.bukkit"
displayName = "plugin-yml (Bukkit)"
description = "Generate plugin.yml for Bukkit plugins based on the Gradle project"
2017-09-27 18:19:16 +00:00
implementationClass = "net.minecrell.pluginyml.bukkit.BukkitPlugin"
}
register("bungee") {
2017-09-27 18:19:16 +00:00
id = "net.minecrell.plugin-yml.bungee"
displayName = "plugin-yml (BungeeCord)"
description = "Generate bungee.yml for BungeeCord plugins based on the Gradle project"
2017-09-27 18:19:16 +00:00
implementationClass = "net.minecrell.pluginyml.bungee.BungeePlugin"
}
register("nukkit") {
2018-07-05 04:36:00 +00:00
id = "net.minecrell.plugin-yml.nukkit"
displayName = "plugin-yml (Nukkit)"
description = "Generate nukkit.yml for Nukkit plugins based on the Gradle project"
2018-07-05 04:36:00 +00:00
implementationClass = "net.minecrell.pluginyml.nukkit.NukkitPlugin"
}
2017-09-27 18:19:16 +00:00
}
}
publishing {
publications {
register<MavenPublication>("mavenJava") {
2017-09-27 18:19:16 +00:00
from(components["java"])
}
}
}
2017-09-28 17:35:20 +00:00
pluginBundle {
website = url
vcsUrl = url
description = project.description
2018-07-05 04:36:00 +00:00
tags = listOf("bukkit", "bungee", "nukkit")
2017-09-28 17:35:20 +00:00
}