[Gradle, JS] Change message in polite manner

#KT-36489 fixed
#KT-36843 fixed
This commit is contained in:
Ilya Goncharov
2020-02-20 19:00:12 +03:00
parent e0be8f271f
commit d114945b76
3 changed files with 8 additions and 12 deletions
@@ -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()
}
@@ -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()
}
@@ -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()
}