mirror of
https://github.com/plexusorg/plugin-yml.git
synced 2024-12-22 16:25:06 +00:00
Prepare for Gradle plugin portal
This commit is contained in:
parent
2759fc9f1a
commit
9c189e6f98
2 changed files with 22 additions and 0 deletions
|
@ -4,9 +4,12 @@ plugins {
|
||||||
`java-gradle-plugin`
|
`java-gradle-plugin`
|
||||||
`kotlin-dsl`
|
`kotlin-dsl`
|
||||||
`maven-publish`
|
`maven-publish`
|
||||||
|
id("com.gradle.plugin-publish") version "0.9.8"
|
||||||
id("net.minecrell.licenser") version "0.3"
|
id("net.minecrell.licenser") version "0.3"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
val url: String by extra
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
jcenter()
|
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
|
// Workaround for https://github.com/gradle/kotlin-dsl/issues/509
|
||||||
configurations.compile.run { setExtendsFrom(extendsFrom.minus<Configuration>(configurations.embeddedKotlin)) }
|
configurations.compile.run { setExtendsFrom(extendsFrom.minus<Configuration>(configurations.embeddedKotlin)) }
|
||||||
configurations.compileOnly.extendsFrom(configurations.embeddedKotlin)
|
configurations.compileOnly.extendsFrom(configurations.embeddedKotlin)
|
||||||
|
|
|
@ -2,3 +2,4 @@ group = net.minecrell
|
||||||
name = plugin-yml
|
name = plugin-yml
|
||||||
version = 0.1.0-SNAPSHOT
|
version = 0.1.0-SNAPSHOT
|
||||||
description = A Gradle plugin that generates plugin.yml for Bukkit/BungeeCord plugins based on the Gradle project
|
description = A Gradle plugin that generates plugin.yml for Bukkit/BungeeCord plugins based on the Gradle project
|
||||||
|
url = https://github.com/Minecrell/plugin-yml
|
||||||
|
|
Loading…
Reference in a new issue