Skip to content

Commit 3ea1075

Browse files
authored
[build] dependency updates (ExpediaGroup#1253)
* [build] dependency updates Updates to the latest version of the libs. This change does not include Kotlin update to 1.5.30 due to following issues: * Gradle Kotlin compile task presents a warning that Java compile task (we don't have any Java sources) uses different JVM target (Java version defaults to your local JVM default) * Above warning can be fixed by explicitly configuring Java tasks (again we don't have any Java sources) to use Java 8 target OR through toolchain configuration - at least it should be, when using toolchain configuration `kapt` blows up with unable to find the toolchain JVM * Android test project used as an integration test for Gradle plugin blows up with `Cannot have abstract method KotlinJavaToolchain.getJdk()` * fix unit tests `OptionalInput` is now supported for both kotlinx-serialization and Jackson. Updating test to account for this.
1 parent 2d1031a commit 3ea1075

File tree

12 files changed

+33
-25
lines changed

12 files changed

+33
-25
lines changed
333 Bytes
Binary file not shown.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.1.1-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-bin.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists

examples/gradlew

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ case "`uname`" in
7272
Darwin* )
7373
darwin=true
7474
;;
75-
MINGW* )
75+
MSYS* | MINGW* )
7676
msys=true
7777
;;
7878
NONSTOP* )

gradle.properties

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -16,35 +16,35 @@ org.gradle.jvmargs=-Xmx2g -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError
1616
# dependencies
1717
kotlinJvmVersion = 1.8
1818
kotlinVersion = 1.5.21
19-
kotlinCoroutinesVersion = 1.5.0
20-
kotlinxSerializationVersion = 1.2.1
19+
kotlinCoroutinesVersion = 1.5.1
20+
kotlinxSerializationVersion = 1.2.2
2121

22-
androidPluginVersion = 4.2.2
23-
classGraphVersion = 4.8.110
24-
federationGraphQLVersion = 0.6.4
25-
graphQLJavaVersion = 17.1
26-
jacksonVersion = 2.12.4
27-
kotlinPoetVersion = 1.8.0
28-
ktorVersion = 1.6.1
29-
reactorVersion = 3.4.8
22+
androidPluginVersion = 7.0.1
23+
classGraphVersion = 4.8.115
24+
federationGraphQLVersion = 0.6.5
25+
graphQLJavaVersion = 17.2
26+
jacksonVersion = 2.12.5
27+
kotlinPoetVersion = 1.9.0
28+
ktorVersion = 1.6.3
29+
reactorVersion = 3.4.9
3030
reactorExtensionsVersion = 1.1.3
3131
slf4jVersion = 1.7.30
3232
springBootVersion = 2.5.3
3333
springVersion = 5.3.9
3434

3535
# test dependency versions
36-
compileTestingVersion = 1.4.2
36+
compileTestingVersion = 1.4.3
3737
junitVersion = 5.7.2
38-
mockkVersion = 1.11.0
38+
mockkVersion = 1.12.0
3939
mustacheVersion = 0.9.10
40-
rxjavaVersion = 3.0.13
41-
wireMockVersion = 2.28.1
40+
rxjavaVersion = 3.1.0
41+
wireMockVersion = 2.30.1
4242

4343
# plugin versions
44-
detektVersion = 1.17.1
44+
detektVersion = 1.18.0
4545
dokkaVersion = 1.5.0
4646
jacocoVersion = 0.8.7
47-
ktlintVersion = 0.41.0
47+
ktlintVersion = 0.42.1
4848
ktlintPluginVersion = 10.1.0
4949
mavenPluginDevelopmentVersion = 0.3.1
5050
nexusPublishPluginVersion = 1.1.0

gradle/wrapper/gradle-wrapper.jar

333 Bytes
Binary file not shown.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.1.1-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-bin.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists

gradlew

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ case "`uname`" in
7272
Darwin* )
7373
darwin=true
7474
;;
75-
MINGW* )
75+
MSYS* | MINGW* )
7676
msys=true
7777
;;
7878
NONSTOP* )

plugins/client/graphql-kotlin-client-generator/src/test/kotlin/com/expediagroup/graphql/plugin/client/DownloadSchemaTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ class DownloadSchemaTest {
6262
if: Boolean!
6363
) on FIELD | FRAGMENT_SPREAD | INLINE_FRAGMENT
6464
65-
"Marks the field or enum value as deprecated"
65+
"Marks the field, argument, input field or enum value as deprecated"
6666
directive @deprecated(
6767
"The reason for the deprecation"
6868
reason: String! = "No longer supported"

plugins/client/graphql-kotlin-client-generator/src/test/kotlin/com/expediagroup/graphql/plugin/client/IntrospectSchemaTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ class IntrospectSchemaTest {
5959
if: Boolean!
6060
) on FIELD | FRAGMENT_SPREAD | INLINE_FRAGMENT
6161
62-
"Marks the field or enum value as deprecated"
62+
"Marks the field, argument, input field or enum value as deprecated"
6363
directive @deprecated(
6464
"The reason for the deprecation"
6565
reason: String = "No longer supported"

plugins/graphql-kotlin-gradle-plugin/src/integration/android/androidGraphQLClient/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ buildscript {
99
}
1010
}
1111

12-
val androidPluginVersion = System.getenv("ANDROID_PLUGIN_VERSION") ?: "4.2.2"
12+
val androidPluginVersion = System.getenv("ANDROID_PLUGIN_VERSION") ?: "7.0.1"
1313
val graphQLKotlinVersion = System.getenv("GRAPHQL_KOTLIN_VERSION") ?: "5.0.0-SNAPSHOT"
1414
val kotlinVersion = System.getenv("KOTLIN_VERSION") ?: "1.5.21"
1515
dependencies {

plugins/graphql-kotlin-gradle-plugin/src/test/kotlin/com/expediagroup/graphql/plugin/gradle/GraphQLGradlePluginIT.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,9 +256,10 @@ class GraphQLGradlePluginIT : GraphQLGradlePluginAbstractIT() {
256256
"Application",
257257
mapOf(
258258
"ktorClient" to useKtorClient,
259+
"useJackson" to (serializer == GraphQLSerializer.JACKSON),
259260
"defaultHeader" to mapOf("name" to defaultHeaderName, "value" to defaultHeaderValue),
260261
"requestHeader" to mapOf("name" to customHeaderName, "value" to customHeaderValue),
261-
"optionalInputWrapper" to (serializer == GraphQLSerializer.JACKSON)
262+
"optionalInputWrapper" to true
262263
)
263264
)
264265
)

plugins/graphql-kotlin-gradle-plugin/src/test/resources/templates/Application.mustache

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,14 @@ import com.example.generated.inputs.SimpleArgumentInput
66
import com.example.generated.junitquery.BasicObject2
77
import com.example.generated.junitquery.ScalarWrapper
88
import com.example.generated.junitquery.SecondInterfaceImplementation
9-
{{#optionalInputWrapper}}import com.expediagroup.graphql.client.jackson.types.OptionalInput{{/optionalInputWrapper}}
9+
{{#optionalInputWrapper}}
10+
{{#useJackson}}
11+
import com.expediagroup.graphql.client.jackson.types.OptionalInput
12+
{{/useJackson}}
13+
{{^useJackson}}
14+
import com.expediagroup.graphql.client.serialization.types.OptionalInput
15+
{{/useJackson}}
16+
{{/optionalInputWrapper}}
1017
{{#ktorClient}}
1118
import com.expediagroup.graphql.client.ktor.GraphQLKtorClient
1219
{{#defaultHeader}}

0 commit comments

Comments
 (0)