@@ -23,29 +23,25 @@ def getDevelopmentVersion() {
23
23
"0.0.0-" + new SimpleDateFormat('yyyy-MM-dd\'T\'HH-mm-ss').format(new Date()) + "-" + gitHash
24
24
}
25
25
26
-
27
26
def releaseVersion = System.env.RELEASE_VERSION
28
27
version = releaseVersion ? releaseVersion : getDevelopmentVersion()
29
28
println "Building version = " + version
30
29
group = 'com.graphql-java'
31
30
32
- if (JavaVersion.current() != JavaVersion.VERSION_11) {
33
- def msg = String.format("This build must be run with Java 11 - you are running %s - gradle finds the JDK via JAVA_HOME=%s",
34
- JavaVersion.current(), System.getenv("JAVA_HOME") )
35
- throw new GradleException(msg)
31
+ java {
32
+ toolchain {
33
+ languageVersion = JavaLanguageVersion.of(11 )
34
+ }
36
35
}
37
36
38
- sourceCompatibility = JavaVersion.VERSION_11.toString()
39
- targetCompatibility = JavaVersion.VERSION_11.toString()
40
-
41
37
repositories {
42
38
mavenCentral()
43
39
mavenLocal()
44
40
}
45
41
46
-
47
42
dependencies {
48
- api "com.graphql-java:graphql-java:20.0"
43
+ api "com.graphql-java:graphql-java:21.0"
44
+ // todo: upgrade to 21.0
49
45
api "com.graphql-java:graphql-java-extended-scalars:20.0"
50
46
api "org.hibernate.validator:hibernate-validator:7.0.1.Final"
51
47
api "org.glassfish:jakarta.el:4.0.2"
@@ -91,7 +87,7 @@ publishing {
91
87
asNode().children().last() + {
92
88
resolveStrategy = Closure.DELEGATE_FIRST
93
89
name 'graphql-java-extended-validation'
94
- description 'A library fo extended validation for graphql-java'
90
+ description 'A library of extended validation for graphql-java'
95
91
url 'https://github.com/graphql-java/graphql-java-extended-validation'
96
92
inceptionYear '2019'
97
93
@@ -137,9 +133,7 @@ signing {
137
133
sign publishing.publications
138
134
}
139
135
140
-
141
136
// all publish tasks depend on the build task
142
137
tasks.withType(PublishToMavenRepository) {
143
138
dependsOn build
144
139
}
145
-
0 commit comments