Skip to content

Commit

Permalink
use implementation, add min version of maven, gradle (#10571)
Browse files Browse the repository at this point in the history
  • Loading branch information
wing328 committed Oct 11, 2021
1 parent efa032a commit 4b62b55
Show file tree
Hide file tree
Showing 16 changed files with 138 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,12 @@
Building the API client library requires:

1. Java {{#java8}}1.8{{/java8}}{{^java8}}1.7{{/java8}}+
{{#jersey2}}
2. Maven (3.8.3+)/Gradle (7.2+)
{{/jersey2}}
{{^jersey2}}
2. Maven/Gradle
{{/jersey2}}

## Installation

Expand Down Expand Up @@ -57,7 +62,14 @@ Add this dependency to your project's POM:
Add this dependency to your project's build file:

```groovy
compile "{{{groupId}}}:{{{artifactId}}}:{{{artifactVersion}}}"
repositories {
mavenCentral() // Needed if the '{{{artifactId}}}' jar has been published to maven central.
mavenLocal() // Needed if the '{{{artifactId}}}' jar has been published to the local maven repo.
}

dependencies {
implementation "{{{groupId}}}:{{{artifactId}}}:{{{artifactVersion}}}"
}
```

### Others
Expand Down
9 changes: 8 additions & 1 deletion samples/client/petstore/java/apache-httpclient/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,14 @@ Add this dependency to your project's POM:
Add this dependency to your project's build file:

```groovy
compile "org.openapitools:petstore-apache-httpclient:1.0.0"
repositories {
mavenCentral() // Needed if the 'petstore-apache-httpclient' jar has been published to maven central.
mavenLocal() // Needed if the 'petstore-apache-httpclient' jar has been published to the local maven repo.
}
dependencies {
implementation "org.openapitools:petstore-apache-httpclient:1.0.0"
}
```

### Others
Expand Down
9 changes: 8 additions & 1 deletion samples/client/petstore/java/google-api-client/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,14 @@ Add this dependency to your project's POM:
Add this dependency to your project's build file:

```groovy
compile "org.openapitools:petstore-google-api-client:1.0.0"
repositories {
mavenCentral() // Needed if the 'petstore-google-api-client' jar has been published to maven central.
mavenLocal() // Needed if the 'petstore-google-api-client' jar has been published to the local maven repo.
}
dependencies {
implementation "org.openapitools:petstore-google-api-client:1.0.0"
}
```

### Others
Expand Down
9 changes: 8 additions & 1 deletion samples/client/petstore/java/jersey1/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,14 @@ Add this dependency to your project's POM:
Add this dependency to your project's build file:

```groovy
compile "org.openapitools:petstore-java-client-jersey1:1.0.0"
repositories {
mavenCentral() // Needed if the 'petstore-java-client-jersey1' jar has been published to maven central.
mavenLocal() // Needed if the 'petstore-java-client-jersey1' jar has been published to the local maven repo.
}
dependencies {
implementation "org.openapitools:petstore-java-client-jersey1:1.0.0"
}
```

### Others
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ This spec is mainly for testing Petstore server and contains fake endpoints, mod
Building the API client library requires:

1. Java 1.8+
2. Maven/Gradle
2. Maven (3.8.3+)/Gradle (7.2+)

## Installation

Expand Down Expand Up @@ -50,7 +50,14 @@ Add this dependency to your project's POM:
Add this dependency to your project's build file:

```groovy
compile "org.openapitools:petstore-jersey2-java8-localdatetime:1.0.0"
repositories {
mavenCentral() // Needed if the 'petstore-jersey2-java8-localdatetime' jar has been published to maven central.
mavenLocal() // Needed if the 'petstore-jersey2-java8-localdatetime' jar has been published to the local maven repo.
}
dependencies {
implementation "org.openapitools:petstore-jersey2-java8-localdatetime:1.0.0"
}
```

### Others
Expand Down
11 changes: 9 additions & 2 deletions samples/client/petstore/java/jersey2-java8/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ This spec is mainly for testing Petstore server and contains fake endpoints, mod
Building the API client library requires:

1. Java 1.8+
2. Maven/Gradle
2. Maven (3.8.3+)/Gradle (7.2+)

## Installation

Expand Down Expand Up @@ -50,7 +50,14 @@ Add this dependency to your project's POM:
Add this dependency to your project's build file:

```groovy
compile "org.openapitools:petstore-jersey2-java8:1.0.0"
repositories {
mavenCentral() // Needed if the 'petstore-jersey2-java8' jar has been published to maven central.
mavenLocal() // Needed if the 'petstore-jersey2-java8' jar has been published to the local maven repo.
}
dependencies {
implementation "org.openapitools:petstore-jersey2-java8:1.0.0"
}
```

### Others
Expand Down
9 changes: 8 additions & 1 deletion samples/client/petstore/java/resteasy/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,14 @@ Add this dependency to your project's POM:
Add this dependency to your project's build file:

```groovy
compile "org.openapitools:petstore-resteasy:1.0.0"
repositories {
mavenCentral() // Needed if the 'petstore-resteasy' jar has been published to maven central.
mavenLocal() // Needed if the 'petstore-resteasy' jar has been published to the local maven repo.
}
dependencies {
implementation "org.openapitools:petstore-resteasy:1.0.0"
}
```

### Others
Expand Down
9 changes: 8 additions & 1 deletion samples/client/petstore/java/resttemplate-withXml/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,14 @@ Add this dependency to your project's POM:
Add this dependency to your project's build file:

```groovy
compile "org.openapitools:petstore-resttemplate-withxml:1.0.0"
repositories {
mavenCentral() // Needed if the 'petstore-resttemplate-withxml' jar has been published to maven central.
mavenLocal() // Needed if the 'petstore-resttemplate-withxml' jar has been published to the local maven repo.
}
dependencies {
implementation "org.openapitools:petstore-resttemplate-withxml:1.0.0"
}
```

### Others
Expand Down
9 changes: 8 additions & 1 deletion samples/client/petstore/java/resttemplate/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,14 @@ Add this dependency to your project's POM:
Add this dependency to your project's build file:

```groovy
compile "org.openapitools:petstore-resttemplate:1.0.0"
repositories {
mavenCentral() // Needed if the 'petstore-resttemplate' jar has been published to maven central.
mavenLocal() // Needed if the 'petstore-resttemplate' jar has been published to the local maven repo.
}
dependencies {
implementation "org.openapitools:petstore-resttemplate:1.0.0"
}
```

### Others
Expand Down
9 changes: 8 additions & 1 deletion samples/client/petstore/java/vertx-no-nullable/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,14 @@ Add this dependency to your project's POM:
Add this dependency to your project's build file:

```groovy
compile "org.openapitools:petstore-vertx-no-nullable:1.0.0"
repositories {
mavenCentral() // Needed if the 'petstore-vertx-no-nullable' jar has been published to maven central.
mavenLocal() // Needed if the 'petstore-vertx-no-nullable' jar has been published to the local maven repo.
}
dependencies {
implementation "org.openapitools:petstore-vertx-no-nullable:1.0.0"
}
```

### Others
Expand Down
9 changes: 8 additions & 1 deletion samples/client/petstore/java/vertx/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,14 @@ Add this dependency to your project's POM:
Add this dependency to your project's build file:

```groovy
compile "org.openapitools:petstore-vertx:1.0.0"
repositories {
mavenCentral() // Needed if the 'petstore-vertx' jar has been published to maven central.
mavenLocal() // Needed if the 'petstore-vertx' jar has been published to the local maven repo.
}
dependencies {
implementation "org.openapitools:petstore-vertx:1.0.0"
}
```

### Others
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,14 @@ Add this dependency to your project's POM:
Add this dependency to your project's build file:

```groovy
compile "org.openapitools:petstore-webclient-nullable-arrays:v1"
repositories {
mavenCentral() // Needed if the 'petstore-webclient-nullable-arrays' jar has been published to maven central.
mavenLocal() // Needed if the 'petstore-webclient-nullable-arrays' jar has been published to the local maven repo.
}
dependencies {
implementation "org.openapitools:petstore-webclient-nullable-arrays:v1"
}
```

### Others
Expand Down
9 changes: 8 additions & 1 deletion samples/client/petstore/java/webclient/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,14 @@ Add this dependency to your project's POM:
Add this dependency to your project's build file:

```groovy
compile "org.openapitools:petstore-webclient:1.0.0"
repositories {
mavenCentral() // Needed if the 'petstore-webclient' jar has been published to maven central.
mavenLocal() // Needed if the 'petstore-webclient' jar has been published to the local maven repo.
}
dependencies {
implementation "org.openapitools:petstore-webclient:1.0.0"
}
```

### Others
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ This specification shows how to use x-auth-id-alias extension for API keys.
Building the API client library requires:

1. Java 1.7+
2. Maven/Gradle
2. Maven (3.8.3+)/Gradle (7.2+)

## Installation

Expand Down Expand Up @@ -50,7 +50,14 @@ Add this dependency to your project's POM:
Add this dependency to your project's build file:

```groovy
compile "org.openapitools:openapi3-extensions-x-auth-id-alias-jersey2-java8:1.0.0"
repositories {
mavenCentral() // Needed if the 'openapi3-extensions-x-auth-id-alias-jersey2-java8' jar has been published to maven central.
mavenLocal() // Needed if the 'openapi3-extensions-x-auth-id-alias-jersey2-java8' jar has been published to the local maven repo.
}
dependencies {
implementation "org.openapitools:openapi3-extensions-x-auth-id-alias-jersey2-java8:1.0.0"
}
```

### Others
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ test
Building the API client library requires:

1. Java 1.8+
2. Maven/Gradle
2. Maven (3.8.3+)/Gradle (7.2+)

## Installation

Expand Down Expand Up @@ -50,7 +50,14 @@ Add this dependency to your project's POM:
Add this dependency to your project's build file:

```groovy
compile "org.openapitools:petstore-openapi3-jersey2-java8-special-characters:1.0.0"
repositories {
mavenCentral() // Needed if the 'petstore-openapi3-jersey2-java8-special-characters' jar has been published to maven central.
mavenLocal() // Needed if the 'petstore-openapi3-jersey2-java8-special-characters' jar has been published to the local maven repo.
}
dependencies {
implementation "org.openapitools:petstore-openapi3-jersey2-java8-special-characters:1.0.0"
}
```

### Others
Expand Down
11 changes: 9 additions & 2 deletions samples/openapi3/client/petstore/java/jersey2-java8/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ This spec is mainly for testing Petstore server and contains fake endpoints, mod
Building the API client library requires:

1. Java 1.8+
2. Maven/Gradle
2. Maven (3.8.3+)/Gradle (7.2+)

## Installation

Expand Down Expand Up @@ -50,7 +50,14 @@ Add this dependency to your project's POM:
Add this dependency to your project's build file:

```groovy
compile "org.openapitools:petstore-openapi3-jersey2-java8:1.0.0"
repositories {
mavenCentral() // Needed if the 'petstore-openapi3-jersey2-java8' jar has been published to maven central.
mavenLocal() // Needed if the 'petstore-openapi3-jersey2-java8' jar has been published to the local maven repo.
}
dependencies {
implementation "org.openapitools:petstore-openapi3-jersey2-java8:1.0.0"
}
```

### Others
Expand Down

0 comments on commit 4b62b55

Please sign in to comment.