2017-09-27 18:19:16 +00:00
|
|
|
plugins {
|
|
|
|
`java-gradle-plugin`
|
|
|
|
`kotlin-dsl`
|
|
|
|
`maven-publish`
|
2021-04-30 08:25:25 +00:00
|
|
|
id("com.gradle.plugin-publish") version "0.14.0"
|
2021-08-27 10:16:09 +00:00
|
|
|
id("org.cadixdev.licenser") version "0.6.1"
|
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 {
|
2021-04-30 08:25:25 +00:00
|
|
|
implementation("com.fasterxml.jackson.module:jackson-module-kotlin:2.12.3") {
|
2017-09-27 18:19:16 +00:00
|
|
|
exclude(group = "org.jetbrains.kotlin")
|
|
|
|
}
|
2021-04-30 08:25:25 +00:00
|
|
|
implementation("com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.12.3")
|
2017-09-27 18:19:16 +00:00
|
|
|
}
|
|
|
|
|
2021-04-30 08:25:25 +00:00
|
|
|
java {
|
|
|
|
withSourcesJar()
|
2017-09-27 18:19:16 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
gradlePlugin {
|
2021-04-30 08:25:25 +00:00
|
|
|
plugins {
|
|
|
|
register("bukkit") {
|
2017-09-27 18:19:16 +00:00
|
|
|
id = "net.minecrell.plugin-yml.bukkit"
|
2021-04-30 08:25:25 +00:00
|
|
|
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"
|
|
|
|
}
|
2021-04-30 08:25:25 +00:00
|
|
|
register("bungee") {
|
2017-09-27 18:19:16 +00:00
|
|
|
id = "net.minecrell.plugin-yml.bungee"
|
2021-04-30 08:25:25 +00:00
|
|
|
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"
|
|
|
|
}
|
2021-04-30 08:25:25 +00:00
|
|
|
register("nukkit") {
|
2018-07-05 04:36:00 +00:00
|
|
|
id = "net.minecrell.plugin-yml.nukkit"
|
2021-04-30 08:25:25 +00:00
|
|
|
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 {
|
2021-04-30 08:25:25 +00:00
|
|
|
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
|
|
|
}
|