From c14a0bec0325e88587fa32a908d4d03ebae50490 Mon Sep 17 00:00:00 2001 From: Andrew Golovashevich Date: Fri, 5 Sep 2025 19:40:59 +0300 Subject: [PATCH] Publishing v0.1 --- build.gradle.kts | 29 +++++++++++++++++++++++++---- gradle.properties | 4 +++- lib/closeable-state | 2 +- settings.gradle.kts | 2 +- 4 files changed, 30 insertions(+), 7 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index f42b17f..806c321 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -1,9 +1,23 @@ -plugins { - kotlin("multiplatform") version "2.2.10" +import ru.landgrafhomyak.kotlin.kmp_gradle_build_helper.defineXomrkGiteaMavenRepo + +buildscript { + repositories { + mavenCentral() + maven("https://maven.landgrafhomyak.ru/") + } + + dependencies { + classpath("ru.landgrafhomyak.kotlin:kotlin-mpp-gradle-build-helper:v0.3k2.1.10") + } } -group = "ru.landgrafhomyak.utilities" -version = "1.0-SNAPSHOT" +plugins { + kotlin("multiplatform") version "2.2.10" + `maven-publish` +} + +group = "ru.landgrafhomyak.utility" +version = "0.1" repositories { mavenCentral() @@ -25,6 +39,7 @@ kotlin { sourceSets { commonMain { dependencies { + implementation("org.jetbrains.kotlin:kotlin-stdlib:${this@kotlin.coreLibrariesVersion}") implementation("ru.landgrafhomyak.utility:highlevel-try-finally:0.6") implementation("ru.landgrafhomyak.utility:closeable-state-1:1.2") } @@ -56,4 +71,10 @@ kotlin { macosArm64Main { dependsOn(macosMain) } macosArm64Test { dependsOn(macosTest) } } +} + +publishing { + repositories { + defineXomrkGiteaMavenRepo("LanguageUtilities") + } } \ No newline at end of file diff --git a/gradle.properties b/gradle.properties index 3f87a74..37cac64 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1 +1,3 @@ -kotlin.mpp.applyDefaultHierarchyTemplate=false \ No newline at end of file +kotlin.mpp.applyDefaultHierarchyTemplate=false +kotlin.native.enableKlibsCrossCompilation=true +kotlin.stdlib.default.dependency=false \ No newline at end of file diff --git a/lib/closeable-state b/lib/closeable-state index e578517..129cee2 160000 --- a/lib/closeable-state +++ b/lib/closeable-state @@ -1 +1 @@ -Subproject commit e57851782134ca0613646efdf7b44d2e5a23de08 +Subproject commit 129cee26caa14c18ab9a11a0a9a846b06211fd40 diff --git a/settings.gradle.kts b/settings.gradle.kts index da6fda2..4c2a7b2 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -1,4 +1,4 @@ -rootProject.name = "kotlin-native-interop-stdlib-0" +rootProject.name = "kotlin-native-interop-utilities-0" includeBuild("lib/closeable-state") includeBuild("lib/highlevel-try-finally") \ No newline at end of file