From 5ed8a161d6ba15928e3a3078e4403b4aea56d6dd Mon Sep 17 00:00:00 2001 From: Robinson Date: Mon, 27 Nov 2023 17:07:56 +0100 Subject: [PATCH] Fixed local repo delete/flush logic --- src/dorkbox/gradlePublish/PublishPlugin.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/dorkbox/gradlePublish/PublishPlugin.kt b/src/dorkbox/gradlePublish/PublishPlugin.kt index d823eb4..93421c9 100644 --- a/src/dorkbox/gradlePublish/PublishPlugin.kt +++ b/src/dorkbox/gradlePublish/PublishPlugin.kt @@ -253,14 +253,14 @@ class PublishPlugin : Plugin { // prune off the "file:" val localMavenRepo = project.repositories.mavenLocal().url.toString().replaceFirst("file:", "") - // clean-out the repo!! - File(localMavenRepo).deleteRecursively() - val projectName = config.groupId.replace('.', '/') // output the release URL in the console val mavenLocation = "$localMavenRepo$projectName/${config.name}/${config.version}/" + // clean-out the repo!! + File(mavenLocation).deleteRecursively() + println("\tPublishing '${publication.groupId}:${publication.artifactId}:${publication.version}' to Maven Local") publication.artifacts.forEach {