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

ArtifactoryPlublish unable to publish version-catalog correctly #113

Open
yuvaraj119 opened this issue Jun 3, 2024 · 1 comment
Open
Labels
bug Something isn't working

Comments

@yuvaraj119
Copy link

yuvaraj119 commented Jun 3, 2024

Describe the bug

I'm trying to publish the version-catalog to jfrog.
When I'm publishing mavenLocal i can see the .module file contains versionCatalogElements variant.
but when i do artifactoryPublish which is jfrog publish i dont see versionCatalogElements variant instead i see apiElements and runtimeElements

opened gradle issue initially gradle/gradle#29369
but it is not gradle issue it is Jfrog publish issue which unable to publish the version-catalog publications. Always picks pluginMaven publications.

Current behavior

in module file
"variants": [ { "name": "apiElements", "attributes": { "org.gradle.category": "library", "org.gradle.dependency.bundling": "external", "org.gradle.jvm.environment": "standard-jvm", "org.gradle.jvm.version": 17, "org.gradle.libraryelements": "jar", "org.gradle.usage": "java-api", "org.jetbrains.kotlin.platform.type": "jvm" }, "files": [ { "name": "gradle-version-catalog-0.2.0.jar", "url": "gradle-version-catalog-0.2.0.jar", "size": 261, "sha512": "xxxxxxxxxxxxxxx", "sha256": "xxxxxxxxxxxxx", "sha1": "xxxxxxxxxxxxxxxxxxxxxx", "md5": "xxxxxxxxxxxxxxxxxxxxxxxxx" } ] }, { "name": "runtimeElements", "attributes": { "org.gradle.category": "library", "org.gradle.dependency.bundling": "external", "org.gradle.jvm.environment": "standard-jvm", "org.gradle.jvm.version": 17, "org.gradle.libraryelements": "jar", "org.gradle.usage": "java-runtime", "org.jetbrains.kotlin.platform.type": "jvm" }, "files": [ { "name": "gradle-version-catalog-0.2.0.jar", "url": "gradle-version-catalog-0.2.0.jar", "size": 261, "sha512": "xxxxxxxxxxxxxxxxxxxxxxxx", "sha256": "xxxxxxxxxxxxxxxxxxxxxxxxxxxx", "sha1": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxx", "md5": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" } ] } ] }

Reproduction steps

gradle version 8.5
jfrog artifactory buildinfo version - 5.2.0
create a version-catalog publish project
Try to publish the versionCatalog then check module file should have versionCatalogElements but not found.

Expected behavior

mavenLocal publish expected in module file
"variants": [ { "name": "versionCatalogElements", "attributes": { "org.gradle.category": "platform", "org.gradle.usage": "version-catalog" }, "files": [ { "name": "gradle-version-catalog-0.2.1-SNAPSHOT.toml", "url": "gradle-version-catalog-0.2.1-SNAPSHOT.toml", "size": 6029 } ] } ]

Artifactory Gradle plugin version

5.2.0

Operating system type and version

Windows,Android

JFrog Artifactory version

5.2.0

Gradle version

8.5

@yahavi
Copy link
Member

yahavi commented Aug 24, 2024

@yuvaraj119
Thank you for using the Gradle Artifactory plugin.
To help us resolve this issue swiftly, could you please provide a minimal reproducer?

The reproducer should demonstrate that the artifactoryPublish task publishes fewer artifacts compared to the standard publish or publishToMavenLocal tasks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants