Contents
Java API
The Bitbucket Server Java API is split up into multiple modules, each of which export various classes and services that can be consumed by plugins. Each module is published as a separate maven artifact each Bitbucket Server release, with a version number matching the Bitbucket Server release number.
Javadoc
Bitbucket Server API
Provides a collection of services, events and utility classes for interacting with core Bitbucket features such as server administration, projects, repositories, pull requests and user management.
Bitbucket Server SPI
Provides a number of plugin module interfaces, module descriptor classes and utilities that plugins can use to extend Bitbucket's stock functionality. See Plugin Module Types for more details of specific modules that can be implemented.
Branches
Services exported by this plugin that provide extended branch information and enable advanced branch management, such as programatically creating branches and setting up branching models.
Builds
Services exported by this plugin to query and set the build status on individual commits.
Comment Likes
Provides an API to add and remove comment likes, as well as query for users who have liked comments.
Git
Provides a collection of richly typed command builders for easily invoking native git commands on repositories hosted in Bitbucket.
JIRA
Services exported by this plugin to query the set of JIRA issues linked to individual commits.
Notifications
SPI to allow 3rd party plugins to include custom notifications about changes to the pull requests.
Ref Restrictions
Services exported by this plugin to query and set the branch permissions on a repository.
SCM Common
Provides common utilities for dealing with SCMs.
SSH
Services exported by this plugin to query and set the SSH server configuration and users SSH keys.
Web Common
Provides common Web Fragment Conditions you can use to control when your Web Fragments appear.
Importing in Maven
Add the following dependencies to your pom.xml
Bitbucket Server API
AخA1<dependency>
2<groupId>com.atlassian.bitbucket.server</groupId>
3<artifactId>bitbucket-api</artifactId>
4<scope>provided</scope>
5<version>${bitbucket.version}</version>
6</dependency>
Bitbucket Server SPI
61<dependency>
2<groupId>com.atlassian.bitbucket.server</groupId>
3<artifactId>bitbucket-spi</artifactId>
4<scope>provided</scope>
5<version>${bitbucket.version}</version>
6</dependency>
Git API
61<dependency>
2<groupId>com.atlassian.bitbucket.server</groupId>
3<artifactId>bitbucket-git-api</artifactId>
4<scope>provided</scope>
5<version>${bitbucket.version}</version>
6</dependency>
Build API
61<dependency>
2<groupId>com.atlassian.bitbucket.server</groupId>
3<artifactId>bitbucket-build-api</artifactId>
4<scope>provided</scope>
5<version>${bitbucket.version}</version>
6</dependency>
Branch Permissions API
61<dependency>
2<groupId>com.atlassian.bitbucket.server</groupId>
3<artifactId>bitbucket-ref-restriction-api</artifactId>
4<scope>provided</scope>
5<version>${bitbucket.version}</version>
6</dependency>
Branch Permissions SPI
61<dependency>
2<groupId>com.atlassian.bitbucket.server</groupId>
3<artifactId>bitbucket-ref-restriction-spi</artifactId>
4<scope>provided</scope>
5<version>${bitbucket.version}</version>
6</dependency>
Branch API
61<dependency>
2<groupId>com.atlassian.bitbucket.server</groupId>
3<artifactId>bitbucket-branch-api</artifactId>
4<scope>provided</scope>
5<version>${bitbucket.version}</version>
6</dependency>
Comment Likes
61<dependency>
2<groupId>com.atlassian.bitbucket.server</groupId>
3<artifactId>bitbucket-comment-likes-api</artifactId>
4<scope>provided</scope>
5<version>${bitbucket.version}</version>
6</dependency>
JIRA Integration
61<dependency>
2<groupId>com.atlassian.bitbucket.server</groupId>
3<artifactId>bitbucket-jira-api</artifactId>
4<scope>provided</scope>
5<version>${bitbucket.version}</version>
6</dependency>
SSH Support
61<dependency>
2<groupId>com.atlassian.bitbucket.server</groupId>
3<artifactId>bitbucket-ssh-api</artifactId>
4<scope>provided</scope>
5<version>${bitbucket.version}</version>
6</dependency>
SCM Common
61<dependency>
2<groupId>com.atlassian.bitbucket.server</groupId>
3<artifactId>bitbucket-scm-common</artifactId>
4<scope>provided</scope>
5<version>${bitbucket.version}</version>
6</dependency>
Web Fragment Conditions
61<dependency>
2<groupId>com.atlassian.bitbucket.server</groupId>
3<artifactId>bitbucket-web-common</artifactId>
4<scope>provided</scope>
5<version>${bitbucket.version}</version>
6</dependency>