Commit 0eb291c
committed
feat: Update internal Kotlin version to 2.1.21-embedded
This commit updates the primary Kotlin version used by kscript for its own
build and for the Gradle scripts it generates (e.g., for --idea and --package)
from 1.7.21 to 2.1.21-embedded.
Changes include:
1. **`build.gradle.kts`:**
* The `kotlinVersion` property has been changed to "2.1.21-embedded".
* The `kotlin("jvm")` plugin version has been updated to "2.1.21-embedded".
* Dependencies on `org.jetbrains.kotlin:*` artifacts were already
parameterized to use `kotlinVersion`, so they will automatically adopt
the new version.
2. **`GradleTemplates.kt`:**
* Verified that generated Gradle scripts for `--idea` and `--package`
already use `KotlinVersion.CURRENT` to dynamically set their
Kotlin plugin and `kotlin-script-runtime` versions. This ensures
they will use the new "2.1.21-embedded" version.
* Updated `kotlin-stdlib` declarations within these templates to also
explicitly use the dynamic `kotlinVersion` for consistency and clarity.
No other hardcoded references to the old Kotlin version were found in kscript's
core operational code that required changes for this update. Runtime version
information displayed to you (e.g., via `kscript --version`) should
dynamically reflect this new version through `BuildConfig.KOTLIN_VERSION`.1 parent 48c185a commit 0eb291c
File tree
2 files changed
+4
-4
lines changed- src/main/kotlin/io/github/kscripting/kscript/code
2 files changed
+4
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| |||
0 commit comments