Why is @Grapes causing exceptions in my Groovy plugin?

Why is @Grapes causing exceptions in my Groovy plugin?

AuthorFullName__c
JFrog Support
articleNumber
000001316
ft:sourceType
Salesforce
FirstPublishedDate
2016-10-06T13:38:11Z
lastModifiedDate
2023-02-26T15:01:29Z
VersionNumber
3

It seems that the issue you are facing is related to an open ticket: RTFACT-6759.

The embedded Groovy may have problems when @Grapes finds dependencies that are already included in Artifactory itself.

 

In order to solve this issue you can remove the use of @Grapes and instead place your libraries:

dforg.codehaus.groovy.modules.http-builder

oauth.signpost, module

oauth.signpost, module

 

under $ARTIFACTORY_HOME/etc/plugin/libs

 

You will need to upgrade your Artifactory to our latest version because the ability to load libraries from the libs directory was added recently. (RTFACT-6562).