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
- Maven dependency
<dependency> <groupId>com.ccreanga.bitbucket</groupId> <artifactId>bitbucket-rest-client</artifactId> <version>1.0-SNAPSHOT</version> </dependency>
//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));