From f2f2b487727510ebd29ded9fe29b31fd3082b8af Mon Sep 17 00:00:00 2001 From: Marina Selivanova Date: Tue, 15 Apr 2025 09:36:43 +0200 Subject: [PATCH] fix upload to maven central --- .../main/kotlin/com/quantori/cqp/build/CqpJavaLibraryPlugin.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cqp-build/src/main/kotlin/com/quantori/cqp/build/CqpJavaLibraryPlugin.kt b/cqp-build/src/main/kotlin/com/quantori/cqp/build/CqpJavaLibraryPlugin.kt index 6288db6..9a4259a 100644 --- a/cqp-build/src/main/kotlin/com/quantori/cqp/build/CqpJavaLibraryPlugin.kt +++ b/cqp-build/src/main/kotlin/com/quantori/cqp/build/CqpJavaLibraryPlugin.kt @@ -90,6 +90,7 @@ class CqpJavaLibraryPlugin : Plugin { repositories { maven { + name = "localStaging" val releasesRepoUrl = project.layout.buildDirectory.dir("repos/releases") val snapshotsRepoUrl = project.layout.buildDirectory.dir("repos/snapshots") url = project.uri( @@ -185,8 +186,6 @@ class CqpJavaLibraryPlugin : Plugin { println("Response Message: ${connection.inputStream.bufferedReader().readText()}") } } - - project.tasks.findByName("publish")?.finalizedBy("uploadToMavenCentral") } } }