Skip to content

Commit 994b9f9

Browse files
Update graphql-java to 19.2
1 parent 3d1969c commit 994b9f9

File tree

2 files changed

+16
-9
lines changed

2 files changed

+16
-9
lines changed

README.md

+8-7
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ This library provides extended validation of fields and field arguments for [gra
1919
<dependency>
2020
<groupId>com.graphql-java</groupId>
2121
<artifactId>graphql-java-extended-validation</artifactId>
22-
<version>18.1</version>
22+
<version>19.0</version>
2323
</dependency>
2424
```
2525

2626
```groovy
27-
compile 'com.graphql-java:graphql-java-extended-validation:18.1'
27+
compile 'com.graphql-java:graphql-java-extended-validation:19.0'
2828
```
2929

3030
> Note:
@@ -38,6 +38,8 @@ compile 'com.graphql-java:graphql-java-extended-validation:18.1'
3838
> use 18.1 or above for graphql-java 18.x and above
3939
>
4040
> use 18.1-hibernate-validator-6.2.0.Final for graphql-java 18.x and SpringBoot 2.x support
41+
>
42+
> use 19.0 or above for graphql-java 19.x and above
4143
4244
It's currently available from Maven central.
4345

@@ -134,14 +136,13 @@ Like javax.validation, this library ships with some default error message templa
134136
# I18n Locale Support
135137
136138
The validation library aims to offer Internationalisation (18N) of the error messages. When the validation rules
137-
run they are passed in a `java.util.Locale`. A `ResourceBundleMessageInterpolator` can then be used to build up messages
139+
run they are passed in a `java.util.Locale`. A `ResourceBundleMessageInterpolator` can then be used to build up messages
138140
that come from I18N bundles.
139141
140-
A `Locale` should be created per graphql execution. However at the time of writing graphql-java does not
141-
pass in a `Locale` per request `ExecutionInput` . A PR exists to fix this and it will be released in v14.0. This
142-
library will then be updated to to take advantage of this.
142+
A `Locale` should be created per graphql execution, and can be passed to `ExecutionInput`. More i18n is being added to graphql-java
143+
and later this library will then be updated to to take advantage of i18n.
143144
144-
In the mean time you can work around this by having the `context`, `source` or `root` implement `graphql.validation.locale.LocaleProvider` and
145+
In the meantime you can work around this by having the `context`, `source` or `root` implement `graphql.validation.locale.LocaleProvider` and
145146
the library will extract a `Locale` from that.
146147
147148
# Schema Directive Wiring

build.gradle

+8-2
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,12 @@ version = releaseVersion ? releaseVersion : getDevelopmentVersion()
2929
println "Building version = " + version
3030
group = 'com.graphql-java'
3131

32+
if (JavaVersion.current() != JavaVersion.VERSION_1_8) {
33+
def msg = String.format("This build must be run with java 1.8 - you are running %s - gradle finds the JDK via JAVA_HOME=%s",
34+
JavaVersion.current(), System.getenv("JAVA_HOME"))
35+
throw new GradleException(msg)
36+
}
37+
3238
sourceCompatibility = 1.8
3339
targetCompatibility = 1.8
3440

@@ -39,8 +45,8 @@ repositories {
3945

4046

4147
dependencies {
42-
api "com.graphql-java:graphql-java:18.1"
43-
api "com.graphql-java:graphql-java-extended-scalars:18.1"
48+
api "com.graphql-java:graphql-java:19.2"
49+
api "com.graphql-java:graphql-java-extended-scalars:19.0"
4450
api "org.hibernate.validator:hibernate-validator:7.0.1.Final"
4551
api "org.glassfish:jakarta.el:4.0.0"
4652

0 commit comments

Comments
 (0)