Skip to content

Latest commit

 

History

History
34 lines (22 loc) · 975 Bytes

README.md

File metadata and controls

34 lines (22 loc) · 975 Bytes

Stash Java Client

Build Status

Tiny Java library acting as a wrapper over the Stash (Bitbucket Server) REST API.

Work in progress. For the moment I plan to obtain pull requests statistics so I will mostly implement the GET methods

Getting Started

  • Maven dependency
    <dependency>
      		<groupId>com.ccreanga.bitbucket</groupId>
      		<artifactId>bitbucket-rest-client</artifactId>
      		<version>1.0-SNAPSHOT</version>
      	</dependency>
      

Samples

//Getting all the projects

BitBucketClientFactory factory = BitBucketClientFactory(new URL(bitBucketUrl),new BitBucketCredentials(bitBucketUser,bitBucketPassword));

ProjectClient projectClient = factory.getProjectClient();

System.out.println(projectClient.getProjects(new Limit(0,100));