Skip to content

Commit 2109417

Browse files
smyrickShane Myrick
andauthored
Upgrade dependencies and run ktlint format (#766)
* Upgrade dependecies and run ktlint format * Use same default junit version for plugin * Use published version of ktor-client-cio Co-authored-by: Shane Myrick <[email protected]>
1 parent 7763014 commit 2109417

File tree

79 files changed

+2693
-2447
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

79 files changed

+2693
-2447
lines changed

examples/federation/base-app/src/main/kotlin/com/expediagroup/graphql/examples/hooks/CustomFederationSchemaGeneratorHooks.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@ internal val graphqlUUIDType = GraphQLScalarType.newScalar()
4747

4848
private object UUIDCoercing : Coercing<UUID, String> {
4949
override fun parseValue(input: Any?): UUID = UUID.fromString(
50-
serialize(
51-
input
52-
)
50+
serialize(
51+
input
52+
)
5353
)
5454

5555
override fun parseLiteral(input: Any?): UUID? {
208 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-6.0.1-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-6.3-bin.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists

examples/gradlew

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ esac
8282

8383
CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
8484

85+
8586
# Determine the Java command to use to start the JVM.
8687
if [ -n "$JAVA_HOME" ] ; then
8788
if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
@@ -129,6 +130,7 @@ fi
129130
if [ "$cygwin" = "true" -o "$msys" = "true" ] ; then
130131
APP_HOME=`cygpath --path --mixed "$APP_HOME"`
131132
CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
133+
132134
JAVACMD=`cygpath --unix "$JAVACMD"`
133135

134136
# We build the pattern for arguments to be converted via cygpath

examples/gradlew.bat

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ if "%DIRNAME%" == "" set DIRNAME=.
2929
set APP_BASE_NAME=%~n0
3030
set APP_HOME=%DIRNAME%
3131

32+
@rem Resolve any "." and ".." in APP_HOME to make it shorter.
33+
for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
34+
3235
@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
3336
set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
3437

@@ -81,6 +84,7 @@ set CMD_LINE_ARGS=%*
8184

8285
set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
8386

87+
8488
@rem Execute Gradle
8589
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
8690

examples/spark/src/main/kotlin/com/expediagroup/graphql/examples/spark/Application.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ class Application {
6767

6868
options("/graphql") { _, _ -> "ok" }
6969

70-
before("/graphql") { request, response ->
70+
before("/graphql") { _, response ->
7171
response.header("Access-Control-Allow-Origin", "*")
7272
response.header("Access-Control-Allow-Methods", "GET,POST,OPTIONS")
7373
}

examples/spring/build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ val springBootVersion: String by project
99
val reactorVersion: String by project
1010

1111
dependencies {
12+
implementation("javax.validation", "validation-api", "2.0.1.Final")
1213
testImplementation("org.springframework.boot:spring-boot-starter-test:$springBootVersion")
1314
testImplementation("io.projectreactor:reactor-test:$reactorVersion")
1415
}

examples/spring/src/main/kotlin/com/expediagroup/graphql/examples/context/MyGraphQLContextFactory.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,6 @@ class MyGraphQLContextFactory : GraphQLContextFactory<MyGraphQLContext> {
1515
myCustomValue = request.headers.getFirst("MyHeader") ?: "defaultContext",
1616
request = request,
1717
response = response,
18-
subscriptionValue = null)
18+
subscriptionValue = null
19+
)
1920
}

examples/spring/src/main/kotlin/com/expediagroup/graphql/examples/directives/StringEval.kt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,9 @@ import com.expediagroup.graphql.annotations.GraphQLDirective
2020
import graphql.introspection.Introspection.DirectiveLocation
2121

2222
@GraphQLDirective(
23-
description = "This validates string input",
24-
locations = [DirectiveLocation.FIELD, DirectiveLocation.FIELD_DEFINITION, DirectiveLocation.ARGUMENT_DEFINITION])
23+
description = "This validates string input",
24+
locations = [DirectiveLocation.FIELD, DirectiveLocation.FIELD_DEFINITION, DirectiveLocation.ARGUMENT_DEFINITION]
25+
)
2526
annotation class StringEval(
2627
val default: String = "",
2728
val lowerCase: Boolean = false

examples/spring/src/main/kotlin/com/expediagroup/graphql/examples/directives/StringEvalSchemaDirectiveWiring.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ class StringEvalSchemaDirectiveWiring : KotlinSchemaDirectiveWiring {
4444
}
4545
}
4646
val newEnv = newDataFetchingEnvironment(dataEnv)
47-
.arguments(newArguments)
48-
.build()
47+
.arguments(newArguments)
48+
.build()
4949
originalDataFetcher.get(newEnv)
5050
}
5151
environment.setDataFetcher(defaultValueFetcher)

0 commit comments

Comments
 (0)