Private jar file in a shared library

25 views
Skip to first unread message

Jochen Wiedmann

unread,
Oct 27, 2022, 5:06:06 AM10/27/22
to Jenkins Users

Hi,

I get the impression, that @Grab is bound to a (possibly local) Maven repository. Which is alright, if I am using jar files from Maven central, or something like that.

In my case, I'd much rather do something like

  @Grab('lib/myPrivate.jar')

Is that possible, or must I impose the shared library users to somehow create a local Maven repository?

And, while we're at it: Is it possible, to distribute the shared library as a zip file, or whatever, rather than as a Git repository?


Thanks,

Jochen

P.S: In case, you are asking: I anicipate, that a lot of shared library consumers will be in a secure environment, with no access to external repositories.



Reply all
Reply to author
Forward
0 new messages