From 0e47e22cbb02c9de420eb9fc90ee9c324e06d16b Mon Sep 17 00:00:00 2001 From: Potatoboy9999 <51728317+PotatoPresident@users.noreply.github.com> Date: Wed, 1 Apr 2026 12:28:31 -0700 Subject: [PATCH] Setup maven publishing --- build.gradle.kts | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index 5f2d37d8..e19b6689 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -129,13 +129,21 @@ kotlin { publishing { publications { create("mavenJava") { - from(components["java"]) + artifact(tasks.named("jar")) + artifact(tasks.named("sourcesJar")) } } // select the repositories you want to publish to repositories { - // mavenLocal() + maven { + name = "potatoGardenRepository" + url = uri("https://maven.potato.garden/releases") + credentials(PasswordCredentials::class) + authentication { + create("basic") + } + } } }