-
Type:
Bug
-
Status: Open
-
Resolution: Unresolved
-
Affects Version/s: 3.5.0, 3.6.0, 3.6.1
-
Fix Version/s: None
-
Component/s: Gradle
-
Labels:None
-
Environment:
Jenkins core 2.204.2
Gradle 4.6
We just upgraded to the Artifactory plugin 3.5.0 and we have some Android gradle builds that appear to be failing in the artifactoryPublish stage with the below error.
17:06:11 17:06:11.750 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] FAILURE: Build failed with an exception.
17:06:11 17:06:11.750 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]
17:06:11 17:06:11.750 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * What went wrong:
17:06:11 17:06:11.750 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Failed to notify build listener.
17:06:11 17:06:11.750 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > java.lang.NoClassDefFoundError: org/gradle/api/publish/internal/PublicationArtifactSet
We tried to update to 3.6.0, 3.6.1 and 3.6.2 but received the same errors. It was only after downgrading to 3.4.1 that the artifacts were able to be published again.
We are using "apply plugin: 'maven-publish'" so it doesn't appear to be caused by the deprecation of using just maven for publishing.