Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

publishArtifacts = false is ignored #796

Open
luaps opened this issue Jul 11, 2024 · 0 comments
Open

publishArtifacts = false is ignored #796

luaps opened this issue Jul 11, 2024 · 0 comments
Labels
gradle bug Create a report to help us improve

Comments

@luaps
Copy link

luaps commented Jul 11, 2024

Describe the bug
According to https://jfrog.com/help/r/jfrog-integrations-documentation/gradle-artifactory-plugin
there is a setting publishArtifacts = false which can be used to disable artifacts publishing.

However it has no effect whatsoever.

There is similar issue described here but with
publishPom = false

To Reproduce
Setup artifactory plugin

artifactory {
    contextUrl = "${artifactory_url}"
    publish {
        repository {
            repoKey = 'my_key'
        }
        defaults {
            publications 'ALL_PUBLICATIONS'
            publishArtifacts = false // it does publish artifacts regardless of the option
            publishBuildInfo = false // it does not publish build info
            publishPom = false // it does not publish poms
        }
    }
}

Expected behavior
When publishArtifacts is set to false the plugin should not publish artifacts

Screenshots
If applicable, add screenshots to help explain your problem.

Versions

./gradlew --version

------------------------------------------------------------
Gradle 8.4
------------------------------------------------------------

Build time:   2023-10-04 20:52:13 UTC
Revision:     e9251e572c9bd1d01e503a0dfdf43aedaeecdc3f

Kotlin:       1.9.10
Groovy:       3.0.17
Ant:          Apache Ant(TM) version 1.10.13 compiled on January 4 2023
JVM:          17.0.6 (Amazon.com Inc. 17.0.6+10-LTS)
OS:           Mac OS X 13.6.7 aarch64
  • Gradle Artifactory plugin version: org.jfrog.buildinfo:build-info-extractor-gradle:5.+ -> 5.2.3
  • Operating system: Mac OS X 13.6.7 aarch64a
  • Artifactory Version:
classpath
+--- org.jfrog.buildinfo:build-info-extractor-gradle:5.+ -> 5.2.3
|    +--- org.apache.commons:commons-lang3:3.12.0 -> 3.14.0
|    +--- org.apache.ivy:ivy:2.5.2
|    +--- com.fasterxml.jackson.core:jackson-databind:2.14.1
|    |    +--- com.fasterxml.jackson.core:jackson-annotations:2.14.1
|    |    |    \--- com.fasterxml.jackson:jackson-bom:2.14.1
|    |    |         +--- com.fasterxml.jackson.core:jackson-annotations:2.14.1 (c)
|    |    |         +--- com.fasterxml.jackson.core:jackson-core:2.14.1 (c)
|    |    |         \--- com.fasterxml.jackson.core:jackson-databind:2.14.1 (c)
|    |    +--- com.fasterxml.jackson.core:jackson-core:2.14.1
|    |    |    \--- com.fasterxml.jackson:jackson-bom:2.14.1 (*)
|    |    \--- com.fasterxml.jackson:jackson-bom:2.14.1 (*)
|    +--- commons-io:commons-io:2.11.0 -> 2.16.1
|    +--- org.apache.httpcomponents:httpclient:4.5.14
|    |    +--- org.apache.httpcomponents:httpcore:4.4.16
|    |    +--- commons-logging:commons-logging:1.2
|    |    \--- commons-codec:commons-codec:1.11 -> 1.17.0
|    +--- com.github.spotbugs:spotbugs-annotations:4.8.1
|    |    \--- com.google.code.findbugs:jsr305:3.0.2
|    +--- org.jfrog.buildinfo:build-info-extractor:2.41.21
|    |    +--- org.apache.commons:commons-lang3:3.12.0 -> 3.14.0
|    |    +--- commons-io:commons-io:2.11.0 -> 2.16.1
|    |    +--- com.fasterxml.jackson.core:jackson-annotations:2.14.1 (*)
|    |    +--- com.fasterxml.jackson.core:jackson-databind:2.14.1 (*)
|    |    +--- com.fasterxml.jackson.core:jackson-core:2.14.1 (*)
|    |    +--- org.apache.commons:commons-compress:1.26.2
|    |    |    +--- commons-codec:commons-codec:1.17.0
|    |    |    +--- commons-io:commons-io:2.16.1
|    |    |    \--- org.apache.commons:commons-lang3:3.14.0
|    |    +--- org.apache.httpcomponents:httpcore:4.4.16
|    |    +--- commons-codec:commons-codec:1.15 -> 1.17.0
|    |    +--- org.jfrog.filespecs:file-specs-java:1.1.2
|    |    |    +--- com.fasterxml.jackson.core:jackson-databind:2.14.1 (*)
|    |    |    +--- com.fasterxml.jackson.core:jackson-core:2.14.1 (*)
|    |    |    \--- org.apache.commons:commons-lang3:3.12.0 -> 3.14.0
|    |    +--- org.jfrog.buildinfo:build-info-client:2.41.21
|    |    |    +--- org.apache.commons:commons-lang3:3.12.0 -> 3.14.0
|    |    |    +--- commons-io:commons-io:2.11.0 -> 2.16.1
|    |    |    +--- com.fasterxml.jackson.core:jackson-annotations:2.14.1 (*)
|    |    |    +--- com.fasterxml.jackson.core:jackson-databind:2.14.1 (*)
|    |    |    +--- com.fasterxml.jackson.core:jackson-core:2.14.1 (*)
|    |    |    +--- org.apache.commons:commons-compress:1.26.2 (*)
|    |    |    +--- org.apache.httpcomponents:httpclient:4.5.14 (*)
|    |    |    +--- org.apache.httpcomponents:httpcore:4.4.16
|    |    |    +--- commons-codec:commons-codec:1.15 -> 1.17.0
|    |    |    +--- org.jfrog.filespecs:file-specs-java:1.1.2 (*)
|    |    |    \--- org.jfrog.buildinfo:build-info-api:2.41.21
|    |    |         +--- org.apache.commons:commons-lang3:3.12.0 -> 3.14.0
|    |    |         +--- commons-io:commons-io:2.11.0 -> 2.16.1
|    |    |         +--- com.fasterxml.jackson.core:jackson-annotations:2.14.1 (*)
|    |    |         +--- com.fasterxml.jackson.core:jackson-databind:2.14.1 (*)
|    |    |         +--- com.fasterxml.jackson.core:jackson-core:2.14.1 (*)
|    |    |         +--- org.apache.commons:commons-compress:1.26.2 (*)
|    |    |         +--- org.apache.httpcomponents:httpclient:4.5.14 (*)
|    |    |         +--- org.apache.httpcomponents:httpcore:4.4.16
|    |    |         +--- commons-codec:commons-codec:1.15 -> 1.17.0
|    |    |         \--- org.jfrog.filespecs:file-specs-java:1.1.2 (*)
|    |    \--- org.jfrog.buildinfo:build-info-api:2.41.21 (*)
|    +--- org.jfrog.buildinfo:build-info-api:2.41.21 (*)
|    +--- org.jfrog.buildinfo:build-info-client:2.41.21 (*)
|    \--- org.jfrog.filespecs:file-specs-java:1.1.2 (*)
\--- com.jfrog.artifactory:com.jfrog.artifactory.gradle.plugin:5.+ -> 5.2.2
     \--- org.jfrog.buildinfo:build-info-extractor-gradle:5.2.2 -> 5.2.3 (*)

Additional context
Add any other context about the problem here.

@luaps luaps added the gradle bug Create a report to help us improve label Jul 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
gradle bug Create a report to help us improve
Projects
None yet
Development

No branches or pull requests

1 participant