From c76527da61de681506bd099f859faf4573078118 Mon Sep 17 00:00:00 2001 From: Philipp Schirmer Date: Mon, 26 Feb 2024 13:25:16 +0100 Subject: [PATCH] Use Gradle Nexus Publish Plugin --- sonatype/src/main/kotlin/com/bakdata/gradle/SonatypePlugin.kt | 2 +- sonatype/src/test/kotlin/com/bakdata/gradle/SonatypePluginIT.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sonatype/src/main/kotlin/com/bakdata/gradle/SonatypePlugin.kt b/sonatype/src/main/kotlin/com/bakdata/gradle/SonatypePlugin.kt index 0703fa1..428a2f2 100644 --- a/sonatype/src/main/kotlin/com/bakdata/gradle/SonatypePlugin.kt +++ b/sonatype/src/main/kotlin/com/bakdata/gradle/SonatypePlugin.kt @@ -1,7 +1,7 @@ /* * The MIT License * - * Copyright (c) 2019 bakdata GmbH + * Copyright (c) 2024 bakdata GmbH * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal diff --git a/sonatype/src/test/kotlin/com/bakdata/gradle/SonatypePluginIT.kt b/sonatype/src/test/kotlin/com/bakdata/gradle/SonatypePluginIT.kt index 5d7d42a..5d483f6 100644 --- a/sonatype/src/test/kotlin/com/bakdata/gradle/SonatypePluginIT.kt +++ b/sonatype/src/test/kotlin/com/bakdata/gradle/SonatypePluginIT.kt @@ -139,7 +139,7 @@ internal class SonatypePluginIT { wiremock.stubFor(post(urlMatching("/staging/bulk/close")) .willReturn(okJson("{}"))) wiremock.stubFor(get(urlMatching("/staging/repository/$STAGING_ID")) - .willReturn(okJson("""{"type": "closed", "transitioning": false}"""))) + .willReturn(notFound())) wiremock.stubFor(post(urlMatching("/staging/bulk/promote")) .inScenario("promoting").whenScenarioStateIs(STARTED) .willReturn(okJson("{}"))