Skip to content

Commit

Permalink
[build] dependency updates (#1253)
Browse files Browse the repository at this point in the history
* [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.
  • Loading branch information
dariuszkuc authored Sep 3, 2021
1 parent 2d1031a commit 3ea1075
Show file tree
Hide file tree
Showing 12 changed files with 33 additions and 25 deletions.
Binary file modified examples/gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion examples/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.1.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
2 changes: 1 addition & 1 deletion examples/gradlew
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ case "`uname`" in
Darwin* )
darwin=true
;;
MINGW* )
MSYS* | MINGW* )
msys=true
;;
NONSTOP* )
Expand Down
32 changes: 16 additions & 16 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -16,35 +16,35 @@ org.gradle.jvmargs=-Xmx2g -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError
# dependencies
kotlinJvmVersion = 1.8
kotlinVersion = 1.5.21
kotlinCoroutinesVersion = 1.5.0
kotlinxSerializationVersion = 1.2.1
kotlinCoroutinesVersion = 1.5.1
kotlinxSerializationVersion = 1.2.2

androidPluginVersion = 4.2.2
classGraphVersion = 4.8.110
federationGraphQLVersion = 0.6.4
graphQLJavaVersion = 17.1
jacksonVersion = 2.12.4
kotlinPoetVersion = 1.8.0
ktorVersion = 1.6.1
reactorVersion = 3.4.8
androidPluginVersion = 7.0.1
classGraphVersion = 4.8.115
federationGraphQLVersion = 0.6.5
graphQLJavaVersion = 17.2
jacksonVersion = 2.12.5
kotlinPoetVersion = 1.9.0
ktorVersion = 1.6.3
reactorVersion = 3.4.9
reactorExtensionsVersion = 1.1.3
slf4jVersion = 1.7.30
springBootVersion = 2.5.3
springVersion = 5.3.9

# test dependency versions
compileTestingVersion = 1.4.2
compileTestingVersion = 1.4.3
junitVersion = 5.7.2
mockkVersion = 1.11.0
mockkVersion = 1.12.0
mustacheVersion = 0.9.10
rxjavaVersion = 3.0.13
wireMockVersion = 2.28.1
rxjavaVersion = 3.1.0
wireMockVersion = 2.30.1

# plugin versions
detektVersion = 1.17.1
detektVersion = 1.18.0
dokkaVersion = 1.5.0
jacocoVersion = 0.8.7
ktlintVersion = 0.41.0
ktlintVersion = 0.42.1
ktlintPluginVersion = 10.1.0
mavenPluginDevelopmentVersion = 0.3.1
nexusPublishPluginVersion = 1.1.0
Expand Down
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.1.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
2 changes: 1 addition & 1 deletion gradlew
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ case "`uname`" in
Darwin* )
darwin=true
;;
MINGW* )
MSYS* | MINGW* )
msys=true
;;
NONSTOP* )
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ class DownloadSchemaTest {
if: Boolean!
) on FIELD | FRAGMENT_SPREAD | INLINE_FRAGMENT
"Marks the field or enum value as deprecated"
"Marks the field, argument, input field or enum value as deprecated"
directive @deprecated(
"The reason for the deprecation"
reason: String! = "No longer supported"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ class IntrospectSchemaTest {
if: Boolean!
) on FIELD | FRAGMENT_SPREAD | INLINE_FRAGMENT
"Marks the field or enum value as deprecated"
"Marks the field, argument, input field or enum value as deprecated"
directive @deprecated(
"The reason for the deprecation"
reason: String = "No longer supported"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ buildscript {
}
}

val androidPluginVersion = System.getenv("ANDROID_PLUGIN_VERSION") ?: "4.2.2"
val androidPluginVersion = System.getenv("ANDROID_PLUGIN_VERSION") ?: "7.0.1"
val graphQLKotlinVersion = System.getenv("GRAPHQL_KOTLIN_VERSION") ?: "5.0.0-SNAPSHOT"
val kotlinVersion = System.getenv("KOTLIN_VERSION") ?: "1.5.21"
dependencies {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -256,9 +256,10 @@ class GraphQLGradlePluginIT : GraphQLGradlePluginAbstractIT() {
"Application",
mapOf(
"ktorClient" to useKtorClient,
"useJackson" to (serializer == GraphQLSerializer.JACKSON),
"defaultHeader" to mapOf("name" to defaultHeaderName, "value" to defaultHeaderValue),
"requestHeader" to mapOf("name" to customHeaderName, "value" to customHeaderValue),
"optionalInputWrapper" to (serializer == GraphQLSerializer.JACKSON)
"optionalInputWrapper" to true
)
)
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,14 @@ import com.example.generated.inputs.SimpleArgumentInput
import com.example.generated.junitquery.BasicObject2
import com.example.generated.junitquery.ScalarWrapper
import com.example.generated.junitquery.SecondInterfaceImplementation
{{#optionalInputWrapper}}import com.expediagroup.graphql.client.jackson.types.OptionalInput{{/optionalInputWrapper}}
{{#optionalInputWrapper}}
{{#useJackson}}
import com.expediagroup.graphql.client.jackson.types.OptionalInput
{{/useJackson}}
{{^useJackson}}
import com.expediagroup.graphql.client.serialization.types.OptionalInput
{{/useJackson}}
{{/optionalInputWrapper}}
{{#ktorClient}}
import com.expediagroup.graphql.client.ktor.GraphQLKtorClient
{{#defaultHeader}}
Expand Down

0 comments on commit 3ea1075

Please sign in to comment.