diff --git a/gradle.properties b/gradle.properties index 070f46f..f17f8a9 100644 --- a/gradle.properties +++ b/gradle.properties @@ -2,7 +2,4 @@ org.gradle.jvmargs=-Xmx3G # Mod properties -mod.name=World Host -mod.id=world-host mod.version=0.4.14 -mod.group=io.github.gaming32 diff --git a/version.gradle.kts b/version.gradle.kts index fc4a53d..3db3301 100644 --- a/version.gradle.kts +++ b/version.gradle.kts @@ -23,6 +23,8 @@ plugins { fun Any.setGroovyProperty(name: String, value: Any) = withGroovyBuilder { metaClass }.setProperty(this, name, value) fun Any.getGroovyProperty(name: String): Any = withGroovyBuilder { metaClass }.getProperty(this, name)!! +group = "io.github.gaming32" + val modVersion = project.properties["mod.version"] as String val mcVersionString by extra(name.substringBefore("-")) val loaderName by extra(name.substringAfter("-")) @@ -465,3 +467,12 @@ tasks.withType { disableRefmap() } } + +publishing { + publications { + create("maven") { + from(components["java"]) + artifactId = "world-host" + } + } +}