diff --git a/lib/build.gradle.kts b/lib/build.gradle.kts index a4aec14..a448311 100644 --- a/lib/build.gradle.kts +++ b/lib/build.gradle.kts @@ -2,8 +2,13 @@ plugins { alias(libs.plugins.kotlin.jvm) `java-library` + + id("maven-publish") } +group = "foundation.esoteric" +version = "0.0.1" + repositories { mavenCentral() @@ -33,6 +38,21 @@ java { } } +tasks.named("jar") { + archiveFileName.set("${rootProject.name}-${project.version}.jar") +} + tasks.named("test") { useJUnitPlatform() } + +publishing { + publications { + create("mavenJava") { + from(components["java"]) + groupId = group.toString() + artifactId = rootProject.name + version = version.toString() + } + } +}