Skip to content

Commit b377fd2

Browse files
committed
Update kotlin libraries
- Update versions kotlinx-serialization-json, kotlinx-datetime and kotlinx-coroutines-core to ones that support Kotlin 2.0 - Remove unnecessary step on CI
1 parent 9f3eb34 commit b377fd2

File tree

4 files changed

+5
-14
lines changed

4 files changed

+5
-14
lines changed

.github/workflows/ci.yml

-9
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,6 @@ jobs:
3636
with:
3737
node-version: '22.10.0'
3838

39-
- name: Install libncurses5
40-
run: |
41-
if [[ "$OSTYPE" == "darwin"* ]]
42-
then
43-
brew install ncurses
44-
else
45-
sudo apt-get install libncurses5
46-
fi
47-
4839
- name: Install Danger JS
4940
run: npm install -g danger
5041

Dangerfile_ci.df.kts

+1-2
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
//Testing plugin
99
@file:DependsOn("danger-kotlin-sample-plugin-sample.jar")
10+
@file:OptIn(kotlin.time.ExperimentalTime::class)
1011

1112
import kotlinx.coroutines.async
1213
import kotlinx.coroutines.delay
@@ -64,9 +65,7 @@ danger(args) {
6465
async { expensiveCheck("4", 5000) }
6566
}
6667
val after = Clock.System.now()
67-
@OptIn(kotlin.time.ExperimentalTime::class)
6868
val runningTime = after.minus(before)
69-
@OptIn(kotlin.time.ExperimentalTime::class)
7069
message("Coroutines checks terminated - runningFor $runningTime")
7170

7271
if ((fails + warnings).isEmpty()) {

dependencyVersions.gradle

+3-3
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ project.ext.artifactIdKotlinMain = 'kotlin-main-kts'
2727
project.ext.artifactIdKotlinSerializationJson = 'kotlinx-serialization-json'
2828
project.ext.artifactIdKotlinDatetime = "kotlinx-datetime"
2929
project.ext.artifactIdKotlinCoroutines = "kotlinx-coroutines-core"
30-
project.ext.versionKotlinSerializationJson = '1.3.2'
31-
project.ext.versionKotlinDatetime = '0.2.0'
32-
project.ext.versionKotlinCoroutines = '1.6.2'
30+
project.ext.versionKotlinSerializationJson = '1.7.3'
31+
project.ext.versionKotlinDatetime = '0.6.1'
32+
project.ext.versionKotlinCoroutines = '1.9.0'
3333

3434
ext.kotlin = [
3535
mainKts: "$groupIdKotlin:$artifactIdKotlinMain:$versionKotlin",

settings.gradle

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
pluginManagement {
22
repositories {
3+
gradlePluginPortal()
34
mavenCentral()
45
mavenLocal()
56
}

0 commit comments

Comments
 (0)