Skip to content

Commit

Permalink
Merge branch 'joelittlejohn:master' into issues/1010
Browse files Browse the repository at this point in the history
  • Loading branch information
unkish authored Sep 22, 2024
2 parents a68742e + 79525f9 commit be50508
Show file tree
Hide file tree
Showing 14 changed files with 41 additions and 32 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## 1.2.2
* Don't log ClassAlreadyExistsException for Enum ([#1597](https://github.com/joelittlejohn/jsonschema2pojo/pull/1597))
* Prevent generating duplicate constructors when all properties are required; and both includeAllPropertiesConstructor and includeRequiredPropertiesConstructor are true ([#1553](https://github.com/joelittlejohn/jsonschema2pojo/pull/1553))
* Add support for property names containing question mark(s) ([#1522](https://github.com/joelittlejohn/jsonschema2pojo/pull/1522))
* Avoid NPE when setting additionalProperties path ([#1515](https://github.com/joelittlejohn/jsonschema2pojo/pull/1515))

## 1.2.1
* Fix detection of targetVersion for Android gradle builds ([#1487](https://github.com/joelittlejohn/jsonschema2pojo/pull/1487))

Expand Down
3 changes: 3 additions & 0 deletions CONTRIBUTORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,3 +116,6 @@
* TheTrueDentist
* Josejulio Martínez
* Nils Andresen
* Michael Edgar
* Julien Herr
* Daniel Hammer
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ A very simple Maven example:
<plugin>
<groupId>org.jsonschema2pojo</groupId>
<artifactId>jsonschema2pojo-maven-plugin</artifactId>
<version>1.2.1</version>
<version>1.2.2</version>
<configuration>
<sourceDirectory>${basedir}/src/main/resources/schema</sourceDirectory>
<targetPackage>com.example.types</targetPackage>
Expand All @@ -31,7 +31,7 @@ A very simple Gradle example:
```groovy
plugins {
id "java"
id "org.jsonschema2pojo" version "1.2.1"
id "org.jsonschema2pojo" version "1.2.2"
}
repositories {
Expand All @@ -51,10 +51,10 @@ Useful pages:
* **[Getting started](https://github.com/joelittlejohn/jsonschema2pojo/wiki/Getting-Started)**
* **[How to contribute](https://github.com/joelittlejohn/jsonschema2pojo/blob/master/CONTRIBUTING.md)**
* [Reference](https://github.com/joelittlejohn/jsonschema2pojo/wiki/Reference)
* [Latest Javadocs](https://joelittlejohn.github.io/jsonschema2pojo/javadocs/1.2.1/)
* [Documentation for the Maven plugin](https://joelittlejohn.github.io/jsonschema2pojo/site/1.2.1/generate-mojo.html)
* [Latest Javadocs](https://joelittlejohn.github.io/jsonschema2pojo/javadocs/1.2.2/)
* [Documentation for the Maven plugin](https://joelittlejohn.github.io/jsonschema2pojo/site/1.2.2/generate-mojo.html)
* [Documentation for the Gradle plugin](https://github.com/joelittlejohn/jsonschema2pojo/tree/master/jsonschema2pojo-gradle-plugin#usage)
* [Documentation for the Ant task](https://joelittlejohn.github.io/jsonschema2pojo/site/1.2.1/Jsonschema2PojoTask.html)
* [Documentation for the Ant task](https://joelittlejohn.github.io/jsonschema2pojo/site/1.2.2/Jsonschema2PojoTask.html)

Project resources:
* [Downloads](https://github.com/joelittlejohn/jsonschema2pojo/releases)
Expand Down
2 changes: 1 addition & 1 deletion jsonschema2pojo-ant/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>jsonschema2pojo</artifactId>
<groupId>org.jsonschema2pojo</groupId>
<version>1.2.2-SNAPSHOT</version>
<version>1.2.3-SNAPSHOT</version>
</parent>

<artifactId>jsonschema2pojo-ant</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion jsonschema2pojo-cli/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>jsonschema2pojo</artifactId>
<groupId>org.jsonschema2pojo</groupId>
<version>1.2.2-SNAPSHOT</version>
<version>1.2.3-SNAPSHOT</version>
</parent>

<artifactId>jsonschema2pojo-cli</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion jsonschema2pojo-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>jsonschema2pojo</artifactId>
<groupId>org.jsonschema2pojo</groupId>
<version>1.2.2-SNAPSHOT</version>
<version>1.2.3-SNAPSHOT</version>
</parent>

<artifactId>jsonschema2pojo-core</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,6 @@ public JType apply(String nodeName, JsonNode node, JsonNode parent, JClassContai
try {
_enum = createEnum(node, nodeName, container);
} catch (ClassAlreadyExistsException e) {
ruleFactory.getLogger().error("Could not create enum.", e);
return e.getExistingClass();
}

Expand Down
8 changes: 4 additions & 4 deletions jsonschema2pojo-gradle-plugin/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ With Groovy:
```groovy
plugins {
id "java"
id "org.jsonschema2pojo" version "1.2.1"
id "org.jsonschema2pojo" version "1.2.2"
}
jsonSchema2Pojo {
Expand All @@ -28,7 +28,7 @@ With Kotlin:
```kotlin
plugins {
id("java")
id("org.jsonschema2pojo") version "1.2.1"
id("org.jsonschema2pojo") version "1.2.2"
}

jsonSchema2Pojo {
Expand All @@ -44,7 +44,7 @@ Below we have a full build.gradle example, showing all available configuration o
```groovy
plugins {
id "java"
id "org.jsonschema2pojo" version "1.2.1"
id "org.jsonschema2pojo" version "1.2.2"
}
repositories {
Expand Down Expand Up @@ -266,7 +266,7 @@ jsonSchema2Pojo {
dateTimeType = "java.time.LocalDateTime"
// What type to use instead of string when adding string properties of format "time" to Java types
timeType = "java.time.LocalDate"
timeType = "java.time.LocalTime"
// A custom pattern to use when formatting date fields during serialization. Requires support from
// your JSON binding library.
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.4-bin.zip
networkTimeout=10000
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
2 changes: 1 addition & 1 deletion jsonschema2pojo-gradle-plugin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>jsonschema2pojo</artifactId>
<groupId>org.jsonschema2pojo</groupId>
<version>1.2.2-SNAPSHOT</version>
<version>1.2.3-SNAPSHOT</version>
</parent>

<artifactId>jsonschema2pojo-gradle-plugin</artifactId>
Expand Down
4 changes: 2 additions & 2 deletions jsonschema2pojo-integration-tests/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>jsonschema2pojo</artifactId>
<groupId>org.jsonschema2pojo</groupId>
<version>1.2.2-SNAPSHOT</version>
<version>1.2.3-SNAPSHOT</version>
</parent>

<artifactId>jsonschema2pojo-integration-tests</artifactId>
Expand Down Expand Up @@ -191,7 +191,7 @@
<dependency>
<groupId>org.apache.johnzon</groupId>
<artifactId>johnzon-jsonb</artifactId>
<version>1.2.19</version>
<version>1.2.21</version>
<scope>test</scope>
</dependency>
<dependency>
Expand Down
2 changes: 1 addition & 1 deletion jsonschema2pojo-maven-plugin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>jsonschema2pojo</artifactId>
<groupId>org.jsonschema2pojo</groupId>
<version>1.2.2-SNAPSHOT</version>
<version>1.2.3-SNAPSHOT</version>
</parent>

<artifactId>jsonschema2pojo-maven-plugin</artifactId>
Expand Down
29 changes: 15 additions & 14 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

<groupId>org.jsonschema2pojo</groupId>
<artifactId>jsonschema2pojo</artifactId>
<version>1.2.2-SNAPSHOT</version>
<version>1.2.3-SNAPSHOT</version>

<packaging>pom</packaging>
<name>jsonschema2pojo</name>
Expand All @@ -37,7 +37,8 @@
<url>https://github.com/joelittlejohn/jsonschema2pojo</url>
<connection>scm:git:[email protected]:joelittlejohn/jsonschema2pojo.git</connection>
<developerConnection>scm:git:[email protected]:joelittlejohn/jsonschema2pojo.git</developerConnection>
</scm>
<tag>HEAD</tag>
</scm>

<licenses>
<license>
Expand All @@ -50,10 +51,10 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<gradle.version>5.6</gradle.version>
<gson.version>2.10.1</gson.version>
<gson.version>2.11.0</gson.version>
<moshi.version>1.12.0</moshi.version>
<jackson2x.version>2.15.2</jackson2x.version>
<jackson2x.databind.version>2.15.2</jackson2x.databind.version>
<jackson2x.version>2.17.2</jackson2x.version>
<jackson2x.databind.version>2.17.2</jackson2x.databind.version>
<maven.plugin.plugin.version>3.8.1</maven.plugin.plugin.version>
</properties>

Expand Down Expand Up @@ -102,7 +103,7 @@
</plugin>
<plugin>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.5.0</version>
<version>2.10.4</version>
</plugin>
<plugin>
<artifactId>maven-plugin-plugin</artifactId>
Expand Down Expand Up @@ -231,7 +232,7 @@
<plugin>
<artifactId>maven-javadoc-plugin</artifactId>
<configuration>
<source>8</source>
<additionalparam>-Xdoclint:none</additionalparam>
</configuration>
<executions>
<execution>
Expand Down Expand Up @@ -357,13 +358,13 @@
<dependency>
<groupId>commons-codec</groupId>
<artifactId>commons-codec</artifactId>
<version>1.15</version>
<version>1.17.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<version>2.11.0</version>
<version>2.17.0</version>
</dependency>
<dependency>
<groupId>commons-lang</groupId>
Expand All @@ -373,12 +374,12 @@
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-text</artifactId>
<version>1.10.0</version>
<version>1.12.0</version>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
<version>3.12.0</version>
<version>3.17.0</version>
</dependency>
<dependency>
<groupId>javax.annotation</groupId>
Expand All @@ -398,7 +399,7 @@
<dependency>
<groupId>joda-time</groupId>
<artifactId>joda-time</artifactId>
<version>2.12.2</version>
<version>2.13.0</version>
</dependency>
<dependency>
<groupId>junit</groupId>
Expand Down Expand Up @@ -435,7 +436,7 @@
<dependency>
<groupId>org.apache.ant</groupId>
<artifactId>ant</artifactId>
<version>1.10.13</version>
<version>1.10.15</version>
</dependency>
<dependency>
<groupId>org.apache.bval</groupId>
Expand Down Expand Up @@ -511,7 +512,7 @@
<dependency>
<groupId>org.skyscreamer</groupId>
<artifactId>jsonassert</artifactId>
<version>1.5.1</version>
<version>1.5.3</version>
<scope>test</scope>
</dependency>
</dependencies>
Expand Down

0 comments on commit be50508

Please sign in to comment.