Skip to content

Commit 10618d6

Browse files
committed
Maven publish
1 parent d4ae15a commit 10618d6

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

build.gradle.kts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,3 +254,15 @@ java {
254254
sourceCompatibility = JavaVersion.VERSION_21
255255
targetCompatibility = JavaVersion.VERSION_21
256256
}
257+
258+
publishing {
259+
publications {
260+
create<MavenPublication>("maven") {
261+
groupId = mavenGroup
262+
artifactId = modId
263+
version = "$modVersion+$minecraftVersion"
264+
265+
from(components["java"])
266+
}
267+
}
268+
}

0 commit comments

Comments
 (0)