From 5357b05f4a36c465ae7c272c810dba91a7383348 Mon Sep 17 00:00:00 2001 From: sergeych Date: Thu, 25 Sep 2025 18:08:48 +0400 Subject: [PATCH] fixed publishing for newer kotlin --- .gitignore | 1 + build.gradle.kts | 29 ++++++++++++++--------------- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/.gitignore b/.gitignore index abe0144..ca0502d 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,4 @@ /node_modules .kotlin /.gigaide/gigaide.properties +/java_pid40366.hprof diff --git a/build.gradle.kts b/build.gradle.kts index ec0778a..e31e823 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -98,25 +98,24 @@ kotlin { } } } +} - publishing { - val mavenToken by lazy { - File("${System.getProperty("user.home")}/.gitea_token").readText() - } - repositories { - maven { - credentials(HttpHeaderCredentials::class) { - name = "Authorization" - value = mavenToken - } - url = uri("https://gitea.sergeych.net/api/packages/SergeychWorks/maven") - authentication { - create("Authorization", HttpHeaderAuthentication::class) - } +publishing { + val mavenToken by lazy { + File("${System.getProperty("user.home")}/.gitea_token").readText() + } + repositories { + maven { + credentials(HttpHeaderCredentials::class) { + name = "Authorization" + value = mavenToken + } + url = uri("https://gitea.sergeych.net/api/packages/SergeychWorks/maven") + authentication { + create("Authorization", HttpHeaderAuthentication::class) } } } - } tasks.dokkaHtml.configure {