Skip to content

Commit 08f0ea3

Browse files
committed
Bump to Kotlin 2.3.0
1 parent b65dd74 commit 08f0ea3

File tree

14 files changed

+25
-18
lines changed

14 files changed

+25
-18
lines changed

build-logic/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ repositories {
99
}
1010

1111
dependencies {
12-
implementation("org.jetbrains.kotlin:kotlin-gradle-plugin:2.1.20")
12+
implementation("org.jetbrains.kotlin:kotlin-gradle-plugin:2.3.0")
1313
implementation("io.github.gradle-nexus:publish-plugin:1.1.0")
1414
implementation("org.jetbrains.dokka:dokka-gradle-plugin:1.9.20")
1515

build-logic/src/main/kotlin/conventions-multiplatform.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import org.gradle.api.tasks.testing.logging.TestExceptionFormat
22
import org.gradle.api.tasks.testing.logging.TestLogEvent
3-
import org.jetbrains.kotlin.gradle.targets.js.dsl.ExperimentalWasmDsl
3+
import org.jetbrains.kotlin.gradle.ExperimentalWasmDsl
44
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
55

66
plugins {

build-logic/src/main/kotlin/conventions.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ repositories {
1818

1919
group = "io.exoquery"
2020
// Everything inherits the version from here
21-
version = "2.2.20-2.0.1.PL"
21+
version = "2.3.0-2.0.1.PL"
2222

2323
object Versions {
2424
val decomatVersion = "0.3.0"

build-logic/src/main/kotlin/publish-jvm.gradle.kts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,10 @@ repositories {
2121

2222
tasks {
2323
compileKotlin {
24-
kotlinOptions.suppressWarnings = true
25-
kotlinOptions.jvmTarget = "11"
24+
compilerOptions {
25+
suppressWarnings.set(true)
26+
jvmTarget.set(org.jetbrains.kotlin.gradle.dsl.JvmTarget.JVM_11)
27+
}
2628
}
2729

2830
compileJava {
@@ -31,7 +33,9 @@ tasks {
3133
}
3234

3335
compileTestKotlin {
34-
kotlinOptions.jvmTarget = "11"
36+
compilerOptions {
37+
jvmTarget.set(org.jetbrains.kotlin.gradle.dsl.JvmTarget.JVM_11)
38+
}
3539
}
3640

3741
compileTestJava {

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
plugins {
2-
kotlin("multiplatform") version "2.2.20" apply false
2+
kotlin("multiplatform") version "2.3.0" apply false
33
id("io.github.gradle-nexus.publish-plugin") version "1.1.0" apply false
44
}
55

terpal-plugin-gradle/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
plugins {
2-
kotlin("jvm") version "2.2.20"
2+
kotlin("jvm") version "2.3.0"
33

44
// No inclusion of `publish` here because this project is not published to maven directly
55
id("maven-publish")

terpal-plugin-kotlin/build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
22

33
plugins {
4-
kotlin("jvm") version "2.2.20"
4+
kotlin("jvm") version "2.3.0"
55
id("maven-publish")
66
id("conventions")
77
id("publish-jvm")
8-
kotlin("kapt") version "2.2.20"
8+
kotlin("kapt") version "2.3.0"
99
}
1010

1111
kotlin {

terpal-plugin-kotlin/src/main/kotlin/io/exoquery/terpal/plugin/Registrar.kt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,24 @@ import org.jetbrains.kotlin.cli.common.CLIConfigurationKeys
66
import org.jetbrains.kotlin.compiler.plugin.CompilerPluginRegistrar
77
import org.jetbrains.kotlin.config.CompilerConfiguration
88
import org.jetbrains.kotlin.compiler.plugin.ExperimentalCompilerApi
9+
import org.jetbrains.kotlin.config.CommonConfigurationKeys
910
import kotlin.io.path.Path
1011

1112
@AutoService(CompilerPluginRegistrar::class)
1213
@OptIn(ExperimentalCompilerApi::class)
13-
class Registrar: CompilerPluginRegistrar() {
14+
class Registrar : CompilerPluginRegistrar() {
1415
override val supportsK2: Boolean get() = true
1516

17+
override val pluginId: String = "io.exoquery.terpal-plugin"
18+
1619
override fun ExtensionStorage.registerExtensions(configuration: CompilerConfiguration) {
1720
IrGenerationExtension.registerExtension(
1821
GenerationExtension(
1922
// Need to initialize the config here because later the options info inside the config will be
2023
// erased. I am not sure why kotlin does this.
2124
Options(configuration),
2225
configuration,
23-
configuration.getNotNull(CLIConfigurationKeys.MESSAGE_COLLECTOR_KEY),
26+
configuration.getNotNull(CommonConfigurationKeys.MESSAGE_COLLECTOR_KEY),
2427
Path(configuration.getNotNull(PROJECT_DIR_KEY))
2528
)
2629
)

terpal-plugin-kotlin/src/main/kotlin/io/exoquery/terpal/plugin/transform/BuilderExtensions.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ context(bc: BuilderContext) fun createLambdaN(functionBody: IrExpression, params
118118

119119
val typeWith = params.map { it.type } + functionClosure.returnType
120120
val functionType =
121-
bc.pluginCtx.symbols.functionN(params.size)
121+
bc.pluginCtx.irBuiltIns.functionN(params.size)
122122
// Remember this is FunctionN<InputA, InputB, ... Output> so these input/output args need to be both specified here
123123
.typeWith(typeWith)
124124

terpal-plugin-kotlin/src/main/kotlin/io/exoquery/terpal/plugin/transform/TransformInterepolatorBatchingInvoke.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ class TransformInterepolatorBatchingInvoke(val ctx: BuilderContext) {
114114

115115
val lifter = makeLifter()
116116
val partsLifted =
117-
with (lifter) { parts.liftExprTyped(context.symbols.string.defaultType) }
117+
with (lifter) { parts.liftExprTyped(context.irBuiltIns.stringType) }
118118

119119

120120
// TODO what if it's an interpolator in an interpolator (i.e. Sql("...${Sql(...)}...") ) so need to call recursive transform

0 commit comments

Comments
 (0)