Stash Build Integration Plugin

I have questions surrounding the recent release of this plugin.

Mainly, I would like to develop additional plugins that make use of the classes this plugin provides. I am able to find the plugin within the Atlassian maven repository:

https://maven.atlassian.com/content/groups/public/com/atlassian/stash/stash-build-integration/

I am interested in using some of the API functionality this plugin provides, however, it does not export any of the packages it uses to the OSGi environment (I am particularly interested in the com.atlassian.stash.build package). Ideally I would like to import the buildStatusService module provided by this plugin. From within my plugin, I depend on this plugin with the following Maven dependency:

<dependency>
  <groupId>com.atlassian.stash</groupId>
  <artifactId>stash-build-integration</artifactId>
  <version>${stash.version}</version>
  <scope>provided</scope>
</dependency>

However, when installing the new plugin, I receive an error starting that one of the required packages cannot be met (com.atlassian.stash.build). I cannot seem to satisfy this requirement, even if I change the scope of the dependency to compile to ensure it gets bundled directly within the jar.

I've exhausted everything I can think of without working with the source of the original build integration plugin. Does anyone know if this source is available and where it can be found?

Wondering if anyone out there has experienced something similar or can offer any pointers?

1 answer

1 accepted

This is because the plugin did not export the service and the associated public classes (BuildStatus, etc.) through OSGi.

The issue STASH-3174 was created to fix this.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jun 12, 2018 in Bitbucket

Do you use any Atlassian products for your personal projects?

After spinning my wheels trying to get organized enough to write a book for National Novel Writing Month (NaNoWriMo) I took my affinity for Atlassian products from my work life and decided to tr...

22,927 views 26 12
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you