Update module-info exports for stdlib and suppress warnings

- include kotlin.time package

Suppress module-info warnings:

- terminal digits in module name
- open/export for another not yet built dependee module

#KT-21266
This commit is contained in:
Ilya Gorbunov
2020-04-20 23:25:18 +03:00
parent 01fb200791
commit e3d20a2f5c
3 changed files with 5 additions and 7 deletions
+3 -7
View File
@@ -1,3 +1,4 @@
@SuppressWarnings("module") // suppress warnings about opening packages to not-yet-built kotlin-reflect
module kotlin.stdlib {
exports kotlin;
exports kotlin.annotation;
@@ -20,12 +21,7 @@ module kotlin.stdlib {
exports kotlin.sequences;
exports kotlin.system;
exports kotlin.text;
// do not export experimental coroutines packages
//exports kotlin.coroutines.experimental;
//exports kotlin.coroutines.experimental.intrinsics;
//exports kotlin.coroutines.experimental.jvm.internal;
//exports kotlin.coroutines.experimental.migration;
exports kotlin.time;
exports kotlin.experimental;
@@ -33,7 +29,7 @@ module kotlin.stdlib {
exports kotlin.jvm.internal;
exports kotlin.jvm.internal.markers;
// Open packages with .kotlin_builtins files to kotlin-reflect, to allow reflection to load built-in declarations there
// Open packages with .kotlin_builtins files to kotlin-reflect, to allow reflection to load built-in declarations from there
opens kotlin to kotlin.reflect;
opens kotlin.annotation to kotlin.reflect;
opens kotlin.collections to kotlin.reflect;