Skip to content

Commit 09a838a

Browse files
committed
Introduce a test for using kotlinx-datetime with JPMS
1 parent 060f3b7 commit 09a838a

File tree

4 files changed

+27
-0
lines changed

4 files changed

+27
-0
lines changed

jpms-test/build.gradle.kts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
plugins {
2+
kotlin("jvm")
3+
}
4+
5+
dependencies {
6+
api(project(":kotlinx-datetime"))
7+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
module my.jpms.test {
2+
requires transitive kotlin.stdlib;
3+
requires transitive kotlinx.datetime;
4+
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
/*
2+
* Copyright 2019-2025 JetBrains s.r.o. and contributors.
3+
* Use of this source code is governed by the Apache 2.0 License that can be found in the LICENSE.txt file.
4+
*/
5+
6+
package my.jpms.test;
7+
8+
import kotlinx.datetime.*;
9+
10+
public class InitLocalDate {
11+
LocalDate newLocalDate() {
12+
return new LocalDate(2025, 3, 31);
13+
}
14+
}

settings.gradle.kts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,6 @@ include(":js-without-timezones")
2626
project(":js-without-timezones").name = "kotlinx-datetime-js-test-without-timezones"
2727
include(":js-with-timezones")
2828
project(":js-with-timezones").name = "kotlinx-datetime-js-test-with-timezones"
29+
include(":jpms-test")
30+
project(":jpms-test").name = "kotlinx-datetime-test-with-jpms"
2931
include(":benchmarks")

0 commit comments

Comments
 (0)