Skip to content

Commit

Permalink
Merge pull request microsoft#733 from microsoft/joypal/test_pipeline
Browse files Browse the repository at this point in the history
Always publish artifacts to local repository
  • Loading branch information
joyeeta26 authored Nov 28, 2024
2 parents 8a8a11c + a5d3192 commit dd71cf4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions publish.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit dd71cf4

Please sign in to comment.