Closed mricciuti closed 8 months ago
@mricciuti Thanks for reporting this issue. We create https://github.com/jfrog/artifactory-gradle-plugin/pull/82 to fix it. We'll keep you posted.
@mricciuti We released version 5.1.11 of this plugin. Feel free to upgrade - we'd appreciate your feedback on that!
Hi @yahavi , thanks for the fix, I confirm that Ivy publications are now properly supported. Unfortunately, these changes introduced a regression on Maven publication handling in cases where multiple Maven publications exist in the same project: I submitted new issue for that: https://github.com/jfrog/artifactory-gradle-plugin/issues/87
BR.
@yahavi increasing plugin version to 5.1.11 worked for me. Thanks👍
Describe the bug
It is no longer possible to publish Ivy publications with Gradle 8.4: the
artifactoryPublish
task fails with the exception stack given below.Using the same version of Artifactory Gradle plugin ans same build script configuration the publishing works fine with Gradle 8.3
This issue comes from some internal Gradle api/method used by Artifactory plugin, that were removed in Gradle 8.4. Especially this one: https://github.com/jfrog/artifactory-gradle-plugin/blob/856ecd46536b356cf95d2abafd744a0192ae1810/src/main/java/org/jfrog/gradle/plugin/artifactory/utils/PublicationUtils.java#L145
is using a method removed in
IvyNormalizedPublication
: https://github.com/gradle/gradle/blob/bb3bc9e4593cd4938f5bad3329163e4e8b4a3281/subprojects/ivy/src/main/java/org/gradle/api/publish/ivy/internal/publisher/IvyNormalizedPublication.java#L25C14-L25C39Current behavior
Trying to publish an ivy publication fails with the following stack trace:
Reproduction steps
Using a simple build configuration with Artifactory gradle plugin and Ivy Publish plugin applied, try to publish the ivy publication by executing task
artifactoryPublish
Exemple of simple build setup to reproduce easily: https://gist.github.com/mricciuti/6d7f3c15383ba07747fca6cb661f7f55
Expected behavior
The publish task should work as expected, and the ivy publication deployed to the target Artifactory without error.
Artifactory Gradle plugin version
5.1.10
Operating system type and version
Windows 11
JFrog Artifactory version
7.49.10
Gradle version
8.4