File tree Expand file tree Collapse file tree 3 files changed +31
-11
lines changed Expand file tree Collapse file tree 3 files changed +31
-11
lines changed Original file line number Diff line number Diff line change @@ -14,11 +14,11 @@ jobs:
14
14
- name : Checkout code
15
15
uses : actions/checkout@v4
16
16
17
- - name : Set up JDK 8
17
+ - name : Set up JDK 11
18
18
uses : actions/setup-java@v4
19
19
with :
20
20
distribution : ' temurin'
21
- java-version : ' 8 '
21
+ java-version : ' 11 '
22
22
23
23
- name : Setup Gradle
24
24
uses : gradle/actions/setup-gradle@v4
29
29
path : |
30
30
~/.gradle/caches
31
31
~/.gradle/wrapper
32
- key : ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
32
+ key : ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties', '**/libs.versions.toml' ) }}
33
33
restore-keys : |
34
34
${{ runner.os }}-gradle-
35
35
Original file line number Diff line number Diff line change @@ -4,10 +4,10 @@ import com.vanniktech.maven.publish.SonatypeHost
4
4
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
5
5
6
6
plugins {
7
- kotlin( " multiplatform " ) version " 2.1.0 "
8
- id( " org.jetbrains .dokka" ) version " 2.0.0 "
9
- id( " org.jetbrains.kotlinx. kover" ) version " 0.9.0 "
10
- id( " com.vanniktech.maven.publish " ) version " 0.30.0 "
7
+ alias(libs.plugins.kotlinMultiplatform)
8
+ alias(libs.plugins .dokka)
9
+ alias(libs.plugins. kover)
10
+ alias(libs.plugins.mavenPublish)
11
11
}
12
12
13
13
group = " com.jsoizo"
@@ -47,14 +47,12 @@ kotlin {
47
47
48
48
jvm().compilations[" main" ].defaultSourceSet {
49
49
dependencies {
50
- implementation(" org.jetbrains. kotlinx:kotlinx- coroutines-core:1.10.1 " )
50
+ implementation(libs. kotlinx. coroutines.core )
51
51
}
52
52
}
53
53
jvm().compilations[" test" ].defaultSourceSet {
54
54
dependencies {
55
- implementation(" org.jetbrains.kotlinx:kotlinx-coroutines-core:1.10.1" )
56
- implementation(" io.kotest:kotest-runner-junit5:5.9.1" )
57
- implementation(" io.kotest:kotest-assertions-core:5.9.1" )
55
+ implementation(libs.bundles.kotest)
58
56
}
59
57
}
60
58
js().compilations[" main" ].defaultSourceSet {
Original file line number Diff line number Diff line change
1
+ [versions ]
2
+ kotlin = " 2.1.0"
3
+ coroutines = " 1.10.1"
4
+ maven-publish = " 0.30.0"
5
+ kover = " 0.8.2"
6
+ dokka = " 2.0.0"
7
+ kotest = " 5.9.1"
8
+
9
+ [libraries ]
10
+ # kotlin-test = { module = "org.jetbrains.kotlin:kotlin-test", version.ref = "kotlin" }
11
+ kotlinx-coroutines-core = { module = " org.jetbrains.kotlinx:kotlinx-coroutines-core" , version.ref = " coroutines" }
12
+ kotest-runner-junit5 = { module = " io.kotest:kotest-runner-junit5" , version.ref = " kotest" }
13
+ kotest-assertions-core = { module = " io.kotest:kotest-assertions-core" , version.ref = " kotest" }
14
+
15
+ [bundles ]
16
+ kotest = [" kotest-runner-junit5" , " kotest-assertions-core" ]
17
+
18
+ [plugins ]
19
+ kotlinMultiplatform = { id = " org.jetbrains.kotlin.multiplatform" , version.ref = " kotlin" }
20
+ kover = { id = " org.jetbrains.kotlinx.kover" , version.ref = " kover" }
21
+ dokka = { id = " org.jetbrains.dokka" , version.ref = " dokka" }
22
+ mavenPublish = { id = " com.vanniktech.maven.publish" , version.ref = " maven-publish" }
You can’t perform that action at this time.
0 commit comments