Skip to content

Commit c1f56a8

Browse files
committed
Upgrade to KSP2
1 parent 3aaedad commit c1f56a8

File tree

5 files changed

+16
-6
lines changed

5 files changed

+16
-6
lines changed

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,16 @@
22

33
- Date format: YYYY-MM-dd
44

5+
## v1.4.3 / 2025-06-02
6+
7+
### All
8+
9+
* Update `Kotlin`'s version to `2.1.21`
10+
11+
### sqllin-processor
12+
13+
* Update `KSP`'s version to `2.1.21-2.0.1`
14+
515
## v1.4.2 / 2025-04-23
616

717
### All

gradle/libs.versions.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
[versions]
22

3-
kotlin = "2.1.20"
4-
agp = "8.9.2"
5-
ksp = "2.1.20-1.0.32"
3+
kotlin = "2.1.21"
4+
agp = "8.9.3"
5+
ksp = "2.1.21-2.0.1"
66
serialization = "1.8.1"
77
coroutines = "1.10.2"
88
androidx-annotation = "1.9.1"

sqllin-dsl/doc/getting-start-cn.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ plugins {
1414
id("com.google.devtools.ksp")
1515
}
1616

17-
val sqllinVersion = "1.4.2"
17+
val sqllinVersion = "1.4.3"
1818

1919
kotlin {
2020
// ......

sqllin-dsl/doc/getting-start.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ plugins {
1616
id("com.google.devtools.ksp")
1717
}
1818

19-
val sqllinVersion = "1.4.2"
19+
val sqllinVersion = "1.4.3"
2020

2121
kotlin {
2222
// ......

sqllin-processor/src/main/kotlin/com/ctrip/sqllin/processor/ClauseProcessor.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ class ClauseProcessor(
5858
val objectName = "${className}Table"
5959
val tableName = classDeclaration.annotations.find {
6060
it.annotationType.resolve().declaration.qualifiedName?.asString() == ANNOTATION_DATABASE_ROW_NAME
61-
}?.arguments?.first()?.value?.takeIf { (it as? String)?.isNotBlank() == true } ?: className
61+
}?.arguments?.firstOrNull()?.value?.takeIf { (it as? String)?.isNotBlank() == true } ?: className
6262

6363
val outputStream = environment.codeGenerator.createNewFile(
6464
dependencies = classDeclaration.containingFile?.let { Dependencies(true, it) } ?: Dependencies(true),

0 commit comments

Comments
 (0)