From 5a511ea3f3f07d7517e0c5150168ebe67b45b76c Mon Sep 17 00:00:00 2001 From: Swordsteel Date: Mon, 7 Apr 2025 17:35:30 +0200 Subject: [PATCH] use hlaeja plugins - update README.md for publish - add hlaeja library plugin - use catalog version for plugins --- README.md | 14 ++++++++++++++ build.gradle.kts | 21 +++------------------ 2 files changed, 17 insertions(+), 18 deletions(-) diff --git a/README.md b/README.md index e6d2d3f..58d0b17 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,20 @@ {description} +## Publishing library + +### Publish library locally + +```shell +./gradlew clean build publishToMavenLocal +``` + +### Publish library to repository + +```shell +./gradlew clean build publish +``` + ### Global gradle properties To authenticate with Gradle to access repositories that require authentication, you can set your user and token in the `gradle.properties` file. diff --git a/build.gradle.kts b/build.gradle.kts index f98b69a..700b7f4 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -1,24 +1,9 @@ plugins { - kotlin("jvm") version "1.9.25" -} - -group = "ltd.lulz" - -java { - toolchain { - languageVersion = JavaLanguageVersion.of(17) - } + alias(hlaeja.plugins.kotlin.jvm) + alias(hlaeja.plugins.ltd.hlaeja.plugin.library) } dependencies { } -kotlin { - compilerOptions { - freeCompilerArgs.addAll("-Xjsr305=strict") - } -} - -tasks.withType { - useJUnitPlatform() -} +group = "ltd.lulz"