Skip to content

Commit

Permalink
Update Kotlin to 1.9.0 (#422)
Browse files Browse the repository at this point in the history
  • Loading branch information
ajalt committed Jul 10, 2023
1 parent f3f5d08 commit 9eb6683
Show file tree
Hide file tree
Showing 11 changed files with 31 additions and 7 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
- Added `MordantHelpFormatter.renderAttachedOptionValue` that you can override to change how option values are shown, e.g. if you want option to show as `--option <value>` instead of `--option=<value>`. ([#416](https://github.com/ajalt/clikt/issues/416))
- Added `option().optionalValueLazy{}`, which work like `optionalValue()` but the default value is computed lazily. ([#381](https://github.com/ajalt/clikt/issues/381))

### Changed
- Updated Kotlin to 1.9.0

## 4.0.0
### Added
- Added `Context.errorEncountered` which is true if parsing has continued after an error was encountered.
Expand Down
2 changes: 1 addition & 1 deletion clikt/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ plugins {

kotlin {
jvm()
js(IR) {
js {
nodejs()
browser()
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
@file:OptIn(ExperimentalForeignApi::class)

package com.github.ajalt.clikt.mpp

import kotlinx.cinterop.ExperimentalForeignApi
import kotlinx.cinterop.toKString
import platform.posix.getenv

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
@file:OptIn(ExperimentalForeignApi::class)

package com.github.ajalt.clikt.output

import kotlinx.cinterop.ExperimentalForeignApi
import kotlinx.cinterop.MemScope
import kotlinx.cinterop.alloc
import kotlinx.cinterop.ptr
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
@file:OptIn(ExperimentalForeignApi::class)

package com.github.ajalt.clikt.mpp

import kotlinx.cinterop.ExperimentalForeignApi
import kotlinx.cinterop.allocArray
import kotlinx.cinterop.memScoped
import kotlinx.cinterop.toKStringFromUtf16
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
@file:OptIn(ExperimentalForeignApi::class)

package com.github.ajalt.clikt.output

import kotlinx.cinterop.ExperimentalForeignApi
import kotlinx.cinterop.MemScope
import kotlinx.cinterop.alloc
import kotlinx.cinterop.ptr
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
@file:OptIn(ExperimentalForeignApi::class)

package com.github.ajalt.clikt.mpp

import kotlinx.cinterop.ExperimentalForeignApi
import kotlinx.cinterop.toKString
import platform.posix.getenv

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
@file:OptIn(ExperimentalForeignApi::class)

package com.github.ajalt.clikt.output

import kotlinx.cinterop.ExperimentalForeignApi
import kotlinx.cinterop.MemScope
import kotlinx.cinterop.alloc
import kotlinx.cinterop.ptr
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
@file:OptIn(ExperimentalForeignApi::class, ExperimentalNativeApi::class)

package com.github.ajalt.clikt.mpp

import kotlinx.cinterop.ByteVar
import kotlinx.cinterop.allocArray
import kotlinx.cinterop.memScoped
import kotlinx.cinterop.toKString
import kotlinx.cinterop.*
import platform.posix.fclose
import platform.posix.fgets
import platform.posix.fopen
import kotlin.experimental.ExperimentalNativeApi
import kotlin.system.exitProcess

private val LETTER_OR_DIGIT_RE = Regex("""[a-zA-Z0-9]""")
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
@file:OptIn(ExperimentalForeignApi::class)

package com.github.ajalt.clikt.output

import com.github.ajalt.clikt.core.CliktError
import com.github.ajalt.clikt.mpp.isWindowsMpp
import com.github.ajalt.clikt.mpp.readEnvvar
import com.github.ajalt.clikt.mpp.readFileIfExists
import kotlinx.cinterop.ExperimentalForeignApi
import kotlinx.cinterop.MemScope
import kotlinx.cinterop.memScoped
import kotlinx.cinterop.toKString
Expand Down
4 changes: 2 additions & 2 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[versions]
kotlin = "1.8.22"
kotlin = "1.9.0"

[libraries]
mordant = "com.github.ajalt.mordant:mordant:2.0.0"
Expand All @@ -14,5 +14,5 @@ kodein = "org.kodein.di:kodein-di-generic-jvm:5.2.0"
kotlinx-serialization = "org.jetbrains.kotlinx:kotlinx-serialization-json:1.5.1"

[plugins]
dokka = "org.jetbrains.dokka:1.8.10"
dokka = "org.jetbrains.dokka:1.8.20"
publish = "com.vanniktech.maven.publish:0.25.2"

0 comments on commit 9eb6683

Please sign in to comment.