plugin-yml/build.gradle.kts

74 lines
2.2 KiB
Plaintext
Raw Normal View History

2017-09-27 18:19:16 +00:00
plugins {
`java-gradle-plugin`
`kotlin-dsl`
`maven-publish`
2021-12-03 18:24:43 +00:00
id("com.gradle.plugin-publish") version "0.18.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 {
implementation("com.fasterxml.jackson.module:jackson-module-kotlin:2.13.0") {
2017-09-27 18:19:16 +00:00
exclude(group = "org.jetbrains.kotlin")
}
implementation("com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.13.0")
2017-09-27 18:19:16 +00:00
}
java {
withSourcesJar()
2017-09-27 18:19:16 +00:00
}
gradlePlugin {
plugins {
register("bukkit") {
2017-09-27 18:19:16 +00:00
id = "net.minecrell.plugin-yml.bukkit"
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"
}
register("bungee") {
2017-09-27 18:19:16 +00:00
id = "net.minecrell.plugin-yml.bungee"
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"
}
register("nukkit") {
2018-07-05 04:36:00 +00:00
id = "net.minecrell.plugin-yml.nukkit"
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 {
register<MavenPublication>("mavenJava") {
2017-09-27 18:19:16 +00:00
from(components["java"])
}
}
2022-04-10 22:41:07 +00:00
repositories {
maven {
2022-04-10 22:49:30 +00:00
val releasesRepoUrl = uri("https://nexus.telesphoreo.me/repository/gradle-plugins-releases/")
val snapshotsRepoUrl = uri("https://nexus.telesphoreo.me/repository/gradle-plugins-snapshots/")
url = if (version.toString().endsWith("-SNAPSHOT")) snapshotsRepoUrl else releasesRepoUrl
2022-04-10 22:41:07 +00:00
credentials {
username = System.getenv("plexUser")
password = System.getenv("plexPassword")
}
}
}
}
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
}