-
Notifications
You must be signed in to change notification settings - Fork 157
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
API-breaking changes with org.jfrog.buildinfo:build-info-extractor-gradle:latest.release #745
Comments
On Maven central, https://central.sonatype.com/artifact/org.jfrog.buildinfo/build-info-extractor-gradle/5.0.0/versions, I see this: I was shocked that all of our projects that use the Artifactory plugin do not work unless I change the version from |
I was pretty shocked to see this too, now all of our builds are broken as we're referencing |
@NicolasRouquette - Thank you for opening this Issue! I've been having this same issue on some new build servers, and I was pulling my hair out thinking it was an issue with the new servers. @DanielJRutledge - Agreed. The release of In case it helps others, as mentioned, the temp fix was to specify an explicit dependency upon
|
All - |
@eyalbe4 All of us are using the |
@eyalbe4 Since the API-breaking changes are intentional in Version 5, shouldn't this be documented? Until this happens, the current documentation for the plugin version, |
Was there ever any communications about the upcoming breaking changes for Why is the documentation for Where's the documentation on how to use the Should the Does this pull request mean that Without prior communication, it might sound like an easy switch to point at the latest |
All - |
What's the update here? It looks like the team is releasing 5.0.1 and is just plowing ahead. This is extremely destructive to users and builds as we weren't given any notice of required changes. |
Hi @DanielJRutledge version 5.0.1 includes jfrog/artifactory-gradle-plugin#32 which should help mitigating this issue. |
The new plugin still requires Gradle 6.9, which as others have noted on this thread, was a requirement rolled out without any notice. |
@yahavi With 5.0.1, I still get the same errors as initially reported. This is with Java 17 and Gradle 7.5.1. |
With Java 11, Gradle 7.4.1, and 5.0.1 of the Artifactory Gradle Plugin, I no longer get the
|
@eyalbe4 We need to know what the approach for this library is going to be; it doesn't seem like this was intended to be release in this fashion, and there are multiple known issues at this point. Do we plan to have |
Hi @jessejcollins, We moved back some package and classes to their previous places to mitigating similar issues. version 5.0.2 includes jfrog/artifactory-gradle-plugin#36 which should help mitigating this. |
Hi @attiasas - I'm getting this error with 5.0.2:
This error occurred after a few files were successfully published to Artifactory. These successfully published files were not occurring for 5.0.0 or 5.0.1, so there is some progress. |
Hey @jessejcollins, Glad to see we have progress. |
OK, you are right. This comes from the configuration in our Our CI/CD pipeline injects code into the The usage of the Here's a modified snippet of the injected Gradle task:
Is there a new equivalent class/method for the |
ArtifactoryTask wil now directly return it using
let us know if there are any other migration issues |
Thank you @attiasas! Using We've updated the injected code to the following so it works for both the 4.* & 5.* plugin:
|
It would be nicer if we did not rely on an exception to handle the different versions. |
It looks like the conclusion is to keep 5.x as the latest. Is there any documentation on breaking changes besides the minimum Gradle verison? |
Hi @DanielJRutledge, there is a section about it in the README.md at the overview section. |
Rollback jfrog.buildinfo to v4.33.1 due to breaking changes in v5.0.0 reference: jfrog/build-info#745 REF: #136
Describe the bug
A clear and concise description of what the bug is.
The gradle-artifactory-plugin doc
recommends using the plugin with the
latest.release
version like this:Further down the page, the doc shows a template for the plugin configuration that begins like this:
Since the publication of version 5.0.0 on 2023-06-29 (today), we now have a strange behavior with an error like this:
This occurs in a gradle script like this:
It seems that version 5.0.0 introduces an incompatible configuration paradigm that makes the current documentation based on version 4.x obsolete.
Furthermore, I cannot even find any source code corresponding to
org.jfrog.gradle.plugin.artifactory.config.ArtifactoryPluginConvention
To Reproduce
Steps to reproduce the behavior
See above.
Expected behavior
A clear and concise description of what you expected to happen.
Version 5.0.0 should be backwards compatible with previous versions of the gradle artifactory plugin.
Screenshots
If applicable, add screenshots to help explain your problem.
Versions
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: