From 4878767a97c9ca78ec279e5a33cd7ae5b7b65493 Mon Sep 17 00:00:00 2001 From: nea Date: Wed, 9 Aug 2023 23:27:09 +0200 Subject: JSR and publishing --- build.gradle.kts | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'build.gradle.kts') diff --git a/build.gradle.kts b/build.gradle.kts index 0a2df9e..48834ea 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -1,5 +1,15 @@ plugins { kotlin("jvm").version("1.7.20"); java; `maven-publish` } +group = "moe.nea" +version = "1.0.0" repositories { mavenCentral() } java.toolchain { languageVersion.set(JavaLanguageVersion.of(8)) } sourceSets.main { java.setSrcDirs(listOf("src/")); resources.setSrcDirs(listOf("res")) } sourceSets.test { java.setSrcDirs(listOf("test/src")); resources.setSrcDirs(listOf("test/res")) } + +publishing { + publications { + create("maven") { + from(components["java"]) + } + } +} -- cgit