Skip to content

Commit 5668a7d

Browse files
committed
Bump jsonschema2pojo to 1.0.1.
1 parent e76f5f0 commit 5668a7d

File tree

2 files changed

+12
-11
lines changed

2 files changed

+12
-11
lines changed

project.gradle

+3-2
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ dependencies {
3939
exclude(group: "com.fasterxml.jackson.core", module: "jackson-core");
4040
exclude(group: "com.fasterxml.jackson.core", module: "jackson-databind");
4141
}
42-
compile(group: "com.googlecode.jsonschema2pojo",
43-
name: "jsonschema2pojo-core", version: "0.3.5") {
42+
compile(group: "org.jsonschema2pojo",
43+
name: "jsonschema2pojo-core", version: "1.0.1") {
4444
exclude(group: "com.fasterxml.jackson.core", module: "jackson-core");
4545
exclude(group: "com.fasterxml.jackson.core", module: "jackson-databind");
4646
}
@@ -71,4 +71,5 @@ javadoc.options {
7171
links("https://java-json-tools.github.io/msg-simple/");
7272
links("https://java-json-tools.github.io/json-schema-core/1.2.x/");
7373
links("https://java-json-tools.github.io/json-schema-validator/2.2.x/");
74+
links("https://joelittlejohn.github.io/jsonschema2pojo/javadocs/1.0.1/");
7475
}

src/main/java/com/github/fge/jsonschema2pojo/JsonSchema2SourceCode.java

+9-9
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,17 @@
1010
import com.github.fge.jsonschema.core.tree.SchemaTree;
1111
import com.github.fge.jsonschema.core.util.ValueHolder;
1212
import com.google.common.io.Files;
13-
import com.googlecode.jsonschema2pojo.Annotator;
14-
import com.googlecode.jsonschema2pojo.DefaultGenerationConfig;
15-
import com.googlecode.jsonschema2pojo.GenerationConfig;
16-
import com.googlecode.jsonschema2pojo.Jackson2Annotator;
17-
import com.googlecode.jsonschema2pojo.SchemaGenerator;
18-
import com.googlecode.jsonschema2pojo.SchemaMapper;
19-
import com.googlecode.jsonschema2pojo.SchemaStore;
20-
import com.googlecode.jsonschema2pojo.rules.RuleFactory;
2113
import com.sun.codemodel.CodeWriter;
2214
import com.sun.codemodel.JCodeModel;
2315
import com.sun.codemodel.writer.SingleStreamCodeWriter;
16+
import org.jsonschema2pojo.Annotator;
17+
import org.jsonschema2pojo.DefaultGenerationConfig;
18+
import org.jsonschema2pojo.GenerationConfig;
19+
import org.jsonschema2pojo.Jackson2Annotator;
20+
import org.jsonschema2pojo.SchemaGenerator;
21+
import org.jsonschema2pojo.SchemaMapper;
22+
import org.jsonschema2pojo.SchemaStore;
23+
import org.jsonschema2pojo.rules.RuleFactory;
2424

2525
import java.io.ByteArrayOutputStream;
2626
import java.io.File;
@@ -64,7 +64,7 @@ protected String rawProcess(final ProcessingReport report,
6464
/*
6565
* Customize generated code
6666
*/
67-
final Annotator annotator = new Jackson2Annotator();
67+
final Annotator annotator = new Jackson2Annotator(GENCFG);
6868
final SchemaStore store = new SchemaStore();
6969
final RuleFactory ruleFactory
7070
= new RuleFactory(GENCFG, annotator, store);

0 commit comments

Comments
 (0)