Skip to content

Commit ba4ead2

Browse files
committed
Adjustments
1 parent bd32b22 commit ba4ead2

File tree

5 files changed

+18
-34
lines changed

5 files changed

+18
-34
lines changed

Diff for: .travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
sudo: false
22
language: java
33
jdk:
4-
- oraclejdk11
4+
- openjdk8
55
script:
66
- ./build.sh
77
after_script:

Diff for: README.md

+9-9
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
# Bitbucket Cloud Java REST Client
2-
[![Build Status](https://travis-ci.org/tomasbjerre/bitbucket-cloud-java-rest-client.svg?branch=master)](https://travis-ci.org/tomasbjerre/bitbucket-cloud-java-rest-client)
3-
[![Maven Central](https://maven-badges.herokuapp.com/maven-central/se.bjurr.bitbucketcloud/bitbucket-cloud-java-rest-client/badge.svg)](https://maven-badges.herokuapp.com/maven-central/se.bjurr.bitbucketcloud/bitbucket-cloud-java-rest-client)
4-
[![Bintray](https://api.bintray.com/packages/tomasbjerre/tomasbjerre/se.bjurr.bitbucketcloud%3Abitbucket-cloud-java-rest-client/images/download.svg) ](https://bintray.com/tomasbjerre/tomasbjerre/se.bjurr.bitbucketcloud%3Abitbucket-cloud-java-rest-client/_latestVersion)
1+
# Bitbucket Cloud Java REST API
2+
[![Build Status](https://travis-ci.org/tomasbjerre/bitbucket-cloud-java-rest-api.svg?branch=master)](https://travis-ci.org/tomasbjerre/bitbucket-cloud-java-rest-api)
3+
[![Maven Central](https://maven-badges.herokuapp.com/maven-central/se.bjurr.bitbucketcloud/bitbucket-cloud-java-rest-api/badge.svg)](https://maven-badges.herokuapp.com/maven-central/se.bjurr.bitbucketcloud/bitbucket-cloud-java-rest-api)
4+
[![Bintray](https://api.bintray.com/packages/tomasbjerre/tomasbjerre/se.bjurr.bitbucketcloud%3Abitbucket-cloud-java-rest-api/images/download.svg) ](https://bintray.com/tomasbjerre/tomasbjerre/se.bjurr.bitbucketcloud%3Abitbucket-cloud-java-rest-api/_latestVersion)
55

6-
A REST client for Bitbucket Cloud in Java.
6+
REST API generated from the `swagger.json` spec at https://api.bitbucket.org/swagger.json
77

8-
Generated from the `swagger.json` spec at https://api.bitbucket.org/swagger.json
8+
**Note:** `swagger.json` is committed in the repo! Because I needed some minor adjustments to get code generation working:
99

10-
**Note:** `swagger.json` is committed in the repo! Because I needed som minor adjustments to get it working.
10+
* Removed some chars from description. `Mercurial does not support \"octopus\nmerges\"`
11+
* Changed `pipeline_selector` to `string` because of conflict with `getType` in `Object`.
1112

12-
* Removed some chars from documentation in the *swagger.json*. `Mercurial does not support \"octopus\nmerges\"`
13-
* Changed `pipeline_selector` to String because of conflict with `getType`.
13+
**Note:** JAX-RS is just an API! You will need an implementation to create a client. Example [here](https://github.com/tomasbjerre/violation-comments-to-bitbucket-cloud-lib). See: https://en.wikipedia.org/wiki/Java_API_for_RESTful_Web_Services

Diff for: build.gradle

+4-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,10 @@ openApiGenerate {
5050
generatePom: "false"
5151
]
5252
}
53+
54+
compileJava.dependsOn 'openApiGenerate'
55+
5356
googleJavaFormat {
5457
include '**/*.java'
55-
exclude 'src/gen/java/src/gen/**/*.java'
58+
exclude 'src/gen/**/*.java'
5659
}

Diff for: generate.sh

-2
This file was deleted.

Diff for: swagger.json

+4-21
Original file line numberDiff line numberDiff line change
@@ -3719,7 +3719,7 @@
37193719
"in" : "query"
37203720
},
37213721
{
3722-
"description" : "\nA comma-separated list of SHA1s of the commits that should\nbe the parents of the newly created commit.\n\nWhen omitted, the new commit will inherit from and become\na child of the main branch's tip/HEAD commit.\n\nWhen more than one SHA1 is provided, the first SHA1\nidentifies the commit from which the content will be\ninherited.\n\nWhen more than 2 parents are provided on a Mercurial repo,\na 400 is returned as Mercurial does not support \"octopus\nmerges\".",
3722+
"description" : "\nA comma-separated list of SHA1s of the commits that should\nbe the parents of the newly created commit.\n\nWhen omitted, the new commit will inherit from and become\na child of the main branch's tip/HEAD commit.\n\nWhen more than one SHA1 is provided, the first SHA1\nidentifies the commit from which the content will be\ninherited.\n\nWhen more than 2 parents are provided on a Mercurial repo,\na 400 is returned as Mercurial does not support octopus merges.",
37233723
"type" : "string",
37243724
"in" : "query",
37253725
"required" : false,
@@ -15799,26 +15799,9 @@
1579915799
"$ref" : "#/definitions/object"
1580015800
},
1580115801
{
15802-
"properties" : {
15803-
"pattern" : {
15804-
"description" : "The name of the matching pipeline definition.",
15805-
"type" : "string"
15806-
},
15807-
"type" : {
15808-
"type" : "string",
15809-
"description" : "The type of selector.",
15810-
"enum" : [
15811-
"branches",
15812-
"tags",
15813-
"bookmarks",
15814-
"default",
15815-
"custom"
15816-
]
15817-
}
15818-
},
15819-
"additionalProperties" : true,
15820-
"type" : "object",
15821-
"description" : "A representation of the selector that was used to identify the pipeline in the YML file."
15802+
"description" : "A representation of the selector that was used to identify the pipeline in the YML file. branches, tags, bookmarks, default, custom",
15803+
"type" : "string",
15804+
"additionalProperties" : true
1582215805
}
1582315806
]
1582415807
},

0 commit comments

Comments
 (0)