From 86cada89124885bc3791c76fc2607c1901c125a1 Mon Sep 17 00:00:00 2001 From: Florian Roks Date: Sat, 15 Jun 2024 15:42:37 +0200 Subject: [PATCH] update release plugin for mavencentral --- .github/workflows/publish_on_tag.yml | 2 +- build.gradle.kts | 2 +- buildSrc/src/main/kotlin/NexusClient.kt | 3 +-- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/publish_on_tag.yml b/.github/workflows/publish_on_tag.yml index d204489..5b31135 100644 --- a/.github/workflows/publish_on_tag.yml +++ b/.github/workflows/publish_on_tag.yml @@ -26,7 +26,7 @@ jobs: - name: Build and publish with Gradle uses: gradle/gradle-build-action@4137be6a8bf7d7133955359dbd952c0ca73b1021 with: - arguments: build test publish + arguments: -i --stacktrace build test publish env: SIGNING_KEY: ${{ secrets.SIGNING_KEY }} SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }} diff --git a/build.gradle.kts b/build.gradle.kts index c371f33..3e47aaa 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -14,7 +14,7 @@ plugins { apply() group = "io.github.doip-sim-ecu" -version = "0.12.1" +version = "0.12.2" repositories { gradlePluginPortal() diff --git a/buildSrc/src/main/kotlin/NexusClient.kt b/buildSrc/src/main/kotlin/NexusClient.kt index b7911bb..9feae24 100644 --- a/buildSrc/src/main/kotlin/NexusClient.kt +++ b/buildSrc/src/main/kotlin/NexusClient.kt @@ -1,5 +1,4 @@ import kotlinx.serialization.Serializable -import kotlinx.serialization.decodeFromString import kotlinx.serialization.encodeToString import kotlinx.serialization.json.* import org.gradle.api.logging.Logger @@ -144,7 +143,7 @@ class NexusClient(private val logger: Logger, private val config: NexusReleaseEx private val basicAuth: String get() = - "Basic " + "${config.username.get()}:${config.password.get()}".encodeToByteArray().encodeBase64() + "Bearer " + "${config.username.get()}:${config.password.get()}".encodeToByteArray().encodeBase64() } class HttpException(