Skip to content

Commit ddd90ff

Browse files
committed
work
1 parent 5726940 commit ddd90ff

File tree

10 files changed

+46
-539
lines changed

10 files changed

+46
-539
lines changed

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# Bitbucket Cloud Java REST API
22
[![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)
33
[![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)
54

65
REST API generated from the `swagger.json` spec at https://api.bitbucket.org/swagger.json
76

build.gradle

Lines changed: 8 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,16 @@
11
apply plugin: 'java'
22

3-
project.ext.tags = ['bitbucket-cloud']
4-
group = 'se.bjurr.bitbucketcloud'
5-
description = 'Rest client for Bitbucket CLoud'
6-
73
buildscript {
84
repositories {
95
mavenLocal()
106
mavenCentral()
11-
maven { url "https://jitpack.io" }
127
}
138
dependencies {
14-
classpath 'com.github.tomasbjerre:gradle-scripts:master-SNAPSHOT'
15-
classpath 'org.openapitools:openapi-generator-gradle-plugin:3.3.4'
9+
classpath 'se.bjurr.gradle:gradle-scripts:2.+'
10+
classpath 'org.openapitools:openapi-generator-gradle-plugin:5.1.0'
1611
}
1712
}
18-
apply from: project.buildscript.classLoader.getResource('java.gradle').toURI()
19-
apply from: project.buildscript.classLoader.getResource('changelog.gradle').toURI()
20-
apply from: project.buildscript.classLoader.getResource('release.gradle').toURI()
21-
apply plugin: 'org.openapi.generator'
13+
apply from: project.buildscript.classLoader.getResource('main.gradle').toURI()
2214

2315
dependencies {
2416
compile 'io.swagger:swagger-annotations:1.5.3'
@@ -28,24 +20,19 @@ dependencies {
2820
compile 'javax.validation:validation-api:2.0.1.Final'
2921
}
3022

31-
sourceSets {
32-
main {
33-
java {
34-
srcDir 'src/main/java'
35-
srcDir 'src/gen/java'
36-
}
37-
}
38-
}
23+
24+
apply plugin: 'org.openapi.generator'
3925

4026
openApiGenerate {
4127
generatorName = "jaxrs-spec"
4228
skipOverwrite = false
43-
inputSpec = "$rootDir/swagger.yml".toString()
29+
inputSpec = "$rootDir/openapi.yml".toString()
4430
validateSpec = false
31+
skipValidateSpec = true
4532
outputDir = "$rootDir".toString()
4633
apiPackage = "se.bjurr.bitbucketcloud.gen.api"
4734
modelPackage = "se.bjurr.bitbucketcloud.gen.model"
48-
systemProperties = [
35+
configOptions = [
4936
interfaceOnly: "true",
5037
generatePom: "false",
5138
useJackson: "true"
@@ -54,7 +41,3 @@ openApiGenerate {
5441

5542
compileJava.dependsOn 'openApiGenerate'
5643

57-
googleJavaFormat {
58-
include '**/*.java'
59-
exclude 'src/gen/**/*.java'
60-
}

build.sh

Lines changed: 0 additions & 2 deletions
This file was deleted.

gradle.properties

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
version = 1.12-SNAPSHOT
2+
group = 'se.bjurr.bitbucketcloud'
3+
description = 'Rest client for Bitbucket CLoud'

gradle/wrapper/gradle-wrapper.jar

-561 Bytes
Binary file not shown.
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
#Sat Nov 18 13:33:09 CET 2017
21
distributionBase=GRADLE_USER_HOME
32
distributionPath=wrapper/dists
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-6.8.3-bin.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-5.4.1-bin.zip

gradlew

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,21 @@
11
#!/usr/bin/env sh
22

3+
#
4+
# Copyright 2015 the original author or authors.
5+
#
6+
# Licensed under the Apache License, Version 2.0 (the "License");
7+
# you may not use this file except in compliance with the License.
8+
# You may obtain a copy of the License at
9+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
11+
#
12+
# Unless required by applicable law or agreed to in writing, software
13+
# distributed under the License is distributed on an "AS IS" BASIS,
14+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
# See the License for the specific language governing permissions and
16+
# limitations under the License.
17+
#
18+
319
##############################################################################
420
##
521
## Gradle start up script for UN*X
@@ -28,7 +44,7 @@ APP_NAME="Gradle"
2844
APP_BASE_NAME=`basename "$0"`
2945

3046
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
31-
DEFAULT_JVM_OPTS=""
47+
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
3248

3349
# Use the maximum available, or set MAX_FD != -1 to use that value.
3450
MAX_FD="maximum"

gradlew.bat

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
@rem
2+
@rem Copyright 2015 the original author or authors.
3+
@rem
4+
@rem Licensed under the Apache License, Version 2.0 (the "License");
5+
@rem you may not use this file except in compliance with the License.
6+
@rem You may obtain a copy of the License at
7+
@rem
8+
@rem http://www.apache.org/licenses/LICENSE-2.0
9+
@rem
10+
@rem Unless required by applicable law or agreed to in writing, software
11+
@rem distributed under the License is distributed on an "AS IS" BASIS,
12+
@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
@rem See the License for the specific language governing permissions and
14+
@rem limitations under the License.
15+
@rem
16+
117
@if "%DEBUG%" == "" @echo off
218
@rem ##########################################################################
319
@rem
@@ -14,7 +30,7 @@ set APP_BASE_NAME=%~n0
1430
set APP_HOME=%DIRNAME%
1531

1632
@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
17-
set DEFAULT_JVM_OPTS=
33+
set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
1834

1935
@rem Find java.exe
2036
if defined JAVA_HOME goto findJavaFromJavaHome

0 commit comments

Comments
 (0)