[Gradle, JS] Change message in polite manner
#KT-36489 fixed #KT-36843 fixed
This commit is contained in:
+2
-4
@@ -44,12 +44,10 @@ open class KotlinJsPlugin(
|
||||
if (kotlinExtension._target == null) {
|
||||
project.logger.warn(
|
||||
"""
|
||||
Need to initialize js target.
|
||||
Use
|
||||
Please initialize the Kotlin/JS target. Use:
|
||||
kotlin {
|
||||
js {
|
||||
// Choose sub target (or both), for which js is necessary
|
||||
// Affect in which tests are executed and final dist (in browser is only one bundle file)
|
||||
// To build distributions for and run tests on browser or Node.js use one or both of:
|
||||
browser()
|
||||
nodejs()
|
||||
}
|
||||
|
||||
+3
-4
@@ -45,12 +45,11 @@ open class KotlinJsTargetPreset(
|
||||
if (!isBrowserConfigured && !isNodejsConfigured) {
|
||||
project.logger.warn(
|
||||
"""
|
||||
Choose sub target (or both), for which js is necessary
|
||||
In next releases it will be error
|
||||
Use
|
||||
Please choose a JavaScript environment to build distributions and run tests.
|
||||
Not choosing any of them will be an error in the future releases.
|
||||
kotlin {
|
||||
js {
|
||||
// Affect in which tests are executed and final dist (in browser is only one bundle file)
|
||||
// To build distributions for and run tests on browser or Node.js use one or both of:
|
||||
browser()
|
||||
nodejs()
|
||||
}
|
||||
|
||||
+3
-4
@@ -31,12 +31,11 @@ open class KotlinJsIrTargetPreset(
|
||||
if (!isBrowserConfigured && !isNodejsConfigured) {
|
||||
project.logger.warn(
|
||||
"""
|
||||
Choose sub target (or both), for which js is necessary
|
||||
In next releases it will be error
|
||||
Use
|
||||
Please choose a JavaScript environment to build distributions and run tests.
|
||||
Not choosing any of them will be an error in the future releases.
|
||||
kotlin {
|
||||
js {
|
||||
// Affect in which tests are executed and final dist (in browser is only one bundle file)
|
||||
// To build distributions for and run tests on browser or Node.js use one or both of:
|
||||
browser()
|
||||
nodejs()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user