repositories {
gradlePluginPortal()
jcenter()
}
plugins {
`kotlin-dsl`
`maven-publish`
group = "com.thebrokenrail.scriptcraft"
base.archivesBaseName = "plugin"
version = "1.0.0"
gradlePlugin {
register("scriptcraft-plugin") {
id = "${group}.${base.archivesBaseName}"
implementationClass = "ScriptCraftPlugin"
publishing {
project.afterEvaluate {
publications {
named<MavenPublication>("pluginMaven") {
artifactId = base.archivesBaseName
maven {
url = uri("/data/maven")