From 02eb0f5804016d36dc7baa4eddf5da74ca22ece5 Mon Sep 17 00:00:00 2001 From: dankito Date: Thu, 22 Aug 2024 03:46:47 +0200 Subject: [PATCH] Configured publishing fints4k-banking-client to codinux Maven repo --- FinTs4jBankingClient/build.gradle.kts | 21 +++++++++++++++++++-- build.gradle.kts | 3 +++ settings.gradle.kts | 3 +++ 3 files changed, 25 insertions(+), 2 deletions(-) diff --git a/FinTs4jBankingClient/build.gradle.kts b/FinTs4jBankingClient/build.gradle.kts index 57c13316..bc7af90a 100644 --- a/FinTs4jBankingClient/build.gradle.kts +++ b/FinTs4jBankingClient/build.gradle.kts @@ -4,6 +4,8 @@ import org.jetbrains.kotlin.gradle.targets.js.dsl.ExperimentalWasmDsl plugins { kotlin("multiplatform") + + id("maven-publish") } @@ -117,6 +119,21 @@ kotlin { -ext["customArtifactId"] = "fints4k-banking-client" +//ext["customArtifactId"] = "fints4k-banking-client" +// +//apply(from = "../gradle/scripts/publish-codinux.gradle.kts") -apply(from = "../gradle/scripts/publish-codinux.gradle.kts") \ No newline at end of file + +publishing { + repositories { + maven { + name = "codinux" + url = uri("https://maven.dankito.net/api/packages/codinux/maven") + + credentials(PasswordCredentials::class.java) { + username = project.property("codinuxRegistryWriterUsername") as String + password = project.property("codinuxRegistryWriterPassword") as String + } + } + } +} \ No newline at end of file diff --git a/build.gradle.kts b/build.gradle.kts index 55e0bea2..e0b6e176 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -16,6 +16,9 @@ allprojects { repositories { mavenCentral() + maven { + setUrl("https://maven.dankito.net/api/packages/codinux/maven") + } } diff --git a/settings.gradle.kts b/settings.gradle.kts index 777137d1..741c8aa6 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -28,3 +28,6 @@ include("BankingClientModel") include("BankingClient") include("FinTs4jBankingClient") +project(":FinTs4jBankingClient").apply { + name = "fints4k-banking-client" +}