Skip to content

Commit

Permalink
Setup publishing for Maven Local
Browse files Browse the repository at this point in the history
  • Loading branch information
Gaming32 committed Jul 11, 2024
1 parent 06bfe71 commit e37d3b4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
3 changes: 0 additions & 3 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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
11 changes: 11 additions & 0 deletions version.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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("-"))
Expand Down Expand Up @@ -465,3 +467,12 @@ tasks.withType<RemapJarTask> {
disableRefmap()
}
}

publishing {
publications {
create<MavenPublication>("maven") {
from(components["java"])
artifactId = "world-host"
}
}
}

0 comments on commit e37d3b4

Please sign in to comment.