I'm working on writing a script-plugin (Scriptrunner) and want to include this plugin in the dependencies list. However, this plugin doesn't seem to be in the public Maven repo. Do you have a private repository like Adaptavist, if so do you have a link?
We don't have a separate api jar file. You can use the jar file you have downloaded from the Atlassian Marketplace as a dependency by locally deploying it to maven repository.
If you are using script editor of ScriptRunner inside Jira you don't need to add any dependency, you can directly access add-on services. Please check our sample scripts in Confluence, https://denizoguz.atlassian.net/wiki/spaces/CBSV/pages/45560071/Accessing+Add-on+Services+from+ScriptRunner.
So I take it there is no way to include your plugin as a compile-time dependency, then?
I use the Javadocs and can include your plugin in scripts no problem – the issue is with classes in a Script Plugin that have dependency on the plugin (we've POC'd some things with scripts just fine, but in prod we'll need to use a Script Plugin for testability reasons).
I'll look into what you mentioned regarding Maven, but if you have examples of this that'd be fantastic!
Otherwise, we'll work around it by including the jar directly as a system dependency, e.g.:
Once you have downloaded .jar file from marketplace (https://marketplace.atlassian.com/download/apps/1211825/version/100000870) , you can install it local maven repository (.m2 folder) using following command.
after that you can include it using group id: com.deniz.jira, artifact id: versioning, and version :1.11.3
Thanks, Deniz! We'll try this as well.