Skip to content

Commit ff88dad

Browse files
authored
chore: update dependencies to the latest (#1835)
1 parent 3903664 commit ff88dad

File tree

9 files changed

+51
-49
lines changed

9 files changed

+51
-49
lines changed

.github/workflows/graalvm-integration.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,13 @@ on:
1010

1111
jobs:
1212
graalvm-integration:
13-
timeout-minutes: 20
13+
timeout-minutes: 60
1414
runs-on: ubuntu-latest
1515
defaults:
1616
run:
1717
working-directory: integration/graalvm
1818
strategy:
19+
max-parallel: 1
1920
matrix:
2021
server: ['ktor-graalvm-server', 'maven-graalvm-server', 'spring-graalvm-server']
2122

@@ -29,15 +30,16 @@ jobs:
2930
- name: Setup GraalVM
3031
uses: graalvm/setup-graalvm@v1
3132
with:
32-
version: '22.3.1'
3333
java-version: '17'
34+
distribution: 'graalvm'
3435
components: 'native-image'
3536
native-image-job-reports: 'true'
3637

3738
- name: Set up Gradle cache
3839
uses: gradle/gradle-build-action@v2
3940

4041
- name: Build native image
42+
timeout-minutes: 20
4143
id: build_server
4244
run: |
4345
./gradlew :${server}:buildGraalVmNativeImage

examples/server/spring-server/src/main/kotlin/com/expediagroup/graphql/examples/server/spring/exceptions/CustomDataFetcherExceptionHandler.kt

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2021 Expedia, Inc
2+
* Copyright 2023 Expedia, Inc
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -28,11 +28,12 @@ import graphql.execution.DataFetcherExceptionHandlerResult
2828
import graphql.execution.ResultPath
2929
import graphql.language.SourceLocation
3030
import org.slf4j.LoggerFactory
31+
import java.util.concurrent.CompletableFuture
3132

3233
class CustomDataFetcherExceptionHandler : DataFetcherExceptionHandler {
3334
private val log = LoggerFactory.getLogger(CustomDataFetcherExceptionHandler::class.java)
3435

35-
override fun onException(handlerParameters: DataFetcherExceptionHandlerParameters): DataFetcherExceptionHandlerResult {
36+
override fun handleException(handlerParameters: DataFetcherExceptionHandlerParameters): CompletableFuture<DataFetcherExceptionHandlerResult> {
3637
val exception = handlerParameters.exception
3738
val sourceLocation = handlerParameters.sourceLocation
3839
val path = handlerParameters.path
@@ -49,8 +50,8 @@ class CustomDataFetcherExceptionHandler : DataFetcherExceptionHandler {
4950
}
5051

5152
log.warn(error.message, exception)
52-
53-
return DataFetcherExceptionHandlerResult.newResult().error(error).build()
53+
val exceptionResult = DataFetcherExceptionHandlerResult.newResult().error(error).build()
54+
return CompletableFuture.completedFuture(exceptionResult)
5455
}
5556
}
5657

gradle/libs.versions.toml

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,38 @@
11
[versions]
2-
android-plugin = "8.0.2"
3-
classgraph = "4.8.160"
2+
android-plugin = "8.1.1"
3+
classgraph = "4.8.162"
44
dataloader = "3.2.0"
5-
federation = "3.0.1"
6-
graphql-java = "20.2"
7-
graalvm = "0.9.21"
8-
jackson = "2.15.0"
5+
federation = "4.1.0"
6+
graphql-java = "21.1"
7+
graalvm = "0.9.25"
8+
jackson = "2.15.2"
99
# kotlin version has to match the compile-testing compiler version
1010
kotlin = "1.8.22"
1111
# TODO kotlin 1.9 upgrade -> kotlinx-benchaamrk 0.4.9+ uses kotlin 1.9
1212
kotlinx-benchmark = "0.4.8"
1313
kotlinx-coroutines = "1.7.3"
1414
# TODO kotlin 1.9 upgrade -> kotlinx-serialization 1.6.0+ uses kotlin 1.9
1515
kotlinx-serialization = "1.5.1"
16-
ktor = "2.3.3"
16+
ktor = "2.3.4"
1717
maven-plugin-annotation = "3.9.0"
18-
maven-plugin-api = "3.9.2"
18+
maven-plugin-api = "3.9.4"
1919
maven-project = "2.2.1"
2020
poet = "1.14.2"
2121
## reactor and spring versions should be the same as defined in spring-boot-dependencies
22-
reactor-core = "3.5.6"
22+
reactor-core = "3.5.9"
2323
reactor-extensions = "1.2.2"
2424
slf4j = "2.0.7"
25-
spring = "6.0.9"
26-
spring-boot = "3.1.0"
25+
spring = "6.0.11"
26+
spring-boot = "3.1.2"
2727

2828
# test dependencies
2929
compile-testing = "0.3.2"
30-
icu = "73.1"
31-
junit = "5.9.3"
32-
logback = "1.4.7"
30+
icu = "73.2"
31+
junit = "5.10.0"
32+
logback = "1.4.11"
3333
mockk = "1.13.7"
34-
rxjava = "3.1.6"
35-
wiremock = "2.35.0"
34+
rxjava = "3.1.7"
35+
wiremock = "3.0.1"
3636

3737
# plugins
3838
# TODO kotlin 1.9 upgrade -> detekt 1.23.1+ uses kotlin 1.9
@@ -44,7 +44,7 @@ ktlint-core = "0.45.2"
4444
ktlint-plugin = "10.3.0"
4545
maven-plugin-development = "0.4.2"
4646
nexus-publish-plugin = "1.3.0"
47-
plugin-publish = "1.2.0"
47+
plugin-publish = "1.2.1"
4848

4949
# ====================
5050
# LIBRARIES

integration/graalvm/common-graalvm-server/build.gradle.kts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
2-
31
@Suppress("DSL_SCOPE_VIOLATION") // TODO: remove once KTIJ-19369 / Gradle#22797 is fixed
42
plugins {
53
alias(libs.plugins.kotlin.jvm)
@@ -11,8 +9,10 @@ dependencies {
119
implementation("com.expediagroup", "graphql-kotlin-hooks-provider")
1210
}
1311

14-
tasks.withType<KotlinCompile> {
15-
kotlinOptions.jvmTarget = "17"
12+
tasks {
13+
kotlin {
14+
jvmToolchain(17)
15+
}
1616
}
1717

1818
// required for maven test
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
group = com.expediagroup.graalvm
22

3-
org.gradle.jvmargs=-Xmx4g -XX:MaxMetaspaceSize=1g
3+
org.gradle.jvmargs=-Xmx6g -XX:MaxMetaspaceSize=2g
44
org.gradle.caching=true
55
org.gradle.parallel=true
66

integration/graalvm/ktor-graalvm-server/build.gradle.kts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@ dependencies {
2020
testImplementation(libs.ktor.server.test.host)
2121
}
2222

23-
tasks.test {
24-
useJUnitPlatform()
25-
}
26-
27-
tasks.withType<KotlinCompile> {
28-
kotlinOptions.jvmTarget = "17"
23+
tasks {
24+
kotlin {
25+
jvmToolchain(17)
26+
}
27+
test {
28+
useJUnitPlatform()
29+
}
2930
}
30-
3131
application {
3232
mainClass.set("com.expediagroup.graalvm.ktor.ApplicationKt")
3333
}

integration/graalvm/maven-graalvm-server/build.gradle.kts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ dependencies {
1717
testImplementation(libs.ktor.server.test.host)
1818
}
1919

20-
tasks.withType<KotlinCompile> {
21-
kotlinOptions.jvmTarget = "17"
22-
}
23-
2420
tasks {
21+
kotlin {
22+
jvmToolchain(17)
23+
}
24+
2525
val kotlinJvmVersion: String by project
2626
/*
2727
integration test is run by invoking maven directly
@@ -45,7 +45,7 @@ tasks {
4545
val buildGraalVmNativeImage by register("buildGraalVmNativeImage") {
4646
dependsOn(gradle.includedBuild("graphql-kotlin").task(":resolveIntegrationTestDependencies"))
4747
dependsOn(":common-graalvm-server:publishToMavenLocal")
48-
timeout.set(Duration.ofSeconds(500))
48+
timeout.set(Duration.ofSeconds(1200))
4949
doLast {
5050
exec {
5151
environment(mavenEnvironmentVariables)

integration/graalvm/spring-graalvm-server/build.gradle.kts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import com.expediagroup.graphql.plugin.gradle.graphql
2-
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
32

43
@Suppress("DSL_SCOPE_VIOLATION") // TODO: remove once KTIJ-19369 / Gradle#22797 is fixed
54
plugins {
@@ -19,12 +18,13 @@ dependencies {
1918
testImplementation(libs.spring.boot.test)
2019
}
2120

22-
tasks.test {
23-
useJUnitPlatform()
24-
}
25-
26-
tasks.withType<KotlinCompile> {
27-
kotlinOptions.jvmTarget = "17"
21+
tasks {
22+
kotlin {
23+
jvmToolchain(17)
24+
}
25+
test {
26+
useJUnitPlatform()
27+
}
2828
}
2929

3030
graalvmNative {

plugins/graphql-kotlin-gradle-plugin/src/main/kotlin/com/expediagroup/graphql/plugin/gradle/tasks/GraphQLGraalVmMetadataTask.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@ abstract class GraphQLGraalVmMetadataTask : SourceTask() {
7474

7575
@TaskAction
7676
fun generateMetadata() {
77-
println("executing task")
7877
val packages = packages.get()
7978
if (packages.isEmpty()) {
8079
throw RuntimeException("attempt to generate SDL failed - missing required supportedPackages property")
@@ -91,7 +90,7 @@ abstract class GraphQLGraalVmMetadataTask : SourceTask() {
9190
logger.debug("worker classpath: \n${workerSpec.classpath.files.joinToString("\n")}")
9291
}
9392

94-
logger.debug("submitting work item to generate GraalVM for the schema included in packages = $packages")
93+
logger.debug("submitting work item to generate GraalVM for the schema included in packages = {}", packages)
9594
workQueue.submit(GenerateGraalVmMetadataAction::class.java) { parameters ->
9695
parameters.supportedPackages.set(packages)
9796
parameters.mainClassName.set(mainClassName.orNull)

0 commit comments

Comments
 (0)