Deprecate modules of the empty artifacts to discourage their usage

#KT-51907
This commit is contained in:
Ilya Gorbunov
2022-09-14 16:09:40 +02:00
committed by Space
parent e51d25fb60
commit 18e4d9e16c
4 changed files with 15 additions and 0 deletions
+4
View File
@@ -49,6 +49,10 @@ jar {
from sourceSets.java9.output
}
sourcesJar {
from sourceSets.java9.allSource
}
artifacts {
archives sourcesJar
@@ -1,4 +1,8 @@
/**
* @deprecated This module is empty and therefore deprecated, please use <code>kotlin.stdlib</code> instead.
*/
@SuppressWarnings("module") // suppress warnings about terminal digit and exporting packages to not-yet-built kotlin-stdlib-jdk8
@Deprecated
module kotlin.stdlib.jdk7 {
requires transitive kotlin.stdlib;
}
+3
View File
@@ -53,6 +53,9 @@ jar {
from sourceSets.java9.output
}
sourcesJar {
from sourceSets.java9.allSource
}
artifacts {
archives sourcesJar
@@ -1,4 +1,8 @@
/**
* @deprecated This module is empty and therefore deprecated, please use <code>kotlin.stdlib</code> instead.
*/
@SuppressWarnings("module") // suppress warning about terminal digit
@Deprecated
module kotlin.stdlib.jdk8 {
requires transitive kotlin.stdlib;
requires kotlin.stdlib.jdk7;