Skip to content

Commit 2d611de

Browse files
committed
Bump Kotlin version to 1.9.20.
1 parent 191850d commit 2d611de

File tree

5 files changed

+6
-38
lines changed

5 files changed

+6
-38
lines changed

Readme.md

Lines changed: 1 addition & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -110,36 +110,4 @@ plugins {
110110

111111
## Change Log
112112

113-
### 1.9.10-1.1.0
114-
115-
* Kotlin 1.9.10.
116-
117-
### 1.8.20-1.1.0
118-
119-
* Fix embedded trimIndent call expressions.
120-
121-
### 1.8.20-1.0.0
122-
123-
* Use new version style.
124-
* Upgrade Kotlin to 1.8.20.
125-
126-
### 1.8.0
127-
128-
* Upgrade Kotlin to 1.8.0.
129-
130-
### 1.7.10.3
131-
132-
* Fix: A newline was mistakenly inserted after an interpolated variable.
133-
* Feat: Reindent the whole value of the interpolated variable.
134-
135-
### 1.7.10.2
136-
137-
Compatible with Java 8.
138-
139-
### 1.7.10.1
140-
141-
Compatible with Kotlin 1.7.10.
142-
143-
### 1.6.10.1
144-
145-
Compatible with Kotlin 1.6.10.
113+
See [releases](ttps://github.com/bennyhuo/Kotlin-Trim-Indent/releases).

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 "1.9.10" apply false
2+
kotlin("jvm") version "1.9.20" apply false
33
id("org.jetbrains.dokka") version "1.7.10" apply false
44
id("com.github.gmazzo.buildconfig") version "2.1.0" apply false
55
id("com.vanniktech.maven.publish") version "0.22.0" apply false

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
kotlin.code.style=official
22

3-
VERSION_NAME=1.9.10-1.1.0
3+
VERSION_NAME=1.9.20-1.1.0-SNAPSHOT
44

55
GROUP=com.bennyhuo.kotlin
66

trimindent-compiler/build.gradle.kts

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

1818
testImplementation(kotlin("test-junit"))
1919
testImplementation("org.jetbrains.kotlin:kotlin-compiler-embeddable")
20-
testImplementation("com.bennyhuo.kotlin:kotlin-compile-testing-extensions:1.8.20-1.2.0")
20+
testImplementation("com.bennyhuo.kotlin:kotlin-compile-testing-extensions:1.9.20-1.3.0")
2121
}
2222

2323
val compileKotlin: KotlinCompile by tasks

trimindent-compiler/src/main/java/com/bennyhuo/kotlin/trimindent/compiler/IrUtils.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,12 @@ internal fun IrCall.isTrimIndent(): Boolean {
3434
return symbol.owner.name == Name.identifier("trimIndent")
3535
&& dispatchReceiver == null
3636
&& extensionReceiver?.type?.classFqName?.asString() == "kotlin.String"
37-
&& symbol.owner.getPackageFragment().fqName.asString() == "kotlin.text"
37+
&& symbol.owner.getPackageFragment().packageFqName.asString() == "kotlin.text"
3838
}
3939

4040
fun IrPluginContext.prependIndent(): IrFunction {
4141
return referenceFunctions(CallableId(FqName("kotlin.text"), Name.identifier("prependIndent")))
4242
.singleOrNull {
4343
it.owner.extensionReceiverParameter?.type?.classFqName?.asString() == "kotlin.String"
4444
}?.owner!!
45-
}
45+
}

0 commit comments

Comments
 (0)