From 4a9c51e8b7331efba3c84a621c6ea1a2bc3f5411 Mon Sep 17 00:00:00 2001 From: Timothy Solum Date: Sat, 8 Oct 2022 10:13:33 -0500 Subject: [PATCH] Feature/modularization (#10) * Added jitpack.yml file * Added module-info file * Added missing package-info files * Incremented patch version * Renamed module --- build.gradle.kts | 2 +- jitpack.yml | 2 ++ src/main/java/module-info.java | 12 ++++++++++++ .../technology/sola/json/builder/package-info.java | 4 ++++ .../technology/sola/json/exception/package-info.java | 4 ++++ .../technology/sola/json/mapper/package-info.java | 4 ++++ src/main/java/technology/sola/json/package-info.java | 4 ++++ .../technology/sola/json/parser/package-info.java | 4 ++++ .../sola/json/serializer/package-info.java | 5 +++++ .../technology/sola/json/tokenizer/package-info.java | 4 ++++ 10 files changed, 44 insertions(+), 1 deletion(-) create mode 100644 jitpack.yml create mode 100644 src/main/java/module-info.java create mode 100644 src/main/java/technology/sola/json/builder/package-info.java create mode 100644 src/main/java/technology/sola/json/exception/package-info.java create mode 100644 src/main/java/technology/sola/json/mapper/package-info.java create mode 100644 src/main/java/technology/sola/json/package-info.java create mode 100644 src/main/java/technology/sola/json/parser/package-info.java create mode 100644 src/main/java/technology/sola/json/serializer/package-info.java create mode 100644 src/main/java/technology/sola/json/tokenizer/package-info.java diff --git a/build.gradle.kts b/build.gradle.kts index 43502cc..8c8a8eb 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -4,7 +4,7 @@ plugins { id("maven-publish") } -version = "2.1.2" +version = "2.1.3" java { toolchain { diff --git a/jitpack.yml b/jitpack.yml new file mode 100644 index 0000000..efde7bf --- /dev/null +++ b/jitpack.yml @@ -0,0 +1,2 @@ +jdk: + - openjdk17 diff --git a/src/main/java/module-info.java b/src/main/java/module-info.java new file mode 100644 index 0000000..e908403 --- /dev/null +++ b/src/main/java/module-info.java @@ -0,0 +1,12 @@ +/** + * Defines the sola-json API. + */ +module technology.sola.json { + exports technology.sola.json; + exports technology.sola.json.builder; + exports technology.sola.json.exception; + exports technology.sola.json.mapper; + exports technology.sola.json.parser; + exports technology.sola.json.serializer; + exports technology.sola.json.tokenizer; +} diff --git a/src/main/java/technology/sola/json/builder/package-info.java b/src/main/java/technology/sola/json/builder/package-info.java new file mode 100644 index 0000000..0eda937 --- /dev/null +++ b/src/main/java/technology/sola/json/builder/package-info.java @@ -0,0 +1,4 @@ +/** + * This package provides builders for {@link technology.sola.json.JsonArray} and {@link technology.sola.json.JsonObject}. + */ +package technology.sola.json.builder; diff --git a/src/main/java/technology/sola/json/exception/package-info.java b/src/main/java/technology/sola/json/exception/package-info.java new file mode 100644 index 0000000..10d899c --- /dev/null +++ b/src/main/java/technology/sola/json/exception/package-info.java @@ -0,0 +1,4 @@ +/** + * This package provides various exceptions for errors that may happen during various sola-json operations. + */ +package technology.sola.json.exception; diff --git a/src/main/java/technology/sola/json/mapper/package-info.java b/src/main/java/technology/sola/json/mapper/package-info.java new file mode 100644 index 0000000..2c65209 --- /dev/null +++ b/src/main/java/technology/sola/json/mapper/package-info.java @@ -0,0 +1,4 @@ +/** + * This package provides classes for mapping between Java objects and JSON. + */ +package technology.sola.json.mapper; diff --git a/src/main/java/technology/sola/json/package-info.java b/src/main/java/technology/sola/json/package-info.java new file mode 100644 index 0000000..21df36e --- /dev/null +++ b/src/main/java/technology/sola/json/package-info.java @@ -0,0 +1,4 @@ +/** + * This package provides the core classes for sola-json. + */ +package technology.sola.json; diff --git a/src/main/java/technology/sola/json/parser/package-info.java b/src/main/java/technology/sola/json/parser/package-info.java new file mode 100644 index 0000000..62fcaff --- /dev/null +++ b/src/main/java/technology/sola/json/parser/package-info.java @@ -0,0 +1,4 @@ +/** + * This package provides functionality for parsing JSON utilizing a {@link technology.sola.json.tokenizer.SolaJsonTokenizer}. + */ +package technology.sola.json.parser; diff --git a/src/main/java/technology/sola/json/serializer/package-info.java b/src/main/java/technology/sola/json/serializer/package-info.java new file mode 100644 index 0000000..aedafc9 --- /dev/null +++ b/src/main/java/technology/sola/json/serializer/package-info.java @@ -0,0 +1,5 @@ +/** + * This package provides functionality for serializing {@link technology.sola.json.JsonElement}, {@link technology.sola.json.JsonObject} + * and {@link technology.sola.json.JsonArray}. + */ +package technology.sola.json.serializer; diff --git a/src/main/java/technology/sola/json/tokenizer/package-info.java b/src/main/java/technology/sola/json/tokenizer/package-info.java new file mode 100644 index 0000000..700ea90 --- /dev/null +++ b/src/main/java/technology/sola/json/tokenizer/package-info.java @@ -0,0 +1,4 @@ +/** + * This package provides functionality for tokenizing a JSON string. + */ +package technology.sola.json.tokenizer;