2017-09-27 18:19:16 +00:00
|
|
|
plugins {
|
|
|
|
`java-gradle-plugin`
|
|
|
|
`kotlin-dsl`
|
|
|
|
`maven-publish`
|
2018-07-24 12:04:52 +00:00
|
|
|
id("com.gradle.plugin-publish") version "0.9.10"
|
2017-09-27 18:19:16 +00:00
|
|
|
id("net.minecrell.licenser") version "0.3"
|
|
|
|
}
|
|
|
|
|
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 {
|
2018-07-24 12:04:52 +00:00
|
|
|
compile("com.fasterxml.jackson.module:jackson-module-kotlin:2.9.6") {
|
2017-09-27 18:19:16 +00:00
|
|
|
exclude(group = "org.jetbrains.kotlin")
|
|
|
|
}
|
2018-07-24 12:04:52 +00:00
|
|
|
compile("com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.9.6")
|
2017-09-27 18:19:16 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
var sourceJar = task<Jar>("sourceJar") {
|
|
|
|
classifier = "sources"
|
|
|
|
from(java.sourceSets["main"].allSource)
|
|
|
|
}
|
|
|
|
artifacts.add("archives", sourceJar)
|
|
|
|
|
|
|
|
gradlePlugin {
|
|
|
|
(plugins) {
|
|
|
|
"bukkit" {
|
|
|
|
id = "net.minecrell.plugin-yml.bukkit"
|
|
|
|
implementationClass = "net.minecrell.pluginyml.bukkit.BukkitPlugin"
|
|
|
|
}
|
|
|
|
"bungee" {
|
|
|
|
id = "net.minecrell.plugin-yml.bungee"
|
|
|
|
implementationClass = "net.minecrell.pluginyml.bungee.BungeePlugin"
|
|
|
|
}
|
2018-07-05 04:36:00 +00:00
|
|
|
"nukkit" {
|
|
|
|
id = "net.minecrell.plugin-yml.nukkit"
|
|
|
|
implementationClass = "net.minecrell.pluginyml.nukkit.NukkitPlugin"
|
|
|
|
}
|
2017-09-27 18:19:16 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
publishing {
|
|
|
|
publications {
|
|
|
|
create<MavenPublication>("mavenJava") {
|
|
|
|
from(components["java"])
|
|
|
|
artifact(sourceJar)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
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
|
|
|
|
|
|
|
(plugins) {
|
|
|
|
"bukkit" {
|
|
|
|
id = "net.minecrell.plugin-yml.bukkit"
|
|
|
|
displayName = "plugin-yml (Bukkit)"
|
|
|
|
}
|
|
|
|
"bungee" {
|
|
|
|
id = "net.minecrell.plugin-yml.bungee"
|
|
|
|
displayName = "plugin-yml (Bungee)"
|
|
|
|
}
|
2018-07-05 04:36:00 +00:00
|
|
|
"nukkit" {
|
|
|
|
id = "net.minecrell.plugin-yml.nukkit"
|
|
|
|
displayName = "plugin-yml (Nukkit)"
|
|
|
|
}
|
2017-09-28 17:35:20 +00:00
|
|
|
}
|
|
|
|
}
|