Skip to content

Commit 7fe956d

Browse files
[build] update to kotlin 1.7.21 (ExpediaGroup#1627)
* chore: update kotlin to 1.7.21 * feat: use a kotlin-compile-testing fork compatible with kotlin 1.7.22 * chore: comments on kotlin-compile-testing * chore: use 1.7.21 as 1.7.22 plugin is not available * chore: update reactor extensions version
1 parent 174569c commit 7fe956d

File tree

13 files changed

+40
-36
lines changed

13 files changed

+40
-36
lines changed

gradle.properties

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ systemProp.org.gradle.internal.publish.checksums.insecure=true
1414
org.gradle.jvmargs=-Xmx2g -XX:+HeapDumpOnOutOfMemoryError
1515

1616
# dependencies
17-
kotlinVersion = 1.7.10
17+
kotlinVersion = 1.7.21
1818
kotlinJvmVersion = 1.8
1919
kotlinxCoroutinesVersion = 1.6.4
20-
kotlinxSerializationVersion = 1.4.0
20+
kotlinxSerializationVersion = 1.4.1
2121

2222
androidPluginVersion = 7.1.2
2323
classGraphVersion = 4.8.149
@@ -27,15 +27,19 @@ graphQLJavaDataLoaderVersion = 3.2.0
2727
jacksonVersion = 2.13.3
2828
kotlinPoetVersion = 1.12.0
2929
ktorVersion = 2.0.3
30-
reactorVersion = 3.4.21
31-
reactorExtensionsVersion = 1.1.7
30+
# reactorVersion should be the same reactor-core version pulled from spring-boot-starter-webflux
31+
reactorVersion = 3.4.26
32+
reactorExtensionsVersion = 1.1.9
3233
slf4jVersion = 1.7.36
33-
springBootVersion = 2.7.5
34-
springVersion = 5.3.22
34+
springBootVersion = 2.7.7
35+
springVersion = 5.3.24
3536

3637
# test dependency versions
38+
3739
# kotlin-compile-testing has to be using the same kotlin version as the kotlinx-serialization compiler
38-
compileTestingVersion = 1.4.9
40+
# https://github.com/tschuchortdev/kotlin-compile-testing the latest version targets kotlin 1.7.10 which blocks updates to newer
41+
# versions of kotlin, switching to a fork https://github.com/ZacSweers/kotlin-compile-testing
42+
compileTestingVersion = 0.1.0
3943
icuVersion=71.1
4044
junitVersion = 5.8.2
4145
mockkVersion = 1.12.5

plugins/client/graphql-kotlin-client-generator/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ dependencies {
3030
testImplementation(project(path = ":graphql-kotlin-client-jackson"))
3131
testImplementation(project(path = ":graphql-kotlin-client-serialization"))
3232
testImplementation("com.github.tomakehurst:wiremock-jre8:$wireMockVersion")
33-
testImplementation("com.github.tschuchortdev:kotlin-compile-testing:$compileTestingVersion")
33+
testImplementation("dev.zacsweers.kctfork:core:$compileTestingVersion")
3434
testImplementation("com.ibm.icu:icu4j:$icuVersion")
3535
testImplementation("org.junit.jupiter:junit-jupiter-params:$junitVersion")
3636
testImplementation("org.jetbrains.kotlin:kotlin-serialization:$kotlinVersion")

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ android {
1717
}
1818

1919
val graphQLKotlinVersion = System.getenv("GRAPHQL_KOTLIN_VERSION") ?: "7.0.0-SNAPSHOT"
20-
val kotlinVersion = System.getenv("KOTLIN_VERSION") ?: "1.7.10"
20+
val kotlinVersion = System.getenv("KOTLIN_VERSION") ?: "1.7.21"
2121
dependencies {
2222
implementation("com.expediagroup:graphql-kotlin-ktor-client:$graphQLKotlinVersion")
2323
implementation("org.jetbrains.kotlin:kotlin-stdlib:$kotlinVersion")

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
@@ -11,7 +11,7 @@ buildscript {
1111

1212
val androidPluginVersion = System.getenv("ANDROID_PLUGIN_VERSION") ?: "7.0.1"
1313
val graphQLKotlinVersion = System.getenv("GRAPHQL_KOTLIN_VERSION") ?: "7.0.0-SNAPSHOT"
14-
val kotlinVersion = System.getenv("KOTLIN_VERSION") ?: "1.7.10"
14+
val kotlinVersion = System.getenv("KOTLIN_VERSION") ?: "1.7.21"
1515
dependencies {
1616
classpath("com.android.tools.build:gradle:$androidPluginVersion")
1717
classpath("com.expediagroup:graphql-kotlin-gradle-plugin:$graphQLKotlinVersion")

plugins/graphql-kotlin-gradle-plugin/src/integration/client-generator/custom_scalars_jackson/build.gradle.kts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ buildscript {
1919
}
2020

2121
plugins {
22-
id("org.springframework.boot") version "2.7.5"
23-
kotlin("jvm") version "1.7.10"
24-
kotlin("plugin.spring") version "1.7.10"
22+
id("org.springframework.boot") version "2.7.7"
23+
kotlin("jvm") version "1.7.21"
24+
kotlin("plugin.spring") version "1.7.21"
2525
}
2626

2727
apply(plugin = "com.expediagroup.graphql")
@@ -41,8 +41,8 @@ repositories {
4141
val graphQLKotlinVersion = System.getenv("GRAPHQL_KOTLIN_VERSION") ?: "7.0.0-SNAPSHOT"
4242
val icuVersion = System.getenv("ICU_VERSION") ?: "70.1"
4343
val junitVersion = System.getenv("JUNIT_VERSION") ?: "5.8.2"
44-
val kotlinVersion = System.getenv("KOTLIN_VERSION") ?: "1.7.10"
45-
val springBootVersion = System.getenv("SPRINGBOOT_VERSION") ?: "2.7.5"
44+
val kotlinVersion = System.getenv("KOTLIN_VERSION") ?: "1.7.21"
45+
val springBootVersion = System.getenv("SPRINGBOOT_VERSION") ?: "2.7.7"
4646
dependencies {
4747
implementation("com.expediagroup:graphql-kotlin-hooks-provider:$graphQLKotlinVersion")
4848
implementation("com.expediagroup:graphql-kotlin-spring-client:$graphQLKotlinVersion")

plugins/graphql-kotlin-gradle-plugin/src/integration/client-generator/custom_scalars_kotlinx/build.gradle.kts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ buildscript {
1919
}
2020

2121
plugins {
22-
kotlin("jvm") version "1.7.10"
23-
kotlin("plugin.serialization") version "1.7.10"
22+
kotlin("jvm") version "1.7.21"
23+
kotlin("plugin.serialization") version "1.7.21"
2424
}
2525

2626
apply(plugin = "com.expediagroup.graphql")
@@ -40,7 +40,7 @@ repositories {
4040
val graphQLKotlinVersion = System.getenv("GRAPHQL_KOTLIN_VERSION") ?: "7.0.0-SNAPSHOT"
4141
val icuVersion = System.getenv("ICU_VERSION") ?: "71.1"
4242
val junitVersion = System.getenv("JUNIT_VERSION") ?: "5.8.2"
43-
val kotlinVersion = System.getenv("KOTLIN_VERSION") ?: "1.7.10"
43+
val kotlinVersion = System.getenv("KOTLIN_VERSION") ?: "1.7.21"
4444
val ktorVersion = System.getenv("KTOR_VERSION") ?: "2.0.0"
4545
val logbackVersion = System.getenv("LOGBACK_VERSION") ?: "1.2.1"
4646
dependencies {

plugins/graphql-kotlin-gradle-plugin/src/integration/client-generator/jacoco/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ buildscript {
1616
}
1717

1818
plugins {
19-
kotlin("jvm") version "1.7.10"
19+
kotlin("jvm") version "1.7.21"
2020
jacoco
2121
}
2222

plugins/graphql-kotlin-gradle-plugin/src/integration/client-generator/polymorphic_types_jackson/build.gradle.kts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ buildscript {
1818
}
1919

2020
plugins {
21-
id("org.springframework.boot") version "2.7.5"
22-
kotlin("jvm") version "1.7.10"
23-
kotlin("plugin.spring") version "1.7.10"
21+
id("org.springframework.boot") version "2.7.7"
22+
kotlin("jvm") version "1.7.21"
23+
kotlin("plugin.spring") version "1.7.21"
2424
}
2525

2626
apply(plugin = "com.expediagroup.graphql")
@@ -39,8 +39,8 @@ repositories {
3939

4040
val graphQLKotlinVersion = System.getenv("GRAPHQL_KOTLIN_VERSION") ?: "7.0.0-SNAPSHOT"
4141
val junitVersion = System.getenv("JUNIT_VERSION") ?: "5.8.2"
42-
val kotlinVersion = System.getenv("KOTLIN_VERSION") ?: "1.7.10"
43-
val springBootVersion = System.getenv("SPRINGBOOT_VERSION") ?: "2.7.5"
42+
val kotlinVersion = System.getenv("KOTLIN_VERSION") ?: "1.7.21"
43+
val springBootVersion = System.getenv("SPRINGBOOT_VERSION") ?: "2.7.7"
4444
dependencies {
4545
implementation("com.expediagroup:graphql-kotlin-spring-client:$graphQLKotlinVersion")
4646
implementation("com.expediagroup:graphql-kotlin-spring-server:$graphQLKotlinVersion")

plugins/graphql-kotlin-gradle-plugin/src/integration/client-generator/polymorphic_types_kotlinx/build.gradle.kts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ buildscript {
1818
}
1919

2020
plugins {
21-
kotlin("jvm") version "1.7.10"
22-
kotlin("plugin.serialization") version "1.7.10"
21+
kotlin("jvm") version "1.7.21"
22+
kotlin("plugin.serialization") version "1.7.21"
2323
}
2424

2525
apply(plugin = "com.expediagroup.graphql")
@@ -38,7 +38,7 @@ repositories {
3838

3939
val graphQLKotlinVersion = System.getenv("GRAPHQL_KOTLIN_VERSION") ?: "7.0.0-SNAPSHOT"
4040
val junitVersion = System.getenv("JUNIT_VERSION") ?: "5.8.2"
41-
val kotlinVersion = System.getenv("KOTLIN_VERSION") ?: "1.7.10"
41+
val kotlinVersion = System.getenv("KOTLIN_VERSION") ?: "1.7.21"
4242
val ktorVersion = System.getenv("KTOR_VERSION") ?: "2.0.0"
4343
val logbackVersion = System.getenv("LOGBACK_VERSION") ?: "1.2.1"
4444
dependencies {

plugins/graphql-kotlin-gradle-plugin/src/integration/client-generator/skip_include/build.gradle.kts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ buildscript {
1818
}
1919

2020
plugins {
21-
id("org.springframework.boot") version "2.7.5"
22-
kotlin("jvm") version "1.7.10"
23-
kotlin("plugin.spring") version "1.7.10"
21+
id("org.springframework.boot") version "2.7.7"
22+
kotlin("jvm") version "1.7.21"
23+
kotlin("plugin.spring") version "1.7.21"
2424
}
2525

2626
apply(plugin = "com.expediagroup.graphql")
@@ -40,8 +40,8 @@ repositories {
4040
val graphQLKotlinVersion = System.getenv("GRAPHQL_KOTLIN_VERSION") ?: "7.0.0-SNAPSHOT"
4141
val icuVersion = System.getenv("ICU_VERSION") ?: "70.1"
4242
val junitVersion = System.getenv("JUNIT_VERSION") ?: "5.8.2"
43-
val kotlinVersion = System.getenv("KOTLIN_VERSION") ?: "1.7.10"
44-
val springBootVersion = System.getenv("SPRINGBOOT_VERSION") ?: "2.7.5"
43+
val kotlinVersion = System.getenv("KOTLIN_VERSION") ?: "1.7.21"
44+
val springBootVersion = System.getenv("SPRINGBOOT_VERSION") ?: "2.7.7"
4545
dependencies {
4646
implementation("com.expediagroup:graphql-kotlin-hooks-provider:$graphQLKotlinVersion")
4747
implementation("com.expediagroup:graphql-kotlin-spring-client:$graphQLKotlinVersion")

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class GraphQLGenerateClientIT {
3434
sourceDirectory.copyRecursively(testProjectDirectory)
3535

3636
val junitVersion = System.getProperty("junitVersion") ?: "5.8.2"
37-
val kotlinVersion = System.getProperty("kotlinVersion") ?: "1.7.10"
37+
val kotlinVersion = System.getProperty("kotlinVersion") ?: "1.7.21"
3838
val mockkVersion = System.getProperty("mockkVersion") ?: "1.12.5"
3939
val buildResult = GradleRunner.create()
4040
.withProjectDir(testProjectDirectory)

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ abstract class GraphQLGradlePluginAbstractIT {
3535

3636
// unsure if there is a better way - correct values are set from Gradle build
3737
// when running directly from IDE you will need to manually update those to correct values
38-
private val kotlinVersion = System.getProperty("kotlinVersion") ?: "1.7.10"
38+
private val kotlinVersion = System.getProperty("kotlinVersion") ?: "1.7.21"
3939
private val junitVersion = System.getProperty("junitVersion") ?: "5.8.2"
40-
private val springBootVersion = System.getProperty("springBootVersion") ?: "2.7.5"
40+
private val springBootVersion = System.getProperty("springBootVersion") ?: "2.7.7"
4141

4242
val testSchema = loadResource("mocks/schema.graphql")
4343
val introspectionResult = loadResource("mocks/IntrospectionResult.json")

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class GraphQLGradlePluginAndroidIT {
3838
sourceDirectory.copyRecursively(testProjectDirectory)
3939

4040
val androidPluginVersion = System.getProperty("androidPluginVersion") ?: "7.0.1"
41-
val kotlinVersion = System.getProperty("kotlinVersion") ?: "1.7.10"
41+
val kotlinVersion = System.getProperty("kotlinVersion") ?: "1.7.21"
4242
val buildResult = GradleRunner.create()
4343
.withProjectDir(testProjectDirectory)
4444
.withPluginClasspath()

0 commit comments

Comments
 (0)