jfrog / artifactory-scripts

Scripts for Artifactory (Usually, for REST API), community driven.
Apache License 2.0
150 stars 162 forks source link

unable to resolve class groovy.json.internal.LazyMap #31

Closed thilakpv closed 5 years ago

thilakpv commented 6 years ago

Hi When I ran this script, I am seeing following error:

aqlCleanup.groovy: 51: unable to resolve class groovy.json.internal.LazyMap @ line 51, column 22. public constructPath(groovy.json.internal.LazyMap item) { ^

1 error

markgalpin commented 6 years ago

aqlCleanup is deprecated. Its better to use the JFrog CLI delete command with a file spec.

thilakpv commented 6 years ago

My requirement is different. I am trying to make this groovy script work to integrate it with shared libraries in jenkins where I can delete old files when a new file is uploaded.

So I need this groovy script to work.

thilakpv commented 6 years ago

Thanks Mark for responding.

markgalpin commented 6 years ago

If I remember correctly, I deprecated this script because I ran into this issue, and we want customers to switch to the CLI for the vast majority of use cases. I believe I fixed it by changing the type of map used by the script, and it worked, but I didn't have time to properly validate/test (and I don't seem to have that code stashed away anywhere.)

markgalpin commented 5 years ago

I hope this helped. I'm going to close this issue for now, but if you have additional questions feel free to re-open or contact support and mention you spoke with me.