mirror of
https://github.com/plexusorg/plugin-yml.git
synced 2024-12-22 16:25:06 +00:00
62 lines
1.7 KiB
Text
62 lines
1.7 KiB
Text
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"
|
|
}
|
|
|
|
val url: String by extra
|
|
|
|
repositories {
|
|
gradlePluginPortal()
|
|
}
|
|
|
|
dependencies {
|
|
implementation("com.fasterxml.jackson.module:jackson-module-kotlin:2.12.3") {
|
|
exclude(group = "org.jetbrains.kotlin")
|
|
}
|
|
implementation("com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.12.3")
|
|
}
|
|
|
|
java {
|
|
withSourcesJar()
|
|
}
|
|
|
|
gradlePlugin {
|
|
plugins {
|
|
register("bukkit") {
|
|
id = "net.minecrell.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"
|
|
}
|
|
register("bungee") {
|
|
id = "net.minecrell.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"
|
|
}
|
|
register("nukkit") {
|
|
id = "net.minecrell.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"
|
|
}
|
|
}
|
|
}
|
|
|
|
publishing {
|
|
publications {
|
|
register<MavenPublication>("mavenJava") {
|
|
from(components["java"])
|
|
}
|
|
}
|
|
}
|
|
|
|
pluginBundle {
|
|
website = url
|
|
vcsUrl = url
|
|
description = project.description
|
|
tags = listOf("bukkit", "bungee", "nukkit")
|
|
}
|