Skip to content
This repository was archived by the owner on Dec 25, 2024. It is now read-only.

Commit e50ed27

Browse files
authored
Merge pull request #18 from openapi-json-schema-tools/feat_fixes_version
Version fixed in cli, maven and gradle modules removed
2 parents 3e42791 + f368477 commit e50ed27

File tree

88 files changed

+57
-11107
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

88 files changed

+57
-11107
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ modules/openapi-generator-gradle-plugin/bin/
1414
.classpath
1515
lib/*
1616
build/*
17+
.flattened-pom.xml
1718
generated-files/*
1819
generated-sources/*
1920
generated-code/*

Dockerfile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ COPY ./LICENSE ${GEN_DIR}
1111
COPY ./google_checkstyle.xml ${GEN_DIR}
1212

1313
# Modules are copied individually here to allow for caching of docker layers between major.minor versions
14-
COPY ./modules/openapi-json-schema-generator-gradle-plugin ${GEN_DIR}/modules/openapi-json-schema-generator-gradle-plugin
15-
COPY ./modules/openapi-json-schema-generator-maven-plugin ${GEN_DIR}/modules/openapi-json-schema-generator-maven-plugin
1614
COPY ./modules/openapi-json-schema-generator-online ${GEN_DIR}/modules/openapi-json-schema-generator-online
1715
COPY ./modules/openapi-json-schema-generator-cli ${GEN_DIR}/modules/openapi-json-schema-generator-cli
1816
COPY ./modules/openapi-json-schema-generator-core ${GEN_DIR}/modules/openapi-json-schema-generator-core

README.md

Lines changed: 18 additions & 87 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,8 @@ Definitely!
4343
- [Table of Contents](#table-of-contents)
4444
- [1 - Installation](#1---installation)
4545
- [1.1 - Compatibility](#11---compatibility)
46-
- [1.2 - Artifacts on Maven Central](#12---artifacts-on-maven-central)
47-
- [1.3 - Download JAR](#13---download-jar)
48-
- [1.4 - Build Projects](#14---build-projects)
49-
- [1.5 - Docker](#15---docker)
46+
- [1.2 - Build Projects](#12---build-projects)
47+
- [1.3 - Docker](#13---docker)
5048
- [2 - Getting Started](#2---getting-started)
5149
- [3 - Usage](#3---usage)
5250
- [3.1 - Customization](#31---customization)
@@ -56,7 +54,7 @@ Definitely!
5654
- [3.5 - IDE Integration](#35---ide-integration)
5755
- [4 - Companies/Projects using OpenAPI JSON Schema Generator](#4---companiesprojects-using-openapi-json-schema-generator)
5856
- [5 - About Us](#5---about-us)
59-
- [5.3 - History of OpenAPI JSON Schema Generator](#53---history-of-openapi-json-schema-generator)
57+
- [5.1 - History of OpenAPI JSON Schema Generator](#53---history-of-openapi-json-schema-generator)
6058
- [6 - License](#6---license)
6159

6260
## [1 - Installation](#table-of-contents)
@@ -70,79 +68,7 @@ The OpenAPI Specification has undergone 3 revisions since initial creation in 20
7068
| 1.0.0 (first stable release) [SNAPSHOT](https://oss.sonatype.org/content/repositories/snapshots/org/openapitools/openapi-json-schema-generator-cli/1.0.0-SNAPSHOT/) | TBD | First release |
7169
OpenAPI Spec compatibility: 3.0
7270

73-
74-
## [1.2 - Artifacts on Maven Central](#table-of-contents)
75-
76-
You can find our released artifacts on maven central:
77-
78-
**Core:**
79-
```xml
80-
<dependency>
81-
<groupId>org.openapitools</groupId>
82-
<artifactId>openapi-json-schema-generator</artifactId>
83-
<version>${openapi-json-schema-generator-version}</version>
84-
</dependency>
85-
```
86-
See the different versions of the [openapi-json-schema-generator](https://search.maven.org/artifact/org.openapitools/openapi-json-schema-generator) artifact available on maven central.
87-
88-
**Cli:**
89-
```xml
90-
<dependency>
91-
<groupId>org.openapitools</groupId>
92-
<artifactId>openapi-json-schema-generator-cli</artifactId>
93-
<version>${openapi-json-schema-generator-version}</version>
94-
</dependency>
95-
```
96-
See the different versions of the [openapi-json-schema-generator-cli](https://search.maven.org/artifact/org.openapitools/openapi-json-schema-generator-cli) artifact available on maven central.
97-
98-
**Maven plugin:**
99-
```xml
100-
<dependency>
101-
<groupId>org.openapitools</groupId>
102-
<artifactId>openapi-json-schema-generator-maven-plugin</artifactId>
103-
<version>${openapi-json-schema-generator-version}</version>
104-
</dependency>
105-
```
106-
* See the different versions of the [openapi-json-schema-generator-maven-plugin](https://search.maven.org/artifact/org.openapitools/openapi-json-schema-generator-maven-plugin) artifact available on maven central.
107-
* [Readme](https://github.com/OpenAPITools/openapi-json-schema-generator/blob/master/modules/openapi-json-schema-generator-maven-plugin/README.md)
108-
109-
**Gradle plugin:**
110-
```xml
111-
<dependency>
112-
<groupId>org.openapitools</groupId>
113-
<artifactId>openapi-json-schema-generator-gradle-plugin</artifactId>
114-
<version>${openapi-json-schema-generator-version}</version>
115-
</dependency>
116-
```
117-
* See the different versions of the [openapi-json-schema-generator-gradle-plugin](https://search.maven.org/artifact/org.openapitools/openapi-json-schema-generator-gradle-plugin) artifact available on maven central.
118-
* [Readme](https://github.com/OpenAPITools/openapi-json-schema-generator/blob/master/modules/openapi-json-schema-generator-gradle-plugin/README.adoc)
119-
120-
### [1.3 - Download JAR](#table-of-contents)
121-
<!-- RELEASE_VERSION -->
122-
If you're looking for the latest stable version, you can grab it directly from Maven.org (Java 8 runtime at a minimum):
123-
124-
JAR location: `https://repo1.maven.org/maven2/org/openapitools/openapi-json-schema-generator-cli/6.1.0/openapi-json-schema-generator-cli-6.1.0.jar`
125-
126-
For **Mac/Linux** users:
127-
```sh
128-
wget https://repo1.maven.org/maven2/org/openapitools/openapi-json-schema-generator-cli/6.1.0/openapi-json-schema-generator-cli-6.1.0.jar -O openapi-json-schema-generator-cli.jar
129-
```
130-
131-
For **Windows** users, you will need to install [wget](http://gnuwin32.sourceforge.net/packages/wget.htm) or you can use Invoke-WebRequest in PowerShell (3.0+), e.g.
132-
```
133-
Invoke-WebRequest -OutFile openapi-json-schema-generator-cli.jar https://repo1.maven.org/maven2/org/openapitools/openapi-json-schema-generator-cli/6.1.0/openapi-json-schema-generator-cli-6.1.0.jar
134-
```
135-
136-
After downloading the JAR, run `java -jar openapi-json-schema-generator-cli.jar help` to show the usage.
137-
138-
For Mac users, please make sure Java 8 is installed (Tips: run `java -version` to check the version), and export `JAVA_HOME` in order to use the supported Java version:
139-
```sh
140-
export JAVA_HOME=`/usr/libexec/java_home -v 1.8`
141-
export PATH=${JAVA_HOME}/bin:$PATH
142-
```
143-
<!-- /RELEASE_VERSION -->
144-
145-
### [1.4 - Build Projects](#table-of-contents)
71+
### [1.2 - Build Projects](#table-of-contents)
14672

14773
To build from source, you need the following installed and available in your `$PATH:`
14874

@@ -166,7 +92,7 @@ The default build contains minimal static analysis (via CheckStyle). To run your
16692
mvn -Pstatic-analysis clean install
16793
```
16894

169-
### [1.5 - Docker](#table-of-contents)
95+
### [1.3 - Docker](#table-of-contents)
17096

17197
#### Public Pre-built Docker images
17298

@@ -182,7 +108,7 @@ Example:
182108

183109
```sh
184110
docker run --rm -v "${PWD}:/local" openapjsonschematools/openapi-json-schema-generator-cli generate \
185-
-i https://raw.githubusercontent.com/openapjsonschematools/openapi-json-schema-generator/master/modules/openapi-json-schema-generator/src/test/resources/3_0/petstore.yaml \
111+
-i https://raw.githubusercontent.com/openapi-json-schema-tools/openapi-json-schema-generator/master/modules/openapi-json-schema-generator/src/test/resources/3_0/petstore.yaml \
186112
-g python \
187113
-o /local/out/python
188114
```
@@ -275,17 +201,17 @@ cd /vagrant
275201
<!-- /RELEASE_VERSION -->
276202
## [2 - Getting Started](#table-of-contents)
277203

278-
To generate a PHP client for [petstore.yaml](https://raw.githubusercontent.com/openapitools/openapi-json-schema-generator/master/modules/openapi-json-schema-generator/src/test/resources/3_0/petstore.yaml), please run the following
204+
To generate a python client for [petstore.yaml](https://raw.githubusercontent.com/openapi-json-schema-tools/openapi-json-schema-generator/master/modules/openapi-json-schema-generator/src/test/resources/3_0/petstore.yaml), please run the following
279205
```sh
280-
git clone https://github.com/openapitools/openapi-json-schema-generator
206+
git clone https://github.com/openapi-json-schema-tools/openapi-json-schema-generator
281207
cd openapi-json-schema-generator
282208
mvn clean package
283209
java -jar modules/openapi-json-schema-generator-cli/target/openapi-json-schema-generator-cli.jar generate \
284-
-i https://raw.githubusercontent.com/openapitools/openapi-json-schema-generator/master/modules/openapi-json-schema-generator/src/test/resources/3_0/petstore.yaml \
285-
-g php \
286-
-o /var/tmp/php_api_client
210+
-i https://raw.githubusercontent.com/openapi-json-schema-tools/openapi-json-schema-generator/master/modules/openapi-json-schema-generator/src/test/resources/3_0/petstore.yaml \
211+
-g python \
212+
-o /var/tmp/python_api_client
287213
```
288-
(if you're on Windows, replace the last command with `java -jar modules\openapi-json-schema-generator-cli\target\openapi-json-schema-generator-cli.jar generate -i https://raw.githubusercontent.com/openapitools/openapi-json-schema-generator/master/modules/openapi-json-schema-generator/src/test/resources/3_0/petstore.yaml -g php -o c:\temp\php_api_client`)
214+
(if you're on Windows, replace the last command with `java -jar modules\openapi-json-schema-generator-cli\target\openapi-json-schema-generator-cli.jar generate -i https://raw.githubusercontent.com/openapi-json-schema-tools/openapi-json-schema-generator/master/modules/openapi-json-schema-generator/src/test/resources/3_0/petstore.yaml -g python -o c:\temp\python_api_client`)
289215

290216
<!-- RELEASE_VERSION -->
291217
You can also download the JAR (latest release) directly from [maven.org](https://repo1.maven.org/maven2/org/openapitools/openapi-json-schema-generator-cli/6.1.0/openapi-json-schema-generator-cli-6.1.0.jar)
@@ -397,11 +323,16 @@ The OpenAPI JSON Schema Generator project is intended as a benefit for users of
397323

398324
When code is generated from this project, it shall be considered **AS IS** and owned by the user of the software. There are no warranties--expressed or implied--for generated code. You can do what you wish with it, and once generated, the code is your responsibility and subject to the licensing terms that you deem appropriate.
399325

400-
### [6 - History of OpenAPI JSON Schema Generator](#table-of-contents)
326+
## [4 - Companies/Projects using OpenAPI JSON Schema Generator](#table-of-contents)
327+
328+
## [5 - About Us](#table-of-contents)
329+
330+
## [6 - History of OpenAPI JSON Schema Generator](#table-of-contents)
401331

402332
OpenAPI JSON Schema Generator is based on OpenAPI Generator v6.2.0. It focuses on JSON schema support and the output is designed to be 100% compliance with JSON Schema.
403333

404334
## [7 - License](#table-of-contents)
335+
405336
-------
406337

407338
Copyright 2018 OpenAPI-Generator Contributors (https://openapi-generator.tech)

modules/openapi-json-schema-generator-cli/pom.xml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@
33
<parent>
44
<groupId>org.openapitools</groupId>
55
<artifactId>openapi-json-schema-generator-project</artifactId>
6-
<!-- RELEASE_VERSION -->
7-
<version>1.0.0-SNAPSHOT</version>
8-
<!-- /RELEASE_VERSION -->
6+
<version>${revision}</version>
97
<relativePath>../..</relativePath>
108
</parent>
119
<modelVersion>4.0.0</modelVersion>

modules/openapi-json-schema-generator-cli/src/main/java/org/openapitools/codegen/cmd/BuildInfo.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public class BuildInfo {
3131
}
3232
} catch (IOException ignored) {
3333
}
34-
try (InputStream is = BuildInfo.class.getResourceAsStream("/openapi-generator-git.properties")) {
34+
try (InputStream is = BuildInfo.class.getResourceAsStream("/openapi-json-schema-generator-git.properties")) {
3535
if (is != null) {
3636
Properties gitProps = new Properties();
3737
gitProps.load(is);

modules/openapi-json-schema-generator-core/pom.xml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,7 @@
55
<parent>
66
<artifactId>openapi-json-schema-generator-project</artifactId>
77
<groupId>org.openapitools</groupId>
8-
<!-- RELEASE_VERSION -->
9-
<version>1.0.0-SNAPSHOT</version>
10-
<!-- /RELEASE_VERSION -->
8+
<version>${revision}</version>
119
<relativePath>../..</relativePath>
1210
</parent>
1311
<modelVersion>4.0.0</modelVersion>

modules/openapi-json-schema-generator-gradle-plugin/.gitignore

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

0 commit comments

Comments
 (0)