Skip to content

Commit

Permalink
Update to graphql-java v20
Browse files Browse the repository at this point in the history
  • Loading branch information
dondonz committed Dec 18, 2022
1 parent 6fc5a8c commit 6a52ce6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 14 deletions.
16 changes: 4 additions & 12 deletions README.md
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
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
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

0 comments on commit 6a52ce6

Please sign in to comment.