Location of Maven Repository for Plugin?

Description

Hello,

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?

Thanks,

Tina

Environment

None

Activity

Show:
Deniz Oğuz
December 11, 2018, 6:11 AM

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.

Christina Jenks
December 11, 2018, 8:27 AM
Edited

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.:

Deniz Oğuz
December 11, 2018, 9:57 AM

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

Christina Jenks
December 11, 2018, 11:43 AM

Thanks, Deniz! We'll try this as well.

Assignee

Deniz Oğuz

Reporter

Christina Jenks

Labels

None

Source

None

Jira Version

None

Database Type/Version

None

Browser Type/Version

None

Affects versions

Priority

Minor
Configure