Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use Gradle Nexus Publish Plugin
Browse files Browse the repository at this point in the history
philipp94831 committed Feb 26, 2024
1 parent ca611cd commit c17fc8c
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -56,7 +56,6 @@ internal class SonatypePluginIT {
return withPluginClasspath(classpath.split(":").map { File(it) })
}

@Disabled
@Test
fun testSingleModuleProject(@TempDir testProjectDir: Path, @Wiremock wiremock: WireMockServer) {
Files.writeString(testProjectDir.resolve("build.gradle.kts"), """
@@ -120,6 +119,9 @@ internal class SonatypePluginIT {
}

private fun mockNexusProtocol(wiremock: WireMockServer) {
wiremock.addMockServiceRequestListener { request, response ->
println("Got request ${request.method} ${request.url} with response ${response.status}")
}
wiremock.stubFor(get(urlMatching("/staging/profiles"))
.willReturn(okJson("""{"data": [{"id": $PROFILE_ID, "name": "${TEST_GROUP}"}]}""")))
wiremock.stubFor(post(urlMatching("/staging/profiles/$PROFILE_ID/start"))

0 comments on commit c17fc8c

Please sign in to comment.