Skip to content

Commit

Permalink
maven?
Browse files Browse the repository at this point in the history
  • Loading branch information
mrsterner committed Jun 10, 2024
1 parent 480e466 commit 5b21d1a
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ plugins {
}

version = property("mod_version")!!
group = property("mod_group_id")!!

val port_lib_modules: String by extra

Expand Down Expand Up @@ -119,4 +120,18 @@ java {
// if it is present.
// If you remove this line, sources will not be generated.
withSourcesJar()
}

publishing {
publications {
create<MavenPublication>("mavenJava") {
artifactId = base.archivesName.get()
from(components.getByName("java"))
}
}
repositories {
maven {
url = uri("file://${System.getenv("local_maven")}")
}
}
}

0 comments on commit 5b21d1a

Please sign in to comment.