From f7b18ceb8b0b9f0c231082f00caeb4d83e9aa989 Mon Sep 17 00:00:00 2001 From: Joyeeta Pal Date: Thu, 21 Nov 2024 12:08:34 +0530 Subject: [PATCH 1/3] Update fluentui-maven-central-publish-1espt.yml for Azure Pipelines --- fluentui-maven-central-publish-1espt.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/fluentui-maven-central-publish-1espt.yml b/fluentui-maven-central-publish-1espt.yml index 7961e9ba8..a46b31296 100644 --- a/fluentui-maven-central-publish-1espt.yml +++ b/fluentui-maven-central-publish-1espt.yml @@ -40,6 +40,7 @@ extends: # Write your commands here bash -c "echo '$GPG_KEY_CONTENT' | base64 -d > '$SIGNING_SECRET_KEY_RING_FILE'" ls + tree -a - task: Gradle@3 inputs: gradleWrapperFile: "gradlew" From 0ce691f6f21cbf52bd8116525e46da4bffcbd834 Mon Sep 17 00:00:00 2001 From: Joyeeta Pal Date: Thu, 21 Nov 2024 13:01:14 +0530 Subject: [PATCH 2/3] Update fluentui-maven-central-publish-1espt.yml for Azure Pipelines --- fluentui-maven-central-publish-1espt.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/fluentui-maven-central-publish-1espt.yml b/fluentui-maven-central-publish-1espt.yml index a46b31296..9f1c18e60 100644 --- a/fluentui-maven-central-publish-1espt.yml +++ b/fluentui-maven-central-publish-1espt.yml @@ -40,7 +40,6 @@ extends: # Write your commands here bash -c "echo '$GPG_KEY_CONTENT' | base64 -d > '$SIGNING_SECRET_KEY_RING_FILE'" ls - tree -a - task: Gradle@3 inputs: gradleWrapperFile: "gradlew" @@ -95,7 +94,7 @@ extends: targetPath: $(build.sourcesdirectory)/build/_manifest - output: pipelineArtifact displayName: 'Publish artifacts to pipeline' - targetPath: "$(build.sourcesdirectory)/build/artifacts/com/microsoft/fluentui" + targetPath: "$(build.sourcesdirectory)/build" artifactName: "Build" publishLocation: "pipeline" - output: pipelineArtifact From a5d3192cb07aadf3498896ee097394bc6ec29a58 Mon Sep 17 00:00:00 2001 From: Joyeeta Date: Thu, 21 Nov 2024 14:44:13 +0530 Subject: [PATCH 3/3] update --- fluentui-maven-central-publish-1espt.yml | 2 +- publish.gradle | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/fluentui-maven-central-publish-1espt.yml b/fluentui-maven-central-publish-1espt.yml index 9f1c18e60..7961e9ba8 100644 --- a/fluentui-maven-central-publish-1espt.yml +++ b/fluentui-maven-central-publish-1espt.yml @@ -94,7 +94,7 @@ extends: targetPath: $(build.sourcesdirectory)/build/_manifest - output: pipelineArtifact displayName: 'Publish artifacts to pipeline' - targetPath: "$(build.sourcesdirectory)/build" + targetPath: "$(build.sourcesdirectory)/build/artifacts/com/microsoft/fluentui" artifactName: "Build" publishLocation: "pipeline" - output: pipelineArtifact diff --git a/publish.gradle b/publish.gradle index f6c0363fa..07fd246e5 100644 --- a/publish.gradle +++ b/publish.gradle @@ -36,9 +36,9 @@ project.ext.publishingFunc = { artifactIdName -> url rootProject.buildDir.path + '/artifacts' } } - tasks.withType(PublishToMavenRepository) { + tasks.withType(PublishToMavenRepository).configureEach { onlyIf { - (repository == publishing.repositories.local && !(artifactExists("central", artifactIdName, android.defaultConfig.versionName))) || (repository == publishing.repositories.feed && !(artifactExists("feed", artifactIdName, android.defaultConfig.versionName))) + (repository == publishing.repositories.local) || (repository == publishing.repositories.feed && !(artifactExists("feed", artifactIdName, android.defaultConfig.versionName))) } } publications {