Prepare for Gradle plugin portal

This commit is contained in:
Minecrell 2017-09-28 19:35:20 +02:00
parent 2759fc9f1a
commit 9c189e6f98
2 changed files with 22 additions and 0 deletions

View file

@ -4,9 +4,12 @@ plugins {
`java-gradle-plugin`
`kotlin-dsl`
`maven-publish`
id("com.gradle.plugin-publish") version "0.9.8"
id("net.minecrell.licenser") version "0.3"
}
val url: String by extra
repositories {
jcenter()
}
@ -46,6 +49,24 @@ publishing {
}
}
pluginBundle {
website = url
vcsUrl = url
description = project.description
tags = listOf("bukkit", "bungee")
(plugins) {
"bukkit" {
id = "net.minecrell.plugin-yml.bukkit"
displayName = "plugin-yml (Bukkit)"
}
"bungee" {
id = "net.minecrell.plugin-yml.bungee"
displayName = "plugin-yml (Bungee)"
}
}
}
// Workaround for https://github.com/gradle/kotlin-dsl/issues/509
configurations.compile.run { setExtendsFrom(extendsFrom.minus<Configuration>(configurations.embeddedKotlin)) }
configurations.compileOnly.extendsFrom(configurations.embeddedKotlin)

View file

@ -2,3 +2,4 @@ group = net.minecrell
name = plugin-yml
version = 0.1.0-SNAPSHOT
description = A Gradle plugin that generates plugin.yml for Bukkit/BungeeCord plugins based on the Gradle project
url = https://github.com/Minecrell/plugin-yml