Skip to content

[build] update to kotlin 1.7.21 #1627

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Jan 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 11 additions & 7 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ systemProp.org.gradle.internal.publish.checksums.insecure=true
org.gradle.jvmargs=-Xmx2g -XX:+HeapDumpOnOutOfMemoryError

# dependencies
kotlinVersion = 1.7.10
kotlinVersion = 1.7.21
kotlinJvmVersion = 1.8
kotlinxCoroutinesVersion = 1.6.4
kotlinxSerializationVersion = 1.4.0
kotlinxSerializationVersion = 1.4.1

androidPluginVersion = 7.1.2
classGraphVersion = 4.8.149
Expand All @@ -27,15 +27,19 @@ graphQLJavaDataLoaderVersion = 3.2.0
jacksonVersion = 2.13.3
kotlinPoetVersion = 1.12.0
ktorVersion = 2.0.3
reactorVersion = 3.4.21
reactorExtensionsVersion = 1.1.7
# reactorVersion should be the same reactor-core version pulled from spring-boot-starter-webflux
reactorVersion = 3.4.26
reactorExtensionsVersion = 1.1.9
slf4jVersion = 1.7.36
springBootVersion = 2.7.5
springVersion = 5.3.22
springBootVersion = 2.7.7
springVersion = 5.3.24

# test dependency versions

# kotlin-compile-testing has to be using the same kotlin version as the kotlinx-serialization compiler
compileTestingVersion = 1.4.9
# https://github.com/tschuchortdev/kotlin-compile-testing the latest version targets kotlin 1.7.10 which blocks updates to newer
# versions of kotlin, switching to a fork https://github.com/ZacSweers/kotlin-compile-testing
compileTestingVersion = 0.1.0
icuVersion=71.1
junitVersion = 5.8.2
mockkVersion = 1.12.5
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ dependencies {
testImplementation(project(path = ":graphql-kotlin-client-jackson"))
testImplementation(project(path = ":graphql-kotlin-client-serialization"))
testImplementation("com.github.tomakehurst:wiremock-jre8:$wireMockVersion")
testImplementation("com.github.tschuchortdev:kotlin-compile-testing:$compileTestingVersion")
testImplementation("dev.zacsweers.kctfork:core:$compileTestingVersion")
testImplementation("com.ibm.icu:icu4j:$icuVersion")
testImplementation("org.junit.jupiter:junit-jupiter-params:$junitVersion")
testImplementation("org.jetbrains.kotlin:kotlin-serialization:$kotlinVersion")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ android {
}

val graphQLKotlinVersion = System.getenv("GRAPHQL_KOTLIN_VERSION") ?: "7.0.0-SNAPSHOT"
val kotlinVersion = System.getenv("KOTLIN_VERSION") ?: "1.7.10"
val kotlinVersion = System.getenv("KOTLIN_VERSION") ?: "1.7.21"
dependencies {
implementation("com.expediagroup:graphql-kotlin-ktor-client:$graphQLKotlinVersion")
implementation("org.jetbrains.kotlin:kotlin-stdlib:$kotlinVersion")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ buildscript {

val androidPluginVersion = System.getenv("ANDROID_PLUGIN_VERSION") ?: "7.0.1"
val graphQLKotlinVersion = System.getenv("GRAPHQL_KOTLIN_VERSION") ?: "7.0.0-SNAPSHOT"
val kotlinVersion = System.getenv("KOTLIN_VERSION") ?: "1.7.10"
val kotlinVersion = System.getenv("KOTLIN_VERSION") ?: "1.7.21"
dependencies {
classpath("com.android.tools.build:gradle:$androidPluginVersion")
classpath("com.expediagroup:graphql-kotlin-gradle-plugin:$graphQLKotlinVersion")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ buildscript {
}

plugins {
id("org.springframework.boot") version "2.7.5"
kotlin("jvm") version "1.7.10"
kotlin("plugin.spring") version "1.7.10"
id("org.springframework.boot") version "2.7.7"
kotlin("jvm") version "1.7.21"
kotlin("plugin.spring") version "1.7.21"
}

apply(plugin = "com.expediagroup.graphql")
Expand All @@ -41,8 +41,8 @@ repositories {
val graphQLKotlinVersion = System.getenv("GRAPHQL_KOTLIN_VERSION") ?: "7.0.0-SNAPSHOT"
val icuVersion = System.getenv("ICU_VERSION") ?: "70.1"
val junitVersion = System.getenv("JUNIT_VERSION") ?: "5.8.2"
val kotlinVersion = System.getenv("KOTLIN_VERSION") ?: "1.7.10"
val springBootVersion = System.getenv("SPRINGBOOT_VERSION") ?: "2.7.5"
val kotlinVersion = System.getenv("KOTLIN_VERSION") ?: "1.7.21"
val springBootVersion = System.getenv("SPRINGBOOT_VERSION") ?: "2.7.7"
dependencies {
implementation("com.expediagroup:graphql-kotlin-hooks-provider:$graphQLKotlinVersion")
implementation("com.expediagroup:graphql-kotlin-spring-client:$graphQLKotlinVersion")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ buildscript {
}

plugins {
kotlin("jvm") version "1.7.10"
kotlin("plugin.serialization") version "1.7.10"
kotlin("jvm") version "1.7.21"
kotlin("plugin.serialization") version "1.7.21"
}

apply(plugin = "com.expediagroup.graphql")
Expand All @@ -40,7 +40,7 @@ repositories {
val graphQLKotlinVersion = System.getenv("GRAPHQL_KOTLIN_VERSION") ?: "7.0.0-SNAPSHOT"
val icuVersion = System.getenv("ICU_VERSION") ?: "71.1"
val junitVersion = System.getenv("JUNIT_VERSION") ?: "5.8.2"
val kotlinVersion = System.getenv("KOTLIN_VERSION") ?: "1.7.10"
val kotlinVersion = System.getenv("KOTLIN_VERSION") ?: "1.7.21"
val ktorVersion = System.getenv("KTOR_VERSION") ?: "2.0.0"
val logbackVersion = System.getenv("LOGBACK_VERSION") ?: "1.2.1"
dependencies {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ buildscript {
}

plugins {
kotlin("jvm") version "1.7.10"
kotlin("jvm") version "1.7.21"
jacoco
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ buildscript {
}

plugins {
id("org.springframework.boot") version "2.7.5"
kotlin("jvm") version "1.7.10"
kotlin("plugin.spring") version "1.7.10"
id("org.springframework.boot") version "2.7.7"
kotlin("jvm") version "1.7.21"
kotlin("plugin.spring") version "1.7.21"
}

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

val graphQLKotlinVersion = System.getenv("GRAPHQL_KOTLIN_VERSION") ?: "7.0.0-SNAPSHOT"
val junitVersion = System.getenv("JUNIT_VERSION") ?: "5.8.2"
val kotlinVersion = System.getenv("KOTLIN_VERSION") ?: "1.7.10"
val springBootVersion = System.getenv("SPRINGBOOT_VERSION") ?: "2.7.5"
val kotlinVersion = System.getenv("KOTLIN_VERSION") ?: "1.7.21"
val springBootVersion = System.getenv("SPRINGBOOT_VERSION") ?: "2.7.7"
dependencies {
implementation("com.expediagroup:graphql-kotlin-spring-client:$graphQLKotlinVersion")
implementation("com.expediagroup:graphql-kotlin-spring-server:$graphQLKotlinVersion")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ buildscript {
}

plugins {
kotlin("jvm") version "1.7.10"
kotlin("plugin.serialization") version "1.7.10"
kotlin("jvm") version "1.7.21"
kotlin("plugin.serialization") version "1.7.21"
}

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

val graphQLKotlinVersion = System.getenv("GRAPHQL_KOTLIN_VERSION") ?: "7.0.0-SNAPSHOT"
val junitVersion = System.getenv("JUNIT_VERSION") ?: "5.8.2"
val kotlinVersion = System.getenv("KOTLIN_VERSION") ?: "1.7.10"
val kotlinVersion = System.getenv("KOTLIN_VERSION") ?: "1.7.21"
val ktorVersion = System.getenv("KTOR_VERSION") ?: "2.0.0"
val logbackVersion = System.getenv("LOGBACK_VERSION") ?: "1.2.1"
dependencies {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ buildscript {
}

plugins {
id("org.springframework.boot") version "2.7.5"
kotlin("jvm") version "1.7.10"
kotlin("plugin.spring") version "1.7.10"
id("org.springframework.boot") version "2.7.7"
kotlin("jvm") version "1.7.21"
kotlin("plugin.spring") version "1.7.21"
}

apply(plugin = "com.expediagroup.graphql")
Expand All @@ -40,8 +40,8 @@ repositories {
val graphQLKotlinVersion = System.getenv("GRAPHQL_KOTLIN_VERSION") ?: "7.0.0-SNAPSHOT"
val icuVersion = System.getenv("ICU_VERSION") ?: "70.1"
val junitVersion = System.getenv("JUNIT_VERSION") ?: "5.8.2"
val kotlinVersion = System.getenv("KOTLIN_VERSION") ?: "1.7.10"
val springBootVersion = System.getenv("SPRINGBOOT_VERSION") ?: "2.7.5"
val kotlinVersion = System.getenv("KOTLIN_VERSION") ?: "1.7.21"
val springBootVersion = System.getenv("SPRINGBOOT_VERSION") ?: "2.7.7"
dependencies {
implementation("com.expediagroup:graphql-kotlin-hooks-provider:$graphQLKotlinVersion")
implementation("com.expediagroup:graphql-kotlin-spring-client:$graphQLKotlinVersion")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class GraphQLGenerateClientIT {
sourceDirectory.copyRecursively(testProjectDirectory)

val junitVersion = System.getProperty("junitVersion") ?: "5.8.2"
val kotlinVersion = System.getProperty("kotlinVersion") ?: "1.7.10"
val kotlinVersion = System.getProperty("kotlinVersion") ?: "1.7.21"
val mockkVersion = System.getProperty("mockkVersion") ?: "1.12.5"
val buildResult = GradleRunner.create()
.withProjectDir(testProjectDirectory)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ abstract class GraphQLGradlePluginAbstractIT {

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

val testSchema = loadResource("mocks/schema.graphql")
val introspectionResult = loadResource("mocks/IntrospectionResult.json")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class GraphQLGradlePluginAndroidIT {
sourceDirectory.copyRecursively(testProjectDirectory)

val androidPluginVersion = System.getProperty("androidPluginVersion") ?: "7.0.1"
val kotlinVersion = System.getProperty("kotlinVersion") ?: "1.7.10"
val kotlinVersion = System.getProperty("kotlinVersion") ?: "1.7.21"
val buildResult = GradleRunner.create()
.withProjectDir(testProjectDirectory)
.withPluginClasspath()
Expand Down