Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to graphql-java v20 #87

Merged
merged 1 commit into from
Dec 18, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 4 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,29 +18,21 @@ You would use custom scalars when you want to describe more meaningful behavior
## How to install
To use this library put the following into your gradle config

implementation 'com.graphql-java:graphql-java-extended-scalars:19.0'
implementation 'com.graphql-java:graphql-java-extended-scalars:20.0'

or the following into your Maven config

<dependency>
<groupId>com.graphql-java</groupId>
<artifactId>graphql-java-extended-scalars</artifactId>
<version>19.0</version>
<version>20.0</version>
</dependency>

> Note:
>
> use 1.0.1 or above for graphql-java 14.x and above
>
> use 15.0.0 or above for graphql-java 15.x and above
>
> use 16.0.0 or above for graphql-java 16.x and above
>
> use 17.0 or above for graphql-java 17.x and above
>
> use 18.0 or above for graphql-java 18.x and above
>
> use 19.0 or above for graphql-java 19.x and above
>
> use 20.0 or above for graphql-java 20.x and above


It's currently available from Maven Central.
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ repositories {


dependencies {
compile "com.graphql-java:graphql-java:19.2"
compile "com.graphql-java:graphql-java:20.0"

testImplementation 'org.spockframework:spock-core:1.3-groovy-2.5'
testImplementation('org.codehaus.groovy:groovy:2.5.13')
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/graphql/scalars/datetime/DateTimeScalar.java
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ private OffsetDateTime parseOffsetDateTime(String s, Function<String, RuntimeExc
INSTANCE = GraphQLScalarType.newScalar()
.name("DateTime")
.description("A slightly refined version of RFC-3339 compliant DateTime Scalar")
.specifiedByUrl("https://scalars.graphql.org/andimarek/date-time") // TODO: Change to .specifiedByURL after release of graphql-java v20
.specifiedByUrl("https://scalars.graphql.org/andimarek/date-time") // TODO: Change to .specifiedByURL when builder added to graphql-java
.coercing(coercing)
.build();
}
Expand Down