diff --git a/build.gradle.kts b/build.gradle.kts index f1d1e89..2fcf496 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -1,9 +1,10 @@ plugins { kotlin("jvm") version "1.8.0" + `maven-publish` } group = "dev.proxyfox" -version = "1.0-SNAPSHOT" +version = "1.0" repositories { mavenCentral() @@ -21,3 +22,19 @@ kotlin { jvmToolchain(17) explicitApi() } + +publishing { + publications { + register("mavenJava") { + from(components["java"]) + } + } + + repositories { + maven { + url = uri("https://maven.proxyfox.dev") + credentials.username = System.getenv("PF_MAVEN_USER") + credentials.password = System.getenv("PF_MAVEN_PASS") + } + } +}