Skip to content

Commit

Permalink
rename
Browse files Browse the repository at this point in the history
  • Loading branch information
TheGlitch76 committed Jul 1, 2023
1 parent 9f60246 commit 1f7a3dc
Show file tree
Hide file tree
Showing 15 changed files with 30 additions and 30 deletions.
8 changes: 4 additions & 4 deletions README.MD
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# QUP (Quilt Utilities for Parsing)
# Quilt Parsers
A collection of utilities involving data files.

## Modules
Expand All @@ -7,15 +7,15 @@ A simple JSON, JSONC, and JSON5 reader and writer, modeled after GSON's JsonRead
Requires Java 8.
```kotlin
dependencies {
implementation("org.quiltmc.qup:json:0.1.0")
implementation("org.quiltmc.parsers:json:0.1.0")
}
```
### GSON
An adapter of the JSON module to GSON, allowing QUP JsonReader/Writer objects to be used with methods in the `Gson` class.
An adapter of the JSON module to GSON, allowing parsers JsonReader/Writer objects to be used with methods in the `Gson` class.
Requires Java 11.
```kotlin
dependencies {
implementation("org.quiltmc.qup:gson:0.1.0") // pulls in correct versions of qup-json and gson
implementation("org.quiltmc.parsers:gson:0.1.0") // pulls in correct versions of parsers-json and gson
}
```

Expand Down
10 changes: 5 additions & 5 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,15 @@ subprojects {
publications {
create("mavenJava", MavenPublication::class) {
pom {
name.set("QUP ${project.displayName.uppercase()}") // TODO: read a property with a real name
name.set("parsers ${project.displayName.uppercase()}") // TODO: read a property with a real name
packaging = "jar"
description.set(project.description)
url.set("https://github.com/QuiltMC/qup")
url.set("https://github.com/QuiltMC/parsers")

scm {
connection.set("scm:git:https://github.com/QuiltMC/qup.git")
developerConnection.set("scm:git:ssh:[email protected]:QuiltMC/qup.git")
url.set("https://github.com/QuiltMC/qup")
connection.set("scm:git:https://github.com/QuiltMC/parsers.git")
developerConnection.set("scm:git:ssh:[email protected]:QuiltMC/parsers.git")
url.set("https://github.com/QuiltMC/parsers")
}

licenses {
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.0.2-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.2-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
2 changes: 1 addition & 1 deletion gson/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ plugins {

group = rootProject.group.toString() + "." + rootProject.name
version = rootProject.version
description = "An adapter of QUP's JSON readers and writers to GSON"
description = "An adapter of quilt-parsers' JSON readers and writers to GSON"
repositories {
mavenCentral()
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package org.quiltmc.qup.json.gson;
package org.quiltmc.parsers.json.gson;

import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonToken;
Expand All @@ -23,20 +23,20 @@
import java.io.Reader;

/**
* Adapts a QUP {@link org.quiltmc.qup.json.JsonReader} to be used with {@link com.google.gson.Gson}
* Adapts a quilt-parsers' {@link org.quiltmc.parsers.json.JsonReader} to be used with {@link com.google.gson.Gson}
*/
public class GsonReader extends JsonReader {
private final org.quiltmc.qup.json.JsonReader delegate;
private final org.quiltmc.parsers.json.JsonReader delegate;
/**
* Creates a new instance that reads a JSON-encoded stream from {@code in}.
*
*/
public GsonReader(org.quiltmc.qup.json.JsonReader reader) {
public GsonReader(org.quiltmc.parsers.json.JsonReader reader) {
super(Reader.nullReader());
this.delegate = reader;
}

public org.quiltmc.qup.json.JsonReader getDelegate() {
public org.quiltmc.parsers.json.JsonReader getDelegate() {
return delegate;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,25 +14,25 @@
* limitations under the License.
*/

package org.quiltmc.qup.json.gson;
package org.quiltmc.parsers.json.gson;

import com.google.gson.stream.JsonWriter;

import java.io.IOException;
import java.io.Writer;

/**
* Adapts a QUP {@link org.quiltmc.qup.json.JsonWriter} to be used with {@link com.google.gson.Gson}
* Adapts a quilt-parsers' {@link org.quiltmc.parsers.json.JsonWriter} to be used with {@link com.google.gson.Gson}
*/
public class GsonWriter extends JsonWriter {
private final org.quiltmc.qup.json.JsonWriter delegate;
private final org.quiltmc.parsers.json.JsonWriter delegate;

public GsonWriter(org.quiltmc.qup.json.JsonWriter writer) {
public GsonWriter(org.quiltmc.parsers.json.JsonWriter writer) {
super(Writer.nullWriter());
this.delegate = writer;
}

public org.quiltmc.qup.json.JsonWriter getDelegate() {
public org.quiltmc.parsers.json.JsonWriter getDelegate() {
return delegate;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package org.quiltmc.qup.json;
package org.quiltmc.parsers.json;

public class FormatViolationException extends ParseException {
public FormatViolationException() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package org.quiltmc.qup.json;
package org.quiltmc.parsers.json;

/**
* The JSON-family format to be used during parsing or writing.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* limitations under the License.
*/

package org.quiltmc.qup.json;
package org.quiltmc.parsers.json;

import java.io.*;
import java.math.BigDecimal;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* limitations under the License.
*/

package org.quiltmc.qup.json;
package org.quiltmc.parsers.json;

/*
* This is a carbon-copy of Gson's JsonScope.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* limitations under the License.
*/

package org.quiltmc.qup.json;
package org.quiltmc.parsers.json;

/*
* This is a carbon-copy of Gson's JsonToken.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* limitations under the License.
*/

package org.quiltmc.qup.json;
package org.quiltmc.parsers.json;


import org.jetbrains.annotations.Nullable;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package org.quiltmc.qup.json;
package org.quiltmc.parsers.json;

/**
* An exception to be thrown by a parser when the syntax of a file is invalid.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package org.quiltmc.qup.json;
package org.quiltmc.parsers.json;

/**
* A generic exception relating to an error in parsing, from loading the text to be read to emitting it's final representation.
Expand Down
2 changes: 1 addition & 1 deletion settings.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
rootProject.name = "qup"
rootProject.name = "parsers"
include("json")
include("gson")

0 comments on commit 1f7a3dc

Please sign in to comment.