diff --git a/compiler/cli/cli-common/src/org/jetbrains/kotlin/cli/common/Properties.kt b/compiler/cli/cli-common/src/org/jetbrains/kotlin/cli/common/Properties.kt index a8734b8d934..0ef60f1ac2d 100644 --- a/compiler/cli/cli-common/src/org/jetbrains/kotlin/cli/common/Properties.kt +++ b/compiler/cli/cli-common/src/org/jetbrains/kotlin/cli/common/Properties.kt @@ -55,8 +55,7 @@ enum class CompilerSystemProperties(val property: String, val alwaysDirectAccess USER_HOME("user.home", alwaysDirectAccess = true), JAVA_VERSION("java.specification.version", alwaysDirectAccess = true), JAVA_HOME("java.home", alwaysDirectAccess = true), - JAVA_CLASS_PATH("java.class.path", alwaysDirectAccess = true), - KOTLIN_JS_COMPILER_LEGACY_FORCE_ENABLED("kotlin.js.compiler.legacy.force_enabled", alwaysDirectAccess = true) + JAVA_CLASS_PATH("java.class.path", alwaysDirectAccess = true) ; private fun getProperFunction(custom: T?, default: T): T { diff --git a/compiler/cli/cli-common/src/org/jetbrains/kotlin/cli/common/arguments/K2JSCompilerArguments.kt b/compiler/cli/cli-common/src/org/jetbrains/kotlin/cli/common/arguments/K2JSCompilerArguments.kt index ff609e0dfcf..39b04e88153 100644 --- a/compiler/cli/cli-common/src/org/jetbrains/kotlin/cli/common/arguments/K2JSCompilerArguments.kt +++ b/compiler/cli/cli-common/src/org/jetbrains/kotlin/cli/common/arguments/K2JSCompilerArguments.kt @@ -590,20 +590,10 @@ class K2JSCompilerArguments : CommonCompilerArguments() { } @Argument( - value = "-Xuse-deprecated-legacy-compiler", - description = "Use deprecated legacy compiler without error" + value = "-Xforce-deprecated-legacy-compiler-usage", + description = "The flag is used only for our inner infrastructure. It will be removed soon, so it's unsafe to use it nowadays." ) - var useDeprecatedLegacyCompiler = false - set(value) { - checkFrozen() - field = value - } - - @Argument( - value = "-Xlegacy-deprecated-no-warn", - description = "Disable warnings of deprecation of legacy compiler" - ) - var legacyDeprecatedNoWarn = false + var forceDeprecatedLegacyCompilerUsage = false set(value) { checkFrozen() field = value @@ -623,11 +613,6 @@ class K2JSCompilerArguments : CommonCompilerArguments() { collector.deprecationWarn(irBaseClassInMetadata, false, "-Xir-base-class-in-metadata") collector.deprecationWarn(irNewIr2Js, true, "-Xir-new-ir2js") - if (languageVersion >= LanguageVersion.KOTLIN_1_9 && CompilerSystemProperties.KOTLIN_JS_COMPILER_LEGACY_FORCE_ENABLED.value != "true") { - collector.deprecationWarn(legacyDeprecatedNoWarn, false, "-Xlegacy-deprecated-no-warn") - collector.deprecationWarn(useDeprecatedLegacyCompiler, false, "-Xuse-deprecated-legacy-compiler") - } - return super.configureAnalysisFlags(collector, languageVersion).also { it[allowFullyQualifiedNameInKClass] = wasm && wasmKClassFqn //Only enabled WASM BE supports this flag } diff --git a/compiler/cli/cli-js/src/org/jetbrains/kotlin/cli/js/K2JSCompiler.java b/compiler/cli/cli-js/src/org/jetbrains/kotlin/cli/js/K2JSCompiler.java index 3f24b21b9e5..184cf69cb88 100644 --- a/compiler/cli/cli-js/src/org/jetbrains/kotlin/cli/js/K2JSCompiler.java +++ b/compiler/cli/cli-js/src/org/jetbrains/kotlin/cli/js/K2JSCompiler.java @@ -185,29 +185,12 @@ public class K2JSCompiler extends CLICompiler { } LanguageVersionSettings languageVersionSettings = CommonConfigurationKeysKt.getLanguageVersionSettings(configuration); - if (!Objects.equals(CompilerSystemProperties.KOTLIN_JS_COMPILER_LEGACY_FORCE_ENABLED.getValue(), "true") && languageVersionSettings.getLanguageVersion().compareTo(LanguageVersion.KOTLIN_1_9) >= 0) { + + if (!arguments.getForceDeprecatedLegacyCompilerUsage() && languageVersionSettings.getLanguageVersion().compareTo(LanguageVersion.KOTLIN_1_9) >= 0) { messageCollector.report(ERROR, "Old Kotlin/JS compiler is no longer supported. Please migrate to the new JS IR backend", null); return COMPILATION_ERROR; } - String deprecatedMessage = "==========\n" + - "This project currently uses the Kotlin/JS Legacy compiler backend, which has been deprecated and will be removed in a future release.\n" + - "\n" + - "Please migrate your project to the new IR-based compiler (https://kotl.in/jsir).\n" + - "Because your build tool will not support the new Kotlin/JS compiler, you will also need to migrate to Gradle.\n" + - "\n" + - "You can continue to use the deprecated legacy compiler in the current version of the toolchain by providing the compiler option -Xuse-deprecated-legacy-compiler.\n" + - "=========="; - - if (!arguments.getUseDeprecatedLegacyCompiler()) { - messageCollector.report(ERROR, deprecatedMessage, null); - return COMPILATION_ERROR; - } - - if (!arguments.getLegacyDeprecatedNoWarn()) { - messageCollector.report(STRONG_WARNING, deprecatedMessage, null); - } - if (arguments.getFreeArgs().isEmpty() && (!incrementalCompilationIsEnabledForJs(arguments))) { if (arguments.getVersion()) { return OK; diff --git a/compiler/incremental-compilation-impl/test/org/jetbrains/kotlin/incremental/AbstractIncrementalJsCompilerRunnerTest.kt b/compiler/incremental-compilation-impl/test/org/jetbrains/kotlin/incremental/AbstractIncrementalJsCompilerRunnerTest.kt index a518119f7e6..d11e7bbcc7a 100644 --- a/compiler/incremental-compilation-impl/test/org/jetbrains/kotlin/incremental/AbstractIncrementalJsCompilerRunnerTest.kt +++ b/compiler/incremental-compilation-impl/test/org/jetbrains/kotlin/incremental/AbstractIncrementalJsCompilerRunnerTest.kt @@ -43,9 +43,7 @@ abstract class AbstractIncrementalJsCompilerRunnerTest : AbstractIncrementalComp outputFile = File(destinationDir, "${testDir.name}.js").path sourceMap = true metaInfo = true - useDeprecatedLegacyCompiler = true - // TODO: It will be deleted after all of our internal vendors will use the new Kotlin/JS compiler - CompilerSystemProperties.KOTLIN_JS_COMPILER_LEGACY_FORCE_ENABLED.value = "true" + forceDeprecatedLegacyCompilerUsage = true } protected open val scopeExpansionMode = CompileScopeExpansionMode.NEVER diff --git a/compiler/incremental-compilation-impl/test/org/jetbrains/kotlin/incremental/AbstractIncrementalMultiModuleJsCompilerRunnerTest.kt b/compiler/incremental-compilation-impl/test/org/jetbrains/kotlin/incremental/AbstractIncrementalMultiModuleJsCompilerRunnerTest.kt index eea2b292d6d..b7281711123 100644 --- a/compiler/incremental-compilation-impl/test/org/jetbrains/kotlin/incremental/AbstractIncrementalMultiModuleJsCompilerRunnerTest.kt +++ b/compiler/incremental-compilation-impl/test/org/jetbrains/kotlin/incremental/AbstractIncrementalMultiModuleJsCompilerRunnerTest.kt @@ -29,9 +29,7 @@ abstract class AbstractIncrementalMultiModuleJsCompilerRunnerTest : K2JSCompilerArguments().apply { sourceMap = true metaInfo = true - useDeprecatedLegacyCompiler = true - // TODO: It will be deleted after all of our internal vendors will use the new Kotlin/JS compiler - CompilerSystemProperties.KOTLIN_JS_COMPILER_LEGACY_FORCE_ENABLED.value = "true" + forceDeprecatedLegacyCompilerUsage = true } override fun makeForSingleModule( diff --git a/compiler/testData/cli/js/createMetadata.args b/compiler/testData/cli/js/createMetadata.args index 7e91cc9ff23..0ff1318ca8c 100644 --- a/compiler/testData/cli/js/createMetadata.args +++ b/compiler/testData/cli/js/createMetadata.args @@ -1,6 +1,5 @@ compiler/testData/integration/ant/js/simpleWithoutStdlibAndFolderAsAnotherLib/jslib-example/LibraryExample.kt --Xlegacy-deprecated-no-warn --Xuse-deprecated-legacy-compiler +-Xforce-deprecated-legacy-compiler-usage -meta-info -output $TEMP_DIR$/jslib-example.js diff --git a/compiler/testData/cli/js/emptySources.args b/compiler/testData/cli/js/emptySources.args index 78693b64323..81cd80e1564 100644 --- a/compiler/testData/cli/js/emptySources.args +++ b/compiler/testData/cli/js/emptySources.args @@ -1,6 +1,5 @@ $TEMP_DIR$ --Xlegacy-deprecated-no-warn --Xuse-deprecated-legacy-compiler +-Xforce-deprecated-legacy-compiler-usage -no-stdlib -output $TESTDATA_DIR$ diff --git a/compiler/testData/cli/js/inlineCycle.args b/compiler/testData/cli/js/inlineCycle.args index 0cd10d03efa..a257d8f8a2b 100644 --- a/compiler/testData/cli/js/inlineCycle.args +++ b/compiler/testData/cli/js/inlineCycle.args @@ -1,5 +1,4 @@ $TESTDATA_DIR$/inlineCycle.kt --Xlegacy-deprecated-no-warn --Xuse-deprecated-legacy-compiler +-Xforce-deprecated-legacy-compiler-usage -output $TEMP_DIR$ diff --git a/compiler/testData/cli/js/jsExtraHelp.out b/compiler/testData/cli/js/jsExtraHelp.out index b81706ecd8a..9c53e6d9563 100644 --- a/compiler/testData/cli/js/jsExtraHelp.out +++ b/compiler/testData/cli/js/jsExtraHelp.out @@ -6,6 +6,8 @@ where advanced options include: -Xenable-extension-functions-in-externals Enable extensions functions members in external interfaces -Xfake-override-validator Enable IR fake override validator + -Xforce-deprecated-legacy-compiler-usage + The flag is used only for our inner infrastructure. It will be removed soon, so it's unsafe to use it nowadays. -Xfriend-modules= Paths to friend modules -Xfriend-modules-disabled Disable internal declaration export -Xgenerate-dts Generate TypeScript declarations .d.ts file alongside JS file. Available in IR backend only. @@ -37,13 +39,10 @@ where advanced options include: -Xir-safe-external-boolean Safe access via Boolean() to Boolean properties in externals to safely cast falsy values. -Xir-safe-external-boolean-diagnostic={log|exception} Enable runtime diagnostics when access safely to boolean in external declarations - -Xlegacy-deprecated-no-warn Disable warnings of deprecation of legacy compiler -Xmetadata-only Generate *.meta.js and *.kjsm files only -Xpartial-linkage Allow unlinked symbols -Xstrict-implicit-export-types Generate strict types for implicitly exported entities inside d.ts files. Available in IR backend only. -Xtyped-arrays Translate primitive arrays to JS typed arrays - -Xuse-deprecated-legacy-compiler - Use deprecated legacy compiler without error -Xes-classes Generated JavaScript will use ES2015 classes. -Xwasm Use experimental WebAssembly compiler backend -Xwasm-debug-info Add debug info to WebAssembly compiled module diff --git a/compiler/testData/cli/js/jsOldBackend_strict.args b/compiler/testData/cli/js/jsOldBackend_strict.args deleted file mode 100644 index 1c142de9aaf..00000000000 --- a/compiler/testData/cli/js/jsOldBackend_strict.args +++ /dev/null @@ -1,7 +0,0 @@ -$TESTDATA_DIR$/languageVersion.kt --Xlegacy-deprecated-no-warn --Xuse-deprecated-legacy-compiler --output -$TEMP_DIR$/out.js --language-version -1.9 \ No newline at end of file diff --git a/compiler/testData/cli/js/jsOldBackend_strict.out b/compiler/testData/cli/js/jsOldBackend_strict.out deleted file mode 100644 index a33af2c6697..00000000000 --- a/compiler/testData/cli/js/jsOldBackend_strict.out +++ /dev/null @@ -1,2 +0,0 @@ -error: old Kotlin/JS compiler is no longer supported. Please migrate to the new JS IR backend -COMPILATION_ERROR diff --git a/compiler/testData/cli/js/kotlinHomeWithoutStdlib.args b/compiler/testData/cli/js/kotlinHomeWithoutStdlib.args index 36dd10cca56..81d2956508d 100644 --- a/compiler/testData/cli/js/kotlinHomeWithoutStdlib.args +++ b/compiler/testData/cli/js/kotlinHomeWithoutStdlib.args @@ -1,6 +1,5 @@ $TESTDATA_DIR$/simple2js.kt --Xlegacy-deprecated-no-warn --Xuse-deprecated-legacy-compiler +-Xforce-deprecated-legacy-compiler-usage -kotlin-home $TESTDATA_DIR$ -output diff --git a/compiler/testData/cli/js/kotlinPackage.args b/compiler/testData/cli/js/kotlinPackage.args index be415b25371..3f214b98aaf 100644 --- a/compiler/testData/cli/js/kotlinPackage.args +++ b/compiler/testData/cli/js/kotlinPackage.args @@ -1,6 +1,5 @@ $TESTDATA_DIR$/../kotlinPackage.kt -no-stdlib --Xlegacy-deprecated-no-warn --Xuse-deprecated-legacy-compiler +-Xforce-deprecated-legacy-compiler-usage -output $TEMP_DIR$/out.js diff --git a/compiler/testData/cli/js/languageVersion.args b/compiler/testData/cli/js/languageVersion.args index ac1e6d04160..952a7d4927c 100644 --- a/compiler/testData/cli/js/languageVersion.args +++ b/compiler/testData/cli/js/languageVersion.args @@ -1,6 +1,5 @@ $TESTDATA_DIR$/languageVersion.kt --Xlegacy-deprecated-no-warn --Xuse-deprecated-legacy-compiler +-Xforce-deprecated-legacy-compiler-usage -output $TEMP_DIR$/out.js -language-version diff --git a/compiler/testData/cli/js/libraryDirNotFound.args b/compiler/testData/cli/js/libraryDirNotFound.args index edadc3eee43..9c78073345c 100644 --- a/compiler/testData/cli/js/libraryDirNotFound.args +++ b/compiler/testData/cli/js/libraryDirNotFound.args @@ -1,6 +1,5 @@ $TESTDATA_DIR$/withLib.kt --Xlegacy-deprecated-no-warn --Xuse-deprecated-legacy-compiler +-Xforce-deprecated-legacy-compiler-usage -libraries not/existing/path -output diff --git a/compiler/testData/cli/js/moduleWithMetadataOnlyDependency.args b/compiler/testData/cli/js/moduleWithMetadataOnlyDependency.args index bffd279d1fb..093152029ec 100644 --- a/compiler/testData/cli/js/moduleWithMetadataOnlyDependency.args +++ b/compiler/testData/cli/js/moduleWithMetadataOnlyDependency.args @@ -1,14 +1,12 @@ $TESTDATA_DIR$/separateModules/sepModule1.kt --Xlegacy-deprecated-no-warn --Xuse-deprecated-legacy-compiler +-Xforce-deprecated-legacy-compiler-usage -meta-info -Xmetadata-only -output $TEMP_DIR$/m1/m1.js --- $TESTDATA_DIR$/separateModules/sepModule2.kt --Xlegacy-deprecated-no-warn --Xuse-deprecated-legacy-compiler +-Xforce-deprecated-legacy-compiler-usage -libraries $TEMP_DIR$/m1 -output diff --git a/compiler/testData/cli/js/modulesWithSameNames.args b/compiler/testData/cli/js/modulesWithSameNames.args index 7efa61145e1..35cf4831c08 100644 --- a/compiler/testData/cli/js/modulesWithSameNames.args +++ b/compiler/testData/cli/js/modulesWithSameNames.args @@ -1,13 +1,11 @@ $TESTDATA_DIR$/separateModules/sepModule1.kt --Xlegacy-deprecated-no-warn --Xuse-deprecated-legacy-compiler +-Xforce-deprecated-legacy-compiler-usage -meta-info -output $TEMP_DIR$/m1/m.js --- $TESTDATA_DIR$/separateModules/sepModule2.kt --Xlegacy-deprecated-no-warn --Xuse-deprecated-legacy-compiler +-Xforce-deprecated-legacy-compiler-usage -libraries $TEMP_DIR$/m1 -output diff --git a/compiler/testData/cli/js/modulesWithSameNamesAndFunc.args b/compiler/testData/cli/js/modulesWithSameNamesAndFunc.args index 150e28ff835..7dc5ce5c209 100644 --- a/compiler/testData/cli/js/modulesWithSameNamesAndFunc.args +++ b/compiler/testData/cli/js/modulesWithSameNamesAndFunc.args @@ -1,13 +1,11 @@ $TESTDATA_DIR$/separateModules/sepModule3.kt --Xlegacy-deprecated-no-warn --Xuse-deprecated-legacy-compiler +-Xforce-deprecated-legacy-compiler-usage -meta-info -output $TEMP_DIR$/m3/m.js --- $TESTDATA_DIR$/separateModules/sepModule4.kt --Xlegacy-deprecated-no-warn --Xuse-deprecated-legacy-compiler +-Xforce-deprecated-legacy-compiler-usage -libraries $TEMP_DIR$/m3 -output diff --git a/compiler/testData/cli/js/nonExistingSourcePath.args b/compiler/testData/cli/js/nonExistingSourcePath.args index e18069728bd..c607a46afc3 100644 --- a/compiler/testData/cli/js/nonExistingSourcePath.args +++ b/compiler/testData/cli/js/nonExistingSourcePath.args @@ -1,6 +1,5 @@ not/existing/path -no-stdlib --Xlegacy-deprecated-no-warn --Xuse-deprecated-legacy-compiler +-Xforce-deprecated-legacy-compiler-usage -output $TESTDATA_DIR$ diff --git a/compiler/testData/cli/js/notValidLibraryDir.args b/compiler/testData/cli/js/notValidLibraryDir.args index 8534ac566b4..bf09f1c03b1 100644 --- a/compiler/testData/cli/js/notValidLibraryDir.args +++ b/compiler/testData/cli/js/notValidLibraryDir.args @@ -1,6 +1,5 @@ $TESTDATA_DIR$/withLib.kt --Xlegacy-deprecated-no-warn --Xuse-deprecated-legacy-compiler +-Xforce-deprecated-legacy-compiler-usage -libraries compiler/testData/integration/ant/js/simpleWithJsFileAsAnotherLib -output diff --git a/compiler/testData/cli/js/outputIsDirectory.args b/compiler/testData/cli/js/outputIsDirectory.args index 38fc6f0ec78..8c5df02ff33 100644 --- a/compiler/testData/cli/js/outputIsDirectory.args +++ b/compiler/testData/cli/js/outputIsDirectory.args @@ -1,5 +1,4 @@ $TESTDATA_DIR$/simple2js.kt --Xlegacy-deprecated-no-warn --Xuse-deprecated-legacy-compiler +-Xforce-deprecated-legacy-compiler-usage -output $TESTDATA_DIR$ diff --git a/compiler/testData/cli/js/outputPostfixFileNotFound.args b/compiler/testData/cli/js/outputPostfixFileNotFound.args index 0aa8a305f9d..5b2eb1dbd24 100644 --- a/compiler/testData/cli/js/outputPostfixFileNotFound.args +++ b/compiler/testData/cli/js/outputPostfixFileNotFound.args @@ -1,6 +1,5 @@ $TESTDATA_DIR$/simple2js.kt --Xlegacy-deprecated-no-warn --Xuse-deprecated-legacy-compiler +-Xforce-deprecated-legacy-compiler-usage -output $TEMP_DIR$/out.js -output-postfix diff --git a/compiler/testData/cli/js/outputPrefixFileNotFound.args b/compiler/testData/cli/js/outputPrefixFileNotFound.args index fb740922dfa..50e437dd1b4 100644 --- a/compiler/testData/cli/js/outputPrefixFileNotFound.args +++ b/compiler/testData/cli/js/outputPrefixFileNotFound.args @@ -1,6 +1,5 @@ $TESTDATA_DIR$/simple2js.kt --Xlegacy-deprecated-no-warn --Xuse-deprecated-legacy-compiler +-Xforce-deprecated-legacy-compiler-usage -output $TEMP_DIR$/out.js -output-prefix diff --git a/compiler/testData/cli/js/reifiedIntersectionType.args b/compiler/testData/cli/js/reifiedIntersectionType.args index b2d6e25bd66..8c8f871fd96 100644 --- a/compiler/testData/cli/js/reifiedIntersectionType.args +++ b/compiler/testData/cli/js/reifiedIntersectionType.args @@ -1,5 +1,4 @@ $TESTDATA_DIR$/reifiedIntersectionType.kt --Xlegacy-deprecated-no-warn --Xuse-deprecated-legacy-compiler +-Xforce-deprecated-legacy-compiler-usage -output $TEMP_DIR$/out.js diff --git a/compiler/testData/cli/js/simple2js.args b/compiler/testData/cli/js/simple2js.args index 0eab61ab710..e3dc179f89f 100644 --- a/compiler/testData/cli/js/simple2js.args +++ b/compiler/testData/cli/js/simple2js.args @@ -1,5 +1,4 @@ $TESTDATA_DIR$/simple2js.kt --Xlegacy-deprecated-no-warn --Xuse-deprecated-legacy-compiler +-Xforce-deprecated-legacy-compiler-usage -output $TEMP_DIR$/out.js diff --git a/compiler/testData/cli/js/sourceMap.args b/compiler/testData/cli/js/sourceMap.args index ec092740ea7..ff6733a4b15 100644 --- a/compiler/testData/cli/js/sourceMap.args +++ b/compiler/testData/cli/js/sourceMap.args @@ -1,6 +1,5 @@ $TESTDATA_DIR$/sourceMap.kt --Xlegacy-deprecated-no-warn --Xuse-deprecated-legacy-compiler +-Xforce-deprecated-legacy-compiler-usage -source-map -source-map-prefix ./ diff --git a/compiler/testData/cli/js/sourceMapCharEscape.args b/compiler/testData/cli/js/sourceMapCharEscape.args index a171c1bd6fa..92787d2cdf3 100644 --- a/compiler/testData/cli/js/sourceMapCharEscape.args +++ b/compiler/testData/cli/js/sourceMapCharEscape.args @@ -1,6 +1,5 @@ $TESTDATA_DIR$/sourceMapCharEscape.kt --Xlegacy-deprecated-no-warn --Xuse-deprecated-legacy-compiler +-Xforce-deprecated-legacy-compiler-usage -source-map -source-map-embed-sources always diff --git a/compiler/testData/cli/js/sourceMapDuplicateRelativePaths.args b/compiler/testData/cli/js/sourceMapDuplicateRelativePaths.args index f6195f0fe60..ab59ae1e1bd 100644 --- a/compiler/testData/cli/js/sourceMapDuplicateRelativePaths.args +++ b/compiler/testData/cli/js/sourceMapDuplicateRelativePaths.args @@ -1,6 +1,5 @@ $TESTDATA_DIR$/sourceMapDuplicatePath/ --Xlegacy-deprecated-no-warn --Xuse-deprecated-legacy-compiler +-Xforce-deprecated-legacy-compiler-usage -source-map -source-map-base-dirs $TESTDATA_DIR$/sourceMapDuplicatePath/foo:$TESTDATA_DIR$/sourceMapDuplicatePath/bar diff --git a/compiler/testData/cli/js/sourceMapEmbedSources.args b/compiler/testData/cli/js/sourceMapEmbedSources.args index bcc4b60506d..ec2fe578094 100644 --- a/compiler/testData/cli/js/sourceMapEmbedSources.args +++ b/compiler/testData/cli/js/sourceMapEmbedSources.args @@ -1,6 +1,5 @@ $TESTDATA_DIR$/sourceMap.kt --Xlegacy-deprecated-no-warn --Xuse-deprecated-legacy-compiler +-Xforce-deprecated-legacy-compiler-usage -source-map -source-map-prefix ./ diff --git a/compiler/testData/cli/js/sourceMapPrefix.args b/compiler/testData/cli/js/sourceMapPrefix.args index eb23d435bd9..22a548a7717 100644 --- a/compiler/testData/cli/js/sourceMapPrefix.args +++ b/compiler/testData/cli/js/sourceMapPrefix.args @@ -1,6 +1,5 @@ $TESTDATA_DIR$/sourceMap.kt --Xlegacy-deprecated-no-warn --Xuse-deprecated-legacy-compiler +-Xforce-deprecated-legacy-compiler-usage -source-map -source-map-prefix /localhost/src/ diff --git a/compiler/testData/cli/js/sourceMapRelativeRoot.args b/compiler/testData/cli/js/sourceMapRelativeRoot.args index 3f383748ec7..f1c35306b09 100644 --- a/compiler/testData/cli/js/sourceMapRelativeRoot.args +++ b/compiler/testData/cli/js/sourceMapRelativeRoot.args @@ -1,14 +1,12 @@ $TESTDATA_DIR$/sourceMapRelativeRoot/lib/src/lib.kt --Xlegacy-deprecated-no-warn --Xuse-deprecated-legacy-compiler +-Xforce-deprecated-legacy-compiler-usage -source-map -meta-info -output $TESTDATA_DIR$/sourceMapRelativeRoot/lib/out/lib.js --- $TESTDATA_DIR$/sourceMapRelativeRoot/main/src/main.kt --Xlegacy-deprecated-no-warn --Xuse-deprecated-legacy-compiler +-Xforce-deprecated-legacy-compiler-usage -libraries $TESTDATA_DIR$/sourceMapRelativeRoot/lib/out/ -source-map diff --git a/compiler/testData/cli/js/sourceMapRootAuto.args b/compiler/testData/cli/js/sourceMapRootAuto.args index dcffe36c7b5..2ef71242189 100644 --- a/compiler/testData/cli/js/sourceMapRootAuto.args +++ b/compiler/testData/cli/js/sourceMapRootAuto.args @@ -1,7 +1,6 @@ $TESTDATA_DIR$/sourceMapRoot/foo/file1.kt $TESTDATA_DIR$/sourceMapRoot/bar/file2.kt --Xlegacy-deprecated-no-warn --Xuse-deprecated-legacy-compiler +-Xforce-deprecated-legacy-compiler-usage -source-map -source-map-prefix ./ diff --git a/compiler/testData/cli/js/sourceMapRootManual.args b/compiler/testData/cli/js/sourceMapRootManual.args index 707ae2851e7..e30a49abca3 100644 --- a/compiler/testData/cli/js/sourceMapRootManual.args +++ b/compiler/testData/cli/js/sourceMapRootManual.args @@ -1,7 +1,6 @@ $TESTDATA_DIR$/sourceMapRoot/foo/file1.kt $TESTDATA_DIR$/sourceMapRoot/bar/file2.kt --Xlegacy-deprecated-no-warn --Xuse-deprecated-legacy-compiler +-Xforce-deprecated-legacy-compiler-usage -source-map -source-map-base-dirs $TESTDATA_DIR$/ diff --git a/compiler/testData/cli/js/sourceMapRootMissing.args b/compiler/testData/cli/js/sourceMapRootMissing.args index 64efc435f8f..278e796ffef 100644 --- a/compiler/testData/cli/js/sourceMapRootMissing.args +++ b/compiler/testData/cli/js/sourceMapRootMissing.args @@ -2,8 +2,7 @@ $TESTDATA_DIR$/sourceMapRoot/foo/file1.kt $TESTDATA_DIR$/sourceMapRoot/bar/file2.kt $TESTDATA_DIR$/sourceMapRoot/bar/baz/file3.kt $TESTDATA_DIR$/sourceMapRoot/foo/baz/file4.kt --Xlegacy-deprecated-no-warn --Xuse-deprecated-legacy-compiler +-Xforce-deprecated-legacy-compiler-usage -source-map -source-map-base-dirs $TESTDATA_DIR$/sourceMapRoot/foo diff --git a/compiler/testData/cli/js/sourceMapRootMultiple.args b/compiler/testData/cli/js/sourceMapRootMultiple.args index 6d03c00f575..93d537c8d32 100644 --- a/compiler/testData/cli/js/sourceMapRootMultiple.args +++ b/compiler/testData/cli/js/sourceMapRootMultiple.args @@ -1,7 +1,6 @@ $TESTDATA_DIR$/sourceMapRoot/foo/file1.kt $TESTDATA_DIR$/sourceMapRoot/bar/file2.kt --Xlegacy-deprecated-no-warn --Xuse-deprecated-legacy-compiler +-Xforce-deprecated-legacy-compiler-usage -source-map -source-map-base-dirs $TESTDATA_DIR$/foo:$TESTDATA_DIR$/bar diff --git a/compiler/testData/cli/js/suppressAllWarningsJS.args b/compiler/testData/cli/js/suppressAllWarningsJS.args index c6b4e4eee4a..261fcf75d9d 100644 --- a/compiler/testData/cli/js/suppressAllWarningsJS.args +++ b/compiler/testData/cli/js/suppressAllWarningsJS.args @@ -1,6 +1,5 @@ $TESTDATA_DIR$/../warnings.kt --Xlegacy-deprecated-no-warn --Xuse-deprecated-legacy-compiler +-Xforce-deprecated-legacy-compiler-usage -nowarn -output $TEMP_DIR$/out.js diff --git a/compiler/testData/cli/js/withFolderAsLib.args b/compiler/testData/cli/js/withFolderAsLib.args index f9866a5043c..840dc4c60a5 100644 --- a/compiler/testData/cli/js/withFolderAsLib.args +++ b/compiler/testData/cli/js/withFolderAsLib.args @@ -1,6 +1,5 @@ $TESTDATA_DIR$/withLib.kt --Xlegacy-deprecated-no-warn --Xuse-deprecated-legacy-compiler +-Xforce-deprecated-legacy-compiler-usage -libraries $TESTDATA_DIR$/folderAsLib -output diff --git a/compiler/testData/cli/js/withLib.args b/compiler/testData/cli/js/withLib.args index 4258b05a63a..9f53df1a6b1 100644 --- a/compiler/testData/cli/js/withLib.args +++ b/compiler/testData/cli/js/withLib.args @@ -1,6 +1,5 @@ $TESTDATA_DIR$/withLib.kt --Xlegacy-deprecated-no-warn --Xuse-deprecated-legacy-compiler +-Xforce-deprecated-legacy-compiler-usage -libraries $TESTDATA_DIR$/lib/LibraryExample.jar -output diff --git a/compiler/testData/cli/js/wrongAbiVersion.args b/compiler/testData/cli/js/wrongAbiVersion.args index 092f08db38e..6f9e7ed80a6 100644 --- a/compiler/testData/cli/js/wrongAbiVersion.args +++ b/compiler/testData/cli/js/wrongAbiVersion.args @@ -1,6 +1,5 @@ $TESTDATA_DIR$/simple2js.kt --Xlegacy-deprecated-no-warn --Xuse-deprecated-legacy-compiler +-Xforce-deprecated-legacy-compiler-usage -no-stdlib -libraries $TESTDATA_DIR$/wrongAbiVersionLib/wrongAbiLib.meta.js diff --git a/compiler/testData/integration/ant/js/additionalArguments/build.log.expected b/compiler/testData/integration/ant/js/additionalArguments/build.log.expected index 1a08494632b..dcf3f910d90 100644 --- a/compiler/testData/integration/ant/js/additionalArguments/build.log.expected +++ b/compiler/testData/integration/ant/js/additionalArguments/build.log.expected @@ -3,14 +3,6 @@ Buildfile: [TestData]/build.xml build: [kotlin2js] Compiling [[TestData]/hello.kt] => [[Temp]/out.js] -[kotlin2js] warning: ========== -[kotlin2js] This project currently uses the Kotlin/JS Legacy compiler backend, which has been deprecated and will be removed in a future release. -[kotlin2js] -[kotlin2js] Please migrate your project to the new IR-based compiler (https://kotl.in/jsir). -[kotlin2js] Because your build tool will not support the new Kotlin/JS compiler, you will also need to migrate to Gradle. -[kotlin2js] -[kotlin2js] You can continue to use the deprecated legacy compiler in the current version of the toolchain by providing the compiler option -Xuse-deprecated-legacy-compiler. -[kotlin2js] ========== BUILD SUCCESSFUL Total time: [time] diff --git a/compiler/testData/integration/ant/js/additionalArguments/build.xml b/compiler/testData/integration/ant/js/additionalArguments/build.xml index eb2579c8464..2dd18e3231e 100644 --- a/compiler/testData/integration/ant/js/additionalArguments/build.xml +++ b/compiler/testData/integration/ant/js/additionalArguments/build.xml @@ -4,7 +4,7 @@ - + diff --git a/compiler/testData/integration/ant/js/bothPrefixAndPostfix/build.log.expected b/compiler/testData/integration/ant/js/bothPrefixAndPostfix/build.log.expected index 9f06d710e6d..438f56679ca 100644 --- a/compiler/testData/integration/ant/js/bothPrefixAndPostfix/build.log.expected +++ b/compiler/testData/integration/ant/js/bothPrefixAndPostfix/build.log.expected @@ -3,14 +3,6 @@ Buildfile: [TestData]/build.xml build: [kotlin2js] Compiling [[TestData]/root1] => [[Temp]/out.js] -[kotlin2js] warning: ========== -[kotlin2js] This project currently uses the Kotlin/JS Legacy compiler backend, which has been deprecated and will be removed in a future release. -[kotlin2js] -[kotlin2js] Please migrate your project to the new IR-based compiler (https://kotl.in/jsir). -[kotlin2js] Because your build tool will not support the new Kotlin/JS compiler, you will also need to migrate to Gradle. -[kotlin2js] -[kotlin2js] You can continue to use the deprecated legacy compiler in the current version of the toolchain by providing the compiler option -Xuse-deprecated-legacy-compiler. -[kotlin2js] ========== BUILD SUCCESSFUL Total time: [time] diff --git a/compiler/testData/integration/ant/js/bothPrefixAndPostfix/build.xml b/compiler/testData/integration/ant/js/bothPrefixAndPostfix/build.xml index 5394734141e..89d7f349b78 100644 --- a/compiler/testData/integration/ant/js/bothPrefixAndPostfix/build.xml +++ b/compiler/testData/integration/ant/js/bothPrefixAndPostfix/build.xml @@ -6,7 +6,7 @@ output="${temp}/out.js" outputPrefix="${test.data}/prefix" outputPostfix="${test.data}/postfix"> - + diff --git a/compiler/testData/integration/ant/js/manySources/build.log.expected b/compiler/testData/integration/ant/js/manySources/build.log.expected index 0464b192c9f..3f1c2bc5850 100644 --- a/compiler/testData/integration/ant/js/manySources/build.log.expected +++ b/compiler/testData/integration/ant/js/manySources/build.log.expected @@ -3,14 +3,6 @@ Buildfile: [TestData]/build.xml build: [kotlin2js] Compiling [[TestData]/root1, [TestData]/bar.kt, [TestData]/root2/Foo.kt] => [[Temp]/out.js] -[kotlin2js] warning: ========== -[kotlin2js] This project currently uses the Kotlin/JS Legacy compiler backend, which has been deprecated and will be removed in a future release. -[kotlin2js] -[kotlin2js] Please migrate your project to the new IR-based compiler (https://kotl.in/jsir). -[kotlin2js] Because your build tool will not support the new Kotlin/JS compiler, you will also need to migrate to Gradle. -[kotlin2js] -[kotlin2js] You can continue to use the deprecated legacy compiler in the current version of the toolchain by providing the compiler option -Xuse-deprecated-legacy-compiler. -[kotlin2js] ========== BUILD SUCCESSFUL Total time: [time] diff --git a/compiler/testData/integration/ant/js/manySources/build.xml b/compiler/testData/integration/ant/js/manySources/build.xml index 07422dd6240..ad629c2290a 100644 --- a/compiler/testData/integration/ant/js/manySources/build.xml +++ b/compiler/testData/integration/ant/js/manySources/build.xml @@ -9,7 +9,7 @@ - + diff --git a/compiler/testData/integration/ant/js/outputPostfix/build.log.expected b/compiler/testData/integration/ant/js/outputPostfix/build.log.expected index 9f06d710e6d..438f56679ca 100644 --- a/compiler/testData/integration/ant/js/outputPostfix/build.log.expected +++ b/compiler/testData/integration/ant/js/outputPostfix/build.log.expected @@ -3,14 +3,6 @@ Buildfile: [TestData]/build.xml build: [kotlin2js] Compiling [[TestData]/root1] => [[Temp]/out.js] -[kotlin2js] warning: ========== -[kotlin2js] This project currently uses the Kotlin/JS Legacy compiler backend, which has been deprecated and will be removed in a future release. -[kotlin2js] -[kotlin2js] Please migrate your project to the new IR-based compiler (https://kotl.in/jsir). -[kotlin2js] Because your build tool will not support the new Kotlin/JS compiler, you will also need to migrate to Gradle. -[kotlin2js] -[kotlin2js] You can continue to use the deprecated legacy compiler in the current version of the toolchain by providing the compiler option -Xuse-deprecated-legacy-compiler. -[kotlin2js] ========== BUILD SUCCESSFUL Total time: [time] diff --git a/compiler/testData/integration/ant/js/outputPostfix/build.xml b/compiler/testData/integration/ant/js/outputPostfix/build.xml index d8fca68d8f5..6c6d2053156 100644 --- a/compiler/testData/integration/ant/js/outputPostfix/build.xml +++ b/compiler/testData/integration/ant/js/outputPostfix/build.xml @@ -3,7 +3,7 @@ - + diff --git a/compiler/testData/integration/ant/js/outputPrefix/build.log.expected b/compiler/testData/integration/ant/js/outputPrefix/build.log.expected index 9f06d710e6d..438f56679ca 100644 --- a/compiler/testData/integration/ant/js/outputPrefix/build.log.expected +++ b/compiler/testData/integration/ant/js/outputPrefix/build.log.expected @@ -3,14 +3,6 @@ Buildfile: [TestData]/build.xml build: [kotlin2js] Compiling [[TestData]/root1] => [[Temp]/out.js] -[kotlin2js] warning: ========== -[kotlin2js] This project currently uses the Kotlin/JS Legacy compiler backend, which has been deprecated and will be removed in a future release. -[kotlin2js] -[kotlin2js] Please migrate your project to the new IR-based compiler (https://kotl.in/jsir). -[kotlin2js] Because your build tool will not support the new Kotlin/JS compiler, you will also need to migrate to Gradle. -[kotlin2js] -[kotlin2js] You can continue to use the deprecated legacy compiler in the current version of the toolchain by providing the compiler option -Xuse-deprecated-legacy-compiler. -[kotlin2js] ========== BUILD SUCCESSFUL Total time: [time] diff --git a/compiler/testData/integration/ant/js/outputPrefix/build.xml b/compiler/testData/integration/ant/js/outputPrefix/build.xml index 30b7f132c66..66ae0430b47 100644 --- a/compiler/testData/integration/ant/js/outputPrefix/build.xml +++ b/compiler/testData/integration/ant/js/outputPrefix/build.xml @@ -3,7 +3,7 @@ - + diff --git a/compiler/testData/integration/ant/js/outputWithoutDirectory/build.log.expected b/compiler/testData/integration/ant/js/outputWithoutDirectory/build.log.expected index 2be6532b102..7a95e4fb045 100644 --- a/compiler/testData/integration/ant/js/outputWithoutDirectory/build.log.expected +++ b/compiler/testData/integration/ant/js/outputWithoutDirectory/build.log.expected @@ -2,14 +2,6 @@ OUT: Buildfile: [TestData]/build.xml build: - [java] warning: ========== - [java] This project currently uses the Kotlin/JS Legacy compiler backend, which has been deprecated and will be removed in a future release. - [java] - [java] Please migrate your project to the new IR-based compiler (https://kotl.in/jsir). - [java] Because your build tool will not support the new Kotlin/JS compiler, you will also need to migrate to Gradle. - [java] - [java] You can continue to use the deprecated legacy compiler in the current version of the toolchain by providing the compiler option -Xuse-deprecated-legacy-compiler. - [java] ========== BUILD SUCCESSFUL Total time: [time] diff --git a/compiler/testData/integration/ant/js/outputWithoutDirectory/build.xml b/compiler/testData/integration/ant/js/outputWithoutDirectory/build.xml index 7a5bb6f8bc1..3a6c4536623 100644 --- a/compiler/testData/integration/ant/js/outputWithoutDirectory/build.xml +++ b/compiler/testData/integration/ant/js/outputWithoutDirectory/build.xml @@ -6,10 +6,9 @@ - + - diff --git a/compiler/testData/integration/ant/js/simple/build.log.expected b/compiler/testData/integration/ant/js/simple/build.log.expected index 9f06d710e6d..438f56679ca 100644 --- a/compiler/testData/integration/ant/js/simple/build.log.expected +++ b/compiler/testData/integration/ant/js/simple/build.log.expected @@ -3,14 +3,6 @@ Buildfile: [TestData]/build.xml build: [kotlin2js] Compiling [[TestData]/root1] => [[Temp]/out.js] -[kotlin2js] warning: ========== -[kotlin2js] This project currently uses the Kotlin/JS Legacy compiler backend, which has been deprecated and will be removed in a future release. -[kotlin2js] -[kotlin2js] Please migrate your project to the new IR-based compiler (https://kotl.in/jsir). -[kotlin2js] Because your build tool will not support the new Kotlin/JS compiler, you will also need to migrate to Gradle. -[kotlin2js] -[kotlin2js] You can continue to use the deprecated legacy compiler in the current version of the toolchain by providing the compiler option -Xuse-deprecated-legacy-compiler. -[kotlin2js] ========== BUILD SUCCESSFUL Total time: [time] diff --git a/compiler/testData/integration/ant/js/simple/build.xml b/compiler/testData/integration/ant/js/simple/build.xml index 6f7a8bd1c04..d497ee35556 100644 --- a/compiler/testData/integration/ant/js/simple/build.xml +++ b/compiler/testData/integration/ant/js/simple/build.xml @@ -3,7 +3,7 @@ - + diff --git a/compiler/testData/integration/ant/js/simpleWithJsFileAsAnotherLib/build.log.expected b/compiler/testData/integration/ant/js/simpleWithJsFileAsAnotherLib/build.log.expected index 51002877374..c36a7c11434 100644 --- a/compiler/testData/integration/ant/js/simpleWithJsFileAsAnotherLib/build.log.expected +++ b/compiler/testData/integration/ant/js/simpleWithJsFileAsAnotherLib/build.log.expected @@ -4,23 +4,7 @@ Buildfile: [TestData]/build.xml build: [mkdir] Created dir: [Temp]/lib [kotlin2js] Compiling [[TestData]/jslib-example] => [[Temp]/lib/jslib-example.js] -[kotlin2js] warning: ========== -[kotlin2js] This project currently uses the Kotlin/JS Legacy compiler backend, which has been deprecated and will be removed in a future release. -[kotlin2js] -[kotlin2js] Please migrate your project to the new IR-based compiler (https://kotl.in/jsir). -[kotlin2js] Because your build tool will not support the new Kotlin/JS compiler, you will also need to migrate to Gradle. -[kotlin2js] -[kotlin2js] You can continue to use the deprecated legacy compiler in the current version of the toolchain by providing the compiler option -Xuse-deprecated-legacy-compiler. -[kotlin2js] ========== [kotlin2js] Compiling [[TestData]/root1] => [[Temp]/out.js] -[kotlin2js] warning: ========== -[kotlin2js] This project currently uses the Kotlin/JS Legacy compiler backend, which has been deprecated and will be removed in a future release. -[kotlin2js] -[kotlin2js] Please migrate your project to the new IR-based compiler (https://kotl.in/jsir). -[kotlin2js] Because your build tool will not support the new Kotlin/JS compiler, you will also need to migrate to Gradle. -[kotlin2js] -[kotlin2js] You can continue to use the deprecated legacy compiler in the current version of the toolchain by providing the compiler option -Xuse-deprecated-legacy-compiler. -[kotlin2js] ========== [copy] Copying 2 files to [Temp] BUILD SUCCESSFUL diff --git a/compiler/testData/integration/ant/js/simpleWithJsFileAsAnotherLib/build.xml b/compiler/testData/integration/ant/js/simpleWithJsFileAsAnotherLib/build.xml index 4c3b13218c7..cfceaf68459 100644 --- a/compiler/testData/integration/ant/js/simpleWithJsFileAsAnotherLib/build.xml +++ b/compiler/testData/integration/ant/js/simpleWithJsFileAsAnotherLib/build.xml @@ -6,14 +6,14 @@ - + - + diff --git a/compiler/testData/integration/ant/js/simpleWithJsFileAsAnotherLibModuleKind/build.log.expected b/compiler/testData/integration/ant/js/simpleWithJsFileAsAnotherLibModuleKind/build.log.expected index 461c1572ff0..3dc293a7e9d 100644 --- a/compiler/testData/integration/ant/js/simpleWithJsFileAsAnotherLibModuleKind/build.log.expected +++ b/compiler/testData/integration/ant/js/simpleWithJsFileAsAnotherLibModuleKind/build.log.expected @@ -4,23 +4,7 @@ Buildfile: [TestData]/build.xml build: [mkdir] Created dir: [Temp]/lib [kotlin2js] Compiling [[TestData]/jslib-example] => [[Temp]/lib/jslib-example.js] -[kotlin2js] warning: ========== -[kotlin2js] This project currently uses the Kotlin/JS Legacy compiler backend, which has been deprecated and will be removed in a future release. -[kotlin2js] -[kotlin2js] Please migrate your project to the new IR-based compiler (https://kotl.in/jsir). -[kotlin2js] Because your build tool will not support the new Kotlin/JS compiler, you will also need to migrate to Gradle. -[kotlin2js] -[kotlin2js] You can continue to use the deprecated legacy compiler in the current version of the toolchain by providing the compiler option -Xuse-deprecated-legacy-compiler. -[kotlin2js] ========== [kotlin2js] Compiling [[TestData]/root1] => [[Temp]/out.js] -[kotlin2js] warning: ========== -[kotlin2js] This project currently uses the Kotlin/JS Legacy compiler backend, which has been deprecated and will be removed in a future release. -[kotlin2js] -[kotlin2js] Please migrate your project to the new IR-based compiler (https://kotl.in/jsir). -[kotlin2js] Because your build tool will not support the new Kotlin/JS compiler, you will also need to migrate to Gradle. -[kotlin2js] -[kotlin2js] You can continue to use the deprecated legacy compiler in the current version of the toolchain by providing the compiler option -Xuse-deprecated-legacy-compiler. -[kotlin2js] ========== [copy] Copying 2 files to [Temp] [copy] Copying 1 file to [Temp] diff --git a/compiler/testData/integration/ant/js/simpleWithJsFileAsAnotherLibModuleKind/build.xml b/compiler/testData/integration/ant/js/simpleWithJsFileAsAnotherLibModuleKind/build.xml index 285ae1eeddf..3ce340f7821 100644 --- a/compiler/testData/integration/ant/js/simpleWithJsFileAsAnotherLibModuleKind/build.xml +++ b/compiler/testData/integration/ant/js/simpleWithJsFileAsAnotherLibModuleKind/build.xml @@ -6,14 +6,14 @@ - + - + diff --git a/compiler/testData/integration/ant/js/simpleWithJsFilesWithTwoModulesAsLibrary/build.log.expected b/compiler/testData/integration/ant/js/simpleWithJsFilesWithTwoModulesAsLibrary/build.log.expected index 2ba32824de3..b67fc554192 100644 --- a/compiler/testData/integration/ant/js/simpleWithJsFilesWithTwoModulesAsLibrary/build.log.expected +++ b/compiler/testData/integration/ant/js/simpleWithJsFilesWithTwoModulesAsLibrary/build.log.expected @@ -4,36 +4,12 @@ Buildfile: [TestData]/build.xml build: [mkdir] Created dir: [Temp]/lib [kotlin2js] Compiling [[TestData]/jslib-example1] => [[Temp]/lib/jslib-example1.js] -[kotlin2js] warning: ========== -[kotlin2js] This project currently uses the Kotlin/JS Legacy compiler backend, which has been deprecated and will be removed in a future release. -[kotlin2js] -[kotlin2js] Please migrate your project to the new IR-based compiler (https://kotl.in/jsir). -[kotlin2js] Because your build tool will not support the new Kotlin/JS compiler, you will also need to migrate to Gradle. -[kotlin2js] -[kotlin2js] You can continue to use the deprecated legacy compiler in the current version of the toolchain by providing the compiler option -Xuse-deprecated-legacy-compiler. -[kotlin2js] ========== [kotlin2js] Compiling [[TestData]/jslib-example2] => [[Temp]/lib/jslib-example2.js] -[kotlin2js] warning: ========== -[kotlin2js] This project currently uses the Kotlin/JS Legacy compiler backend, which has been deprecated and will be removed in a future release. -[kotlin2js] -[kotlin2js] Please migrate your project to the new IR-based compiler (https://kotl.in/jsir). -[kotlin2js] Because your build tool will not support the new Kotlin/JS compiler, you will also need to migrate to Gradle. -[kotlin2js] -[kotlin2js] You can continue to use the deprecated legacy compiler in the current version of the toolchain by providing the compiler option -Xuse-deprecated-legacy-compiler. -[kotlin2js] ========== [delete] Deleting: [Temp]/lib/jslib-example1.js [delete] Deleting: [Temp]/lib/jslib-example2.js [delete] Deleting: [Temp]/lib/jslib-example1.meta.js [delete] Deleting: [Temp]/lib/jslib-example2.meta.js [kotlin2js] Compiling [[TestData]/root1] => [[Temp]/out.js] -[kotlin2js] warning: ========== -[kotlin2js] This project currently uses the Kotlin/JS Legacy compiler backend, which has been deprecated and will be removed in a future release. -[kotlin2js] -[kotlin2js] Please migrate your project to the new IR-based compiler (https://kotl.in/jsir). -[kotlin2js] Because your build tool will not support the new Kotlin/JS compiler, you will also need to migrate to Gradle. -[kotlin2js] -[kotlin2js] You can continue to use the deprecated legacy compiler in the current version of the toolchain by providing the compiler option -Xuse-deprecated-legacy-compiler. -[kotlin2js] ========== [copy] Copying 1 file to [Temp] BUILD SUCCESSFUL diff --git a/compiler/testData/integration/ant/js/simpleWithJsFilesWithTwoModulesAsLibrary/build.xml b/compiler/testData/integration/ant/js/simpleWithJsFilesWithTwoModulesAsLibrary/build.xml index 67b1089d9ea..81696d2a5f4 100644 --- a/compiler/testData/integration/ant/js/simpleWithJsFilesWithTwoModulesAsLibrary/build.xml +++ b/compiler/testData/integration/ant/js/simpleWithJsFilesWithTwoModulesAsLibrary/build.xml @@ -7,13 +7,13 @@ - + - + @@ -32,7 +32,7 @@ - + diff --git a/compiler/testData/integration/ant/js/simpleWithMain/build.log.expected b/compiler/testData/integration/ant/js/simpleWithMain/build.log.expected index 9f06d710e6d..438f56679ca 100644 --- a/compiler/testData/integration/ant/js/simpleWithMain/build.log.expected +++ b/compiler/testData/integration/ant/js/simpleWithMain/build.log.expected @@ -3,14 +3,6 @@ Buildfile: [TestData]/build.xml build: [kotlin2js] Compiling [[TestData]/root1] => [[Temp]/out.js] -[kotlin2js] warning: ========== -[kotlin2js] This project currently uses the Kotlin/JS Legacy compiler backend, which has been deprecated and will be removed in a future release. -[kotlin2js] -[kotlin2js] Please migrate your project to the new IR-based compiler (https://kotl.in/jsir). -[kotlin2js] Because your build tool will not support the new Kotlin/JS compiler, you will also need to migrate to Gradle. -[kotlin2js] -[kotlin2js] You can continue to use the deprecated legacy compiler in the current version of the toolchain by providing the compiler option -Xuse-deprecated-legacy-compiler. -[kotlin2js] ========== BUILD SUCCESSFUL Total time: [time] diff --git a/compiler/testData/integration/ant/js/simpleWithMain/build.xml b/compiler/testData/integration/ant/js/simpleWithMain/build.xml index 6f7a8bd1c04..d497ee35556 100644 --- a/compiler/testData/integration/ant/js/simpleWithMain/build.xml +++ b/compiler/testData/integration/ant/js/simpleWithMain/build.xml @@ -3,7 +3,7 @@ - + diff --git a/compiler/testData/integration/ant/js/simpleWithMainFQArgs/build.log.expected b/compiler/testData/integration/ant/js/simpleWithMainFQArgs/build.log.expected index 9f06d710e6d..438f56679ca 100644 --- a/compiler/testData/integration/ant/js/simpleWithMainFQArgs/build.log.expected +++ b/compiler/testData/integration/ant/js/simpleWithMainFQArgs/build.log.expected @@ -3,14 +3,6 @@ Buildfile: [TestData]/build.xml build: [kotlin2js] Compiling [[TestData]/root1] => [[Temp]/out.js] -[kotlin2js] warning: ========== -[kotlin2js] This project currently uses the Kotlin/JS Legacy compiler backend, which has been deprecated and will be removed in a future release. -[kotlin2js] -[kotlin2js] Please migrate your project to the new IR-based compiler (https://kotl.in/jsir). -[kotlin2js] Because your build tool will not support the new Kotlin/JS compiler, you will also need to migrate to Gradle. -[kotlin2js] -[kotlin2js] You can continue to use the deprecated legacy compiler in the current version of the toolchain by providing the compiler option -Xuse-deprecated-legacy-compiler. -[kotlin2js] ========== BUILD SUCCESSFUL Total time: [time] diff --git a/compiler/testData/integration/ant/js/simpleWithMainFQArgs/build.xml b/compiler/testData/integration/ant/js/simpleWithMainFQArgs/build.xml index 6f7a8bd1c04..d497ee35556 100644 --- a/compiler/testData/integration/ant/js/simpleWithMainFQArgs/build.xml +++ b/compiler/testData/integration/ant/js/simpleWithMainFQArgs/build.xml @@ -3,7 +3,7 @@ - + diff --git a/compiler/testData/integration/ant/js/simpleWithTwoJsFilesAsLibraries/build.log.expected b/compiler/testData/integration/ant/js/simpleWithTwoJsFilesAsLibraries/build.log.expected index 4c4067a7c85..aff5c825abe 100644 --- a/compiler/testData/integration/ant/js/simpleWithTwoJsFilesAsLibraries/build.log.expected +++ b/compiler/testData/integration/ant/js/simpleWithTwoJsFilesAsLibraries/build.log.expected @@ -4,32 +4,8 @@ Buildfile: [TestData]/build.xml build: [mkdir] Created dir: [Temp]/lib [kotlin2js] Compiling [[TestData]/jslib-example1] => [[Temp]/lib/jslib-example1.js] -[kotlin2js] warning: ========== -[kotlin2js] This project currently uses the Kotlin/JS Legacy compiler backend, which has been deprecated and will be removed in a future release. -[kotlin2js] -[kotlin2js] Please migrate your project to the new IR-based compiler (https://kotl.in/jsir). -[kotlin2js] Because your build tool will not support the new Kotlin/JS compiler, you will also need to migrate to Gradle. -[kotlin2js] -[kotlin2js] You can continue to use the deprecated legacy compiler in the current version of the toolchain by providing the compiler option -Xuse-deprecated-legacy-compiler. -[kotlin2js] ========== [kotlin2js] Compiling [[TestData]/jslib-example2] => [[Temp]/lib/jslib-example2.js] -[kotlin2js] warning: ========== -[kotlin2js] This project currently uses the Kotlin/JS Legacy compiler backend, which has been deprecated and will be removed in a future release. -[kotlin2js] -[kotlin2js] Please migrate your project to the new IR-based compiler (https://kotl.in/jsir). -[kotlin2js] Because your build tool will not support the new Kotlin/JS compiler, you will also need to migrate to Gradle. -[kotlin2js] -[kotlin2js] You can continue to use the deprecated legacy compiler in the current version of the toolchain by providing the compiler option -Xuse-deprecated-legacy-compiler. -[kotlin2js] ========== [kotlin2js] Compiling [[TestData]/root1] => [[Temp]/out.js] -[kotlin2js] warning: ========== -[kotlin2js] This project currently uses the Kotlin/JS Legacy compiler backend, which has been deprecated and will be removed in a future release. -[kotlin2js] -[kotlin2js] Please migrate your project to the new IR-based compiler (https://kotl.in/jsir). -[kotlin2js] Because your build tool will not support the new Kotlin/JS compiler, you will also need to migrate to Gradle. -[kotlin2js] -[kotlin2js] You can continue to use the deprecated legacy compiler in the current version of the toolchain by providing the compiler option -Xuse-deprecated-legacy-compiler. -[kotlin2js] ========== [copy] Copying 4 files to [Temp] BUILD SUCCESSFUL diff --git a/compiler/testData/integration/ant/js/simpleWithTwoJsFilesAsLibraries/build.xml b/compiler/testData/integration/ant/js/simpleWithTwoJsFilesAsLibraries/build.xml index 9bb1f305b0e..737efcce712 100644 --- a/compiler/testData/integration/ant/js/simpleWithTwoJsFilesAsLibraries/build.xml +++ b/compiler/testData/integration/ant/js/simpleWithTwoJsFilesAsLibraries/build.xml @@ -7,13 +7,13 @@ - + - + @@ -21,7 +21,7 @@ - + diff --git a/compiler/testData/integration/ant/js/simpleWithVarargMain/build.log.expected b/compiler/testData/integration/ant/js/simpleWithVarargMain/build.log.expected index 9f06d710e6d..438f56679ca 100644 --- a/compiler/testData/integration/ant/js/simpleWithVarargMain/build.log.expected +++ b/compiler/testData/integration/ant/js/simpleWithVarargMain/build.log.expected @@ -3,14 +3,6 @@ Buildfile: [TestData]/build.xml build: [kotlin2js] Compiling [[TestData]/root1] => [[Temp]/out.js] -[kotlin2js] warning: ========== -[kotlin2js] This project currently uses the Kotlin/JS Legacy compiler backend, which has been deprecated and will be removed in a future release. -[kotlin2js] -[kotlin2js] Please migrate your project to the new IR-based compiler (https://kotl.in/jsir). -[kotlin2js] Because your build tool will not support the new Kotlin/JS compiler, you will also need to migrate to Gradle. -[kotlin2js] -[kotlin2js] You can continue to use the deprecated legacy compiler in the current version of the toolchain by providing the compiler option -Xuse-deprecated-legacy-compiler. -[kotlin2js] ========== BUILD SUCCESSFUL Total time: [time] diff --git a/compiler/testData/integration/ant/js/simpleWithVarargMain/build.xml b/compiler/testData/integration/ant/js/simpleWithVarargMain/build.xml index 6f7a8bd1c04..d497ee35556 100644 --- a/compiler/testData/integration/ant/js/simpleWithVarargMain/build.xml +++ b/compiler/testData/integration/ant/js/simpleWithVarargMain/build.xml @@ -3,7 +3,7 @@ - + diff --git a/compiler/testData/integration/ant/js/simpleWithoutStdlib/build.log.expected b/compiler/testData/integration/ant/js/simpleWithoutStdlib/build.log.expected index 9f06d710e6d..438f56679ca 100644 --- a/compiler/testData/integration/ant/js/simpleWithoutStdlib/build.log.expected +++ b/compiler/testData/integration/ant/js/simpleWithoutStdlib/build.log.expected @@ -3,14 +3,6 @@ Buildfile: [TestData]/build.xml build: [kotlin2js] Compiling [[TestData]/root1] => [[Temp]/out.js] -[kotlin2js] warning: ========== -[kotlin2js] This project currently uses the Kotlin/JS Legacy compiler backend, which has been deprecated and will be removed in a future release. -[kotlin2js] -[kotlin2js] Please migrate your project to the new IR-based compiler (https://kotl.in/jsir). -[kotlin2js] Because your build tool will not support the new Kotlin/JS compiler, you will also need to migrate to Gradle. -[kotlin2js] -[kotlin2js] You can continue to use the deprecated legacy compiler in the current version of the toolchain by providing the compiler option -Xuse-deprecated-legacy-compiler. -[kotlin2js] ========== BUILD SUCCESSFUL Total time: [time] diff --git a/compiler/testData/integration/ant/js/simpleWithoutStdlib/build.xml b/compiler/testData/integration/ant/js/simpleWithoutStdlib/build.xml index 43edff5572e..a827ceb9e48 100644 --- a/compiler/testData/integration/ant/js/simpleWithoutStdlib/build.xml +++ b/compiler/testData/integration/ant/js/simpleWithoutStdlib/build.xml @@ -3,7 +3,7 @@ - + diff --git a/compiler/testData/integration/ant/js/simpleWithoutStdlibAndFolderAsAnotherLib/build.log.expected b/compiler/testData/integration/ant/js/simpleWithoutStdlibAndFolderAsAnotherLib/build.log.expected index 51002877374..c36a7c11434 100644 --- a/compiler/testData/integration/ant/js/simpleWithoutStdlibAndFolderAsAnotherLib/build.log.expected +++ b/compiler/testData/integration/ant/js/simpleWithoutStdlibAndFolderAsAnotherLib/build.log.expected @@ -4,23 +4,7 @@ Buildfile: [TestData]/build.xml build: [mkdir] Created dir: [Temp]/lib [kotlin2js] Compiling [[TestData]/jslib-example] => [[Temp]/lib/jslib-example.js] -[kotlin2js] warning: ========== -[kotlin2js] This project currently uses the Kotlin/JS Legacy compiler backend, which has been deprecated and will be removed in a future release. -[kotlin2js] -[kotlin2js] Please migrate your project to the new IR-based compiler (https://kotl.in/jsir). -[kotlin2js] Because your build tool will not support the new Kotlin/JS compiler, you will also need to migrate to Gradle. -[kotlin2js] -[kotlin2js] You can continue to use the deprecated legacy compiler in the current version of the toolchain by providing the compiler option -Xuse-deprecated-legacy-compiler. -[kotlin2js] ========== [kotlin2js] Compiling [[TestData]/root1] => [[Temp]/out.js] -[kotlin2js] warning: ========== -[kotlin2js] This project currently uses the Kotlin/JS Legacy compiler backend, which has been deprecated and will be removed in a future release. -[kotlin2js] -[kotlin2js] Please migrate your project to the new IR-based compiler (https://kotl.in/jsir). -[kotlin2js] Because your build tool will not support the new Kotlin/JS compiler, you will also need to migrate to Gradle. -[kotlin2js] -[kotlin2js] You can continue to use the deprecated legacy compiler in the current version of the toolchain by providing the compiler option -Xuse-deprecated-legacy-compiler. -[kotlin2js] ========== [copy] Copying 2 files to [Temp] BUILD SUCCESSFUL diff --git a/compiler/testData/integration/ant/js/simpleWithoutStdlibAndFolderAsAnotherLib/build.xml b/compiler/testData/integration/ant/js/simpleWithoutStdlibAndFolderAsAnotherLib/build.xml index fbd93544c1c..9007f6d0d2b 100644 --- a/compiler/testData/integration/ant/js/simpleWithoutStdlibAndFolderAsAnotherLib/build.xml +++ b/compiler/testData/integration/ant/js/simpleWithoutStdlibAndFolderAsAnotherLib/build.xml @@ -6,14 +6,14 @@ - + - + diff --git a/compiler/testData/integration/ant/js/simpleWithoutStdlibAndJsFileAsAnotherLib/build.log.expected b/compiler/testData/integration/ant/js/simpleWithoutStdlibAndJsFileAsAnotherLib/build.log.expected index 51002877374..c36a7c11434 100644 --- a/compiler/testData/integration/ant/js/simpleWithoutStdlibAndJsFileAsAnotherLib/build.log.expected +++ b/compiler/testData/integration/ant/js/simpleWithoutStdlibAndJsFileAsAnotherLib/build.log.expected @@ -4,23 +4,7 @@ Buildfile: [TestData]/build.xml build: [mkdir] Created dir: [Temp]/lib [kotlin2js] Compiling [[TestData]/jslib-example] => [[Temp]/lib/jslib-example.js] -[kotlin2js] warning: ========== -[kotlin2js] This project currently uses the Kotlin/JS Legacy compiler backend, which has been deprecated and will be removed in a future release. -[kotlin2js] -[kotlin2js] Please migrate your project to the new IR-based compiler (https://kotl.in/jsir). -[kotlin2js] Because your build tool will not support the new Kotlin/JS compiler, you will also need to migrate to Gradle. -[kotlin2js] -[kotlin2js] You can continue to use the deprecated legacy compiler in the current version of the toolchain by providing the compiler option -Xuse-deprecated-legacy-compiler. -[kotlin2js] ========== [kotlin2js] Compiling [[TestData]/root1] => [[Temp]/out.js] -[kotlin2js] warning: ========== -[kotlin2js] This project currently uses the Kotlin/JS Legacy compiler backend, which has been deprecated and will be removed in a future release. -[kotlin2js] -[kotlin2js] Please migrate your project to the new IR-based compiler (https://kotl.in/jsir). -[kotlin2js] Because your build tool will not support the new Kotlin/JS compiler, you will also need to migrate to Gradle. -[kotlin2js] -[kotlin2js] You can continue to use the deprecated legacy compiler in the current version of the toolchain by providing the compiler option -Xuse-deprecated-legacy-compiler. -[kotlin2js] ========== [copy] Copying 2 files to [Temp] BUILD SUCCESSFUL diff --git a/compiler/testData/integration/ant/js/simpleWithoutStdlibAndJsFileAsAnotherLib/build.xml b/compiler/testData/integration/ant/js/simpleWithoutStdlibAndJsFileAsAnotherLib/build.xml index 4f18e667a1c..e3736261c1a 100644 --- a/compiler/testData/integration/ant/js/simpleWithoutStdlibAndJsFileAsAnotherLib/build.xml +++ b/compiler/testData/integration/ant/js/simpleWithoutStdlibAndJsFileAsAnotherLib/build.xml @@ -6,14 +6,14 @@ - + - + diff --git a/compiler/testData/integration/ant/js/sourceMap/build.log.expected b/compiler/testData/integration/ant/js/sourceMap/build.log.expected index 9f06d710e6d..438f56679ca 100644 --- a/compiler/testData/integration/ant/js/sourceMap/build.log.expected +++ b/compiler/testData/integration/ant/js/sourceMap/build.log.expected @@ -3,14 +3,6 @@ Buildfile: [TestData]/build.xml build: [kotlin2js] Compiling [[TestData]/root1] => [[Temp]/out.js] -[kotlin2js] warning: ========== -[kotlin2js] This project currently uses the Kotlin/JS Legacy compiler backend, which has been deprecated and will be removed in a future release. -[kotlin2js] -[kotlin2js] Please migrate your project to the new IR-based compiler (https://kotl.in/jsir). -[kotlin2js] Because your build tool will not support the new Kotlin/JS compiler, you will also need to migrate to Gradle. -[kotlin2js] -[kotlin2js] You can continue to use the deprecated legacy compiler in the current version of the toolchain by providing the compiler option -Xuse-deprecated-legacy-compiler. -[kotlin2js] ========== BUILD SUCCESSFUL Total time: [time] diff --git a/compiler/testData/integration/ant/js/sourceMap/build.xml b/compiler/testData/integration/ant/js/sourceMap/build.xml index 51dc90431c5..e0cdedaaf14 100644 --- a/compiler/testData/integration/ant/js/sourceMap/build.xml +++ b/compiler/testData/integration/ant/js/sourceMap/build.xml @@ -3,7 +3,7 @@ - + diff --git a/compiler/testData/integration/ant/js/suppressWarnings/build.log.expected b/compiler/testData/integration/ant/js/suppressWarnings/build.log.expected index 9f06d710e6d..438f56679ca 100644 --- a/compiler/testData/integration/ant/js/suppressWarnings/build.log.expected +++ b/compiler/testData/integration/ant/js/suppressWarnings/build.log.expected @@ -3,14 +3,6 @@ Buildfile: [TestData]/build.xml build: [kotlin2js] Compiling [[TestData]/root1] => [[Temp]/out.js] -[kotlin2js] warning: ========== -[kotlin2js] This project currently uses the Kotlin/JS Legacy compiler backend, which has been deprecated and will be removed in a future release. -[kotlin2js] -[kotlin2js] Please migrate your project to the new IR-based compiler (https://kotl.in/jsir). -[kotlin2js] Because your build tool will not support the new Kotlin/JS compiler, you will also need to migrate to Gradle. -[kotlin2js] -[kotlin2js] You can continue to use the deprecated legacy compiler in the current version of the toolchain by providing the compiler option -Xuse-deprecated-legacy-compiler. -[kotlin2js] ========== BUILD SUCCESSFUL Total time: [time] diff --git a/compiler/testData/integration/ant/js/suppressWarnings/build.xml b/compiler/testData/integration/ant/js/suppressWarnings/build.xml index 0fb13a8dd19..e1727965c10 100644 --- a/compiler/testData/integration/ant/js/suppressWarnings/build.xml +++ b/compiler/testData/integration/ant/js/suppressWarnings/build.xml @@ -3,7 +3,7 @@ - + diff --git a/compiler/testData/integration/ant/js/verbose/build.log.expected b/compiler/testData/integration/ant/js/verbose/build.log.expected index 0f7ab7a4724..47e94efe601 100644 --- a/compiler/testData/integration/ant/js/verbose/build.log.expected +++ b/compiler/testData/integration/ant/js/verbose/build.log.expected @@ -6,14 +6,6 @@ build: [kotlin2js] logging: using Kotlin home directory [KotlinProjectHome]/dist/kotlinc [kotlin2js] logging: exception on loading scripting plugin: java.lang.ClassNotFoundException: org.jetbrains.kotlin.scripting.compiler.plugin.ScriptingCompilerConfigurationComponentRegistrar [kotlin2js] logging: compiling source files: [TestData]/root1/foo.kt -[kotlin2js] warning: ========== -[kotlin2js] This project currently uses the Kotlin/JS Legacy compiler backend, which has been deprecated and will be removed in a future release. -[kotlin2js] -[kotlin2js] Please migrate your project to the new IR-based compiler (https://kotl.in/jsir). -[kotlin2js] Because your build tool will not support the new Kotlin/JS compiler, you will also need to migrate to Gradle. -[kotlin2js] -[kotlin2js] You can continue to use the deprecated legacy compiler in the current version of the toolchain by providing the compiler option -Xuse-deprecated-legacy-compiler. -[kotlin2js] ========== BUILD SUCCESSFUL Total time: [time] diff --git a/compiler/testData/integration/ant/js/verbose/build.xml b/compiler/testData/integration/ant/js/verbose/build.xml index 432bc4181e2..b275d4415a4 100644 --- a/compiler/testData/integration/ant/js/verbose/build.xml +++ b/compiler/testData/integration/ant/js/verbose/build.xml @@ -3,7 +3,7 @@ - + diff --git a/compiler/testData/integration/ant/js/version/build.log.expected b/compiler/testData/integration/ant/js/version/build.log.expected index b181c43df7f..d7e22d9ebdf 100644 --- a/compiler/testData/integration/ant/js/version/build.log.expected +++ b/compiler/testData/integration/ant/js/version/build.log.expected @@ -4,14 +4,6 @@ Buildfile: [TestData]/build.xml build: [kotlin2js] Compiling [[TestData]/root1] => [[Temp]/out.js] [kotlin2js] info: kotlinc-js [KotlinVersion] (JRE [JREVersion]) -[kotlin2js] warning: ========== -[kotlin2js] This project currently uses the Kotlin/JS Legacy compiler backend, which has been deprecated and will be removed in a future release. -[kotlin2js] -[kotlin2js] Please migrate your project to the new IR-based compiler (https://kotl.in/jsir). -[kotlin2js] Because your build tool will not support the new Kotlin/JS compiler, you will also need to migrate to Gradle. -[kotlin2js] -[kotlin2js] You can continue to use the deprecated legacy compiler in the current version of the toolchain by providing the compiler option -Xuse-deprecated-legacy-compiler. -[kotlin2js] ========== BUILD SUCCESSFUL Total time: [time] diff --git a/compiler/testData/integration/ant/js/version/build.xml b/compiler/testData/integration/ant/js/version/build.xml index 3915a0de254..8e5674cf26d 100644 --- a/compiler/testData/integration/ant/js/version/build.xml +++ b/compiler/testData/integration/ant/js/version/build.xml @@ -3,7 +3,7 @@ - + diff --git a/compiler/testData/multiplatform/contracts/output.txt b/compiler/testData/multiplatform/contracts/output.txt index 44acb8b1b07..ac1ad3921a5 100644 --- a/compiler/testData/multiplatform/contracts/output.txt +++ b/compiler/testData/multiplatform/contracts/output.txt @@ -9,11 +9,3 @@ Output: -- JS -- Exit code: OK Output: -warning: ========== -This project currently uses the Kotlin/JS Legacy compiler backend, which has been deprecated and will be removed in a future release. - -Please migrate your project to the new IR-based compiler (https://kotl.in/jsir). -Because your build tool will not support the new Kotlin/JS compiler, you will also need to migrate to Gradle. - -You can continue to use the deprecated legacy compiler in the current version of the toolchain by providing the compiler option -Xuse-deprecated-legacy-compiler. -========== diff --git a/compiler/testData/multiplatform/funInterfaces/output.txt b/compiler/testData/multiplatform/funInterfaces/output.txt index 44acb8b1b07..ac1ad3921a5 100644 --- a/compiler/testData/multiplatform/funInterfaces/output.txt +++ b/compiler/testData/multiplatform/funInterfaces/output.txt @@ -9,11 +9,3 @@ Output: -- JS -- Exit code: OK Output: -warning: ========== -This project currently uses the Kotlin/JS Legacy compiler backend, which has been deprecated and will be removed in a future release. - -Please migrate your project to the new IR-based compiler (https://kotl.in/jsir). -Because your build tool will not support the new Kotlin/JS compiler, you will also need to migrate to Gradle. - -You can continue to use the deprecated legacy compiler in the current version of the toolchain by providing the compiler option -Xuse-deprecated-legacy-compiler. -========== diff --git a/compiler/testData/multiplatform/inlineClasses/output.txt b/compiler/testData/multiplatform/inlineClasses/output.txt index 12b24a3c7f3..1a5a46f7089 100644 --- a/compiler/testData/multiplatform/inlineClasses/output.txt +++ b/compiler/testData/multiplatform/inlineClasses/output.txt @@ -21,14 +21,6 @@ actual class Foo2 actual constructor(actual val y: String) -- JS -- Exit code: COMPILATION_ERROR Output: -warning: ========== -This project currently uses the Kotlin/JS Legacy compiler backend, which has been deprecated and will be removed in a future release. - -Please migrate your project to the new IR-based compiler (https://kotl.in/jsir). -Because your build tool will not support the new Kotlin/JS compiler, you will also need to migrate to Gradle. - -You can continue to use the deprecated legacy compiler in the current version of the toolchain by providing the compiler option -Xuse-deprecated-legacy-compiler. -========== compiler/testData/multiplatform/inlineClasses/js.kt:5:1: error: actual class 'Foo2' has no corresponding expected declaration The following declaration is incompatible because modifiers are different (companion, inner, inline): public final expect inline class Foo2 diff --git a/compiler/testData/multiplatform/jsNameClash/output.txt b/compiler/testData/multiplatform/jsNameClash/output.txt index 7c8ca5ce112..6b3f5dfc27f 100644 --- a/compiler/testData/multiplatform/jsNameClash/output.txt +++ b/compiler/testData/multiplatform/jsNameClash/output.txt @@ -5,11 +5,3 @@ Output: -- JS -- Exit code: OK Output: -warning: ========== -This project currently uses the Kotlin/JS Legacy compiler backend, which has been deprecated and will be removed in a future release. - -Please migrate your project to the new IR-based compiler (https://kotl.in/jsir). -Because your build tool will not support the new Kotlin/JS compiler, you will also need to migrate to Gradle. - -You can continue to use the deprecated legacy compiler in the current version of the toolchain by providing the compiler option -Xuse-deprecated-legacy-compiler. -========== diff --git a/compiler/testData/multiplatform/optionalExpectation/output.txt b/compiler/testData/multiplatform/optionalExpectation/output.txt index 44acb8b1b07..ac1ad3921a5 100644 --- a/compiler/testData/multiplatform/optionalExpectation/output.txt +++ b/compiler/testData/multiplatform/optionalExpectation/output.txt @@ -9,11 +9,3 @@ Output: -- JS -- Exit code: OK Output: -warning: ========== -This project currently uses the Kotlin/JS Legacy compiler backend, which has been deprecated and will be removed in a future release. - -Please migrate your project to the new IR-based compiler (https://kotl.in/jsir). -Because your build tool will not support the new Kotlin/JS compiler, you will also need to migrate to Gradle. - -You can continue to use the deprecated legacy compiler in the current version of the toolchain by providing the compiler option -Xuse-deprecated-legacy-compiler. -========== diff --git a/compiler/testData/multiplatform/simple/output.txt b/compiler/testData/multiplatform/simple/output.txt index 44acb8b1b07..ac1ad3921a5 100644 --- a/compiler/testData/multiplatform/simple/output.txt +++ b/compiler/testData/multiplatform/simple/output.txt @@ -9,11 +9,3 @@ Output: -- JS -- Exit code: OK Output: -warning: ========== -This project currently uses the Kotlin/JS Legacy compiler backend, which has been deprecated and will be removed in a future release. - -Please migrate your project to the new IR-based compiler (https://kotl.in/jsir). -Because your build tool will not support the new Kotlin/JS compiler, you will also need to migrate to Gradle. - -You can continue to use the deprecated legacy compiler in the current version of the toolchain by providing the compiler option -Xuse-deprecated-legacy-compiler. -========== diff --git a/compiler/tests-common/tests/org/jetbrains/kotlin/cli/AbstractCliTest.java b/compiler/tests-common/tests/org/jetbrains/kotlin/cli/AbstractCliTest.java index 9a3a22cdc91..d7c2f37f73a 100644 --- a/compiler/tests-common/tests/org/jetbrains/kotlin/cli/AbstractCliTest.java +++ b/compiler/tests-common/tests/org/jetbrains/kotlin/cli/AbstractCliTest.java @@ -293,20 +293,13 @@ public abstract class AbstractCliTest extends TestCaseWithTmpdir { } protected void doJsTest(@NotNull String fileName) { - setupOldJsCompiler(fileName); doTest(fileName, new K2JSCompiler()); } protected void doJsDceTest(@NotNull String fileName) { - setupOldJsCompiler(fileName); doTest(fileName, new K2JSDce()); } - private void setupOldJsCompiler(String fileName) { - if (fileName == null) return; - CompilerSystemProperties.KOTLIN_JS_COMPILER_LEGACY_FORCE_ENABLED.setValue(Boolean.toString(!fileName.contains("_strict"))); - } - protected void doMetadataTest(@NotNull String fileName) { doTest(fileName, new K2MetadataCompiler()); } diff --git a/compiler/tests-common/tests/org/jetbrains/kotlin/integration/AbstractAntTaskTest.java b/compiler/tests-common/tests/org/jetbrains/kotlin/integration/AbstractAntTaskTest.java index 33b100c4509..92422c297a4 100644 --- a/compiler/tests-common/tests/org/jetbrains/kotlin/integration/AbstractAntTaskTest.java +++ b/compiler/tests-common/tests/org/jetbrains/kotlin/integration/AbstractAntTaskTest.java @@ -40,7 +40,6 @@ public abstract class AbstractAntTaskTest extends KotlinIntegrationTestBase { testDataDir, "build.log", "-Xmx256m", - "-D" + CompilerSystemProperties.KOTLIN_JS_COMPILER_LEGACY_FORCE_ENABLED.getProperty() + "=true", "-Dkotlin.lib=" + KotlinIntegrationTestBase.getCompilerLib(), "-Dkotlin.runtime.jar=" + ForTestCompileRuntime.runtimeJarForTests().getAbsolutePath(), "-Dkotlin.reflect.jar=" + ForTestCompileRuntime.reflectJarForTests().getAbsolutePath(), diff --git a/compiler/tests-common/tests/org/jetbrains/kotlin/jvm/compiler/AbstractKotlinCompilerIntegrationTest.kt b/compiler/tests-common/tests/org/jetbrains/kotlin/jvm/compiler/AbstractKotlinCompilerIntegrationTest.kt index 3af75c525ac..4d2b8fdeabd 100644 --- a/compiler/tests-common/tests/org/jetbrains/kotlin/jvm/compiler/AbstractKotlinCompilerIntegrationTest.kt +++ b/compiler/tests-common/tests/org/jetbrains/kotlin/jvm/compiler/AbstractKotlinCompilerIntegrationTest.kt @@ -163,13 +163,10 @@ abstract class AbstractKotlinCompilerIntegrationTest : TestCaseWithTmpdir() { args.add("-libraries") args.add(classpath.joinToString(File.pathSeparator)) } - args.add("-Xlegacy-deprecated-no-warn") - args.add("-Xuse-deprecated-legacy-compiler") + args.add("-Xforce-deprecated-legacy-compiler-usage") args.add("-output") args.add(output.path) args.add("-meta-info") - // TODO: It will be deleted after all of our internal vendors will use the new Kotlin/JS compiler - CompilerSystemProperties.KOTLIN_JS_COMPILER_LEGACY_FORCE_ENABLED.value = "true" } else if (compiler is K2JVMCompiler || compiler is K2MetadataCompiler) { if (classpath.isNotEmpty()) { args.add("-classpath") diff --git a/compiler/tests-gen/org/jetbrains/kotlin/cli/CliTestGenerated.java b/compiler/tests-gen/org/jetbrains/kotlin/cli/CliTestGenerated.java index 2dde6515d8b..b63b6c9daca 100644 --- a/compiler/tests-gen/org/jetbrains/kotlin/cli/CliTestGenerated.java +++ b/compiler/tests-gen/org/jetbrains/kotlin/cli/CliTestGenerated.java @@ -1338,11 +1338,6 @@ public class CliTestGenerated extends AbstractCliTest { runTest("compiler/testData/cli/js/jsHelp.args"); } - @TestMetadata("jsOldBackend_strict.args") - public void testJsOldBackend_strict() throws Exception { - runTest("compiler/testData/cli/js/jsOldBackend_strict.args"); - } - @TestMetadata("kotlinHomeWithoutStdlib.args") public void testKotlinHomeWithoutStdlib() throws Exception { runTest("compiler/testData/cli/js/kotlinHomeWithoutStdlib.args"); diff --git a/compiler/tests/org/jetbrains/kotlin/cli/AnalysisHandlerExtensionTest.kt b/compiler/tests/org/jetbrains/kotlin/cli/AnalysisHandlerExtensionTest.kt index 15a71431805..87c618767bd 100644 --- a/compiler/tests/org/jetbrains/kotlin/cli/AnalysisHandlerExtensionTest.kt +++ b/compiler/tests/org/jetbrains/kotlin/cli/AnalysisHandlerExtensionTest.kt @@ -68,15 +68,10 @@ class AnalysisHandlerExtensionTest : TestCaseWithTmpdir() { val plugin = writePlugin(klass) val args = listOf("-Xplugin=$plugin", mainKt.absolutePath) val outputPath = if (compiler is K2JSCompiler) - listOf("-Xuse-deprecated-legacy-compiler", "-output", tmpdir.resolve("out.js").absolutePath) + listOf("-Xforce-deprecated-legacy-compiler-usage", "-output", tmpdir.resolve("out.js").absolutePath) else listOf("-d", tmpdir.resolve("out").absolutePath) - if (compiler is K2JSCompiler) { - // TODO: It will be deleted after all of our internal vendors will use the new Kotlin/JS compiler - CompilerSystemProperties.KOTLIN_JS_COMPILER_LEGACY_FORCE_ENABLED.value = "true" - } - val (output, exitCode) = CompilerTestUtil.executeCompiler(compiler, args + outputPath + extras) assertEquals(expectedExitCode, exitCode, output) } diff --git a/compiler/tests/org/jetbrains/kotlin/cli/LauncherScriptTest.kt b/compiler/tests/org/jetbrains/kotlin/cli/LauncherScriptTest.kt index ecc81827a3b..718999acbde 100644 --- a/compiler/tests/org/jetbrains/kotlin/cli/LauncherScriptTest.kt +++ b/compiler/tests/org/jetbrains/kotlin/cli/LauncherScriptTest.kt @@ -144,10 +144,7 @@ class LauncherScriptTest : TestCaseWithTmpdir() { "kotlinc-js", "$testDataDirectory/emptyMain.kt", "-nowarn", - "-Xlegacy-deprecated-no-warn", - "-Xuse-deprecated-legacy-compiler", - // TODO: It will be deleted after all of our internal vendors will use the new Kotlin/JS compiler - "-D${CompilerSystemProperties.KOTLIN_JS_COMPILER_LEGACY_FORCE_ENABLED.property}=true", + "-Xforce-deprecated-legacy-compiler-usage", "-output", File(tmpdir, "out.js").path, environment = mapOf("JAVA_HOME" to KtTestUtil.getJdk8Home().absolutePath) diff --git a/compiler/tests/org/jetbrains/kotlin/jvm/compiler/CompileKotlinAgainstCustomBinariesTest.kt b/compiler/tests/org/jetbrains/kotlin/jvm/compiler/CompileKotlinAgainstCustomBinariesTest.kt index 597d4f8999f..4b4543fda27 100644 --- a/compiler/tests/org/jetbrains/kotlin/jvm/compiler/CompileKotlinAgainstCustomBinariesTest.kt +++ b/compiler/tests/org/jetbrains/kotlin/jvm/compiler/CompileKotlinAgainstCustomBinariesTest.kt @@ -132,17 +132,12 @@ class CompileKotlinAgainstCustomBinariesTest : AbstractKotlinCompilerIntegration when (compiler) { is K2JSCompiler -> compileJsLibrary( libraryName, - additionalOptions = libraryOptions + "-Xlegacy-deprecated-no-warn" + "-Xuse-deprecated-legacy-compiler" + additionalOptions = libraryOptions + "-Xforce-deprecated-legacy-compiler-usage" ) is K2JVMCompiler -> compileLibrary(libraryName, additionalOptions = libraryOptions) else -> throw UnsupportedOperationException(compiler.toString()) } - if (compiler is K2JSCompiler) { - // TODO: It will be deleted after all of our internal vendors will use the new Kotlin/JS compiler - CompilerSystemProperties.KOTLIN_JS_COMPILER_LEGACY_FORCE_ENABLED.value = "true" - } - compileKotlin( "source.kt", usageDestination, listOf(result), compiler, additionalOptions.toList() + listOf("-language-version", LanguageVersion.LATEST_STABLE.versionString) diff --git a/compiler/tests/org/jetbrains/kotlin/multiplatform/AbstractMultiPlatformIntegrationTest.kt b/compiler/tests/org/jetbrains/kotlin/multiplatform/AbstractMultiPlatformIntegrationTest.kt index cedb601b77b..9ba53fe2cce 100644 --- a/compiler/tests/org/jetbrains/kotlin/multiplatform/AbstractMultiPlatformIntegrationTest.kt +++ b/compiler/tests/org/jetbrains/kotlin/multiplatform/AbstractMultiPlatformIntegrationTest.kt @@ -66,9 +66,7 @@ abstract class AbstractMultiPlatformIntegrationTest : KtUsefulTestCase() { if (jsSrc != null) { appendLine() appendLine("-- JS --") - // TODO: It will be deleted after all of our internal vendors will use the new Kotlin/JS compiler - CompilerSystemProperties.KOTLIN_JS_COMPILER_LEGACY_FORCE_ENABLED.value = "true" - appendLine(K2JSCompiler().compile(jsSrc, commonSrc, "-Xuse-deprecated-legacy-compiler", "-output", jsDest!!)) + appendLine(K2JSCompiler().compile(jsSrc, commonSrc, "-Xforce-deprecated-legacy-compiler-usage", "-output", jsDest!!)) } if (common2Src != null) { diff --git a/jps/jps-plugin/jps-tests/test/org/jetbrains/kotlin/jps/build/AbstractLookupTrackerTest.kt b/jps/jps-plugin/jps-tests/test/org/jetbrains/kotlin/jps/build/AbstractLookupTrackerTest.kt index 3a64919770f..461c68592d6 100644 --- a/jps/jps-plugin/jps-tests/test/org/jetbrains/kotlin/jps/build/AbstractLookupTrackerTest.kt +++ b/jps/jps-plugin/jps-tests/test/org/jetbrains/kotlin/jps/build/AbstractLookupTrackerTest.kt @@ -168,9 +168,7 @@ abstract class AbstractJsLookupTrackerTest : AbstractLookupTrackerTest() { libraries = libPaths.joinToString(File.pathSeparator) reportOutputFiles = true freeArgs = filesToCompile.map { it.canonicalPath } - useDeprecatedLegacyCompiler = true - // TODO: It will be deleted after all of our internal vendors will use the new Kotlin/JS compiler - CompilerSystemProperties.KOTLIN_JS_COMPILER_LEGACY_FORCE_ENABLED.value = "true" + forceDeprecatedLegacyCompilerUsage = true } configureAdditionalArgs(args) return runJSCompiler(args, env) diff --git a/jps/jps-plugin/jps-tests/test/org/jetbrains/kotlin/jps/build/BaseKotlinJpsBuildTestCase.kt b/jps/jps-plugin/jps-tests/test/org/jetbrains/kotlin/jps/build/BaseKotlinJpsBuildTestCase.kt index 6b2839f5328..d81f01d2c53 100644 --- a/jps/jps-plugin/jps-tests/test/org/jetbrains/kotlin/jps/build/BaseKotlinJpsBuildTestCase.kt +++ b/jps/jps-plugin/jps-tests/test/org/jetbrains/kotlin/jps/build/BaseKotlinJpsBuildTestCase.kt @@ -37,7 +37,6 @@ abstract class BaseKotlinJpsBuildTestCase : JpsBuildTestCase() { override fun setUp() { super.setUp() System.setProperty("kotlin.jps.tests", "true") - CompilerSystemProperties.KOTLIN_JS_COMPILER_LEGACY_FORCE_ENABLED.value = "true" } override fun shouldRunTest(): Boolean { diff --git a/jps/jps-plugin/jps-tests/test/org/jetbrains/kotlin/jps/build/KotlinJpsBuildTestBase.kt b/jps/jps-plugin/jps-tests/test/org/jetbrains/kotlin/jps/build/KotlinJpsBuildTestBase.kt index f93c3ccab29..e0ef918744f 100644 --- a/jps/jps-plugin/jps-tests/test/org/jetbrains/kotlin/jps/build/KotlinJpsBuildTestBase.kt +++ b/jps/jps-plugin/jps-tests/test/org/jetbrains/kotlin/jps/build/KotlinJpsBuildTestBase.kt @@ -91,9 +91,7 @@ abstract class KotlinJpsBuildTestBase : AbstractKotlinJpsBuildTestCase() { myProject.modules.forEach { val facet = KotlinFacetSettings() facet.compilerArguments = K2JSCompilerArguments().apply { - useDeprecatedLegacyCompiler = true - // TODO: It will be deleted after all of our internal vendors will use the new Kotlin/JS compiler - CompilerSystemProperties.KOTLIN_JS_COMPILER_LEGACY_FORCE_ENABLED.value = "true" + forceDeprecatedLegacyCompilerUsage = true } facet.targetPlatform = JsPlatforms.defaultJsPlatform diff --git a/jps/jps-plugin/jps-tests/test/org/jetbrains/kotlin/jps/build/dependeciestxt/ModulesTxt.kt b/jps/jps-plugin/jps-tests/test/org/jetbrains/kotlin/jps/build/dependeciestxt/ModulesTxt.kt index 0321eb0e72f..cd8b403f54b 100644 --- a/jps/jps-plugin/jps-tests/test/org/jetbrains/kotlin/jps/build/dependeciestxt/ModulesTxt.kt +++ b/jps/jps-plugin/jps-tests/test/org/jetbrains/kotlin/jps/build/dependeciestxt/ModulesTxt.kt @@ -264,7 +264,7 @@ class ModulesTxtBuilder { "js" -> settings.compilerArguments = K2JSCompilerArguments().also { settings.targetPlatform = JsPlatforms.defaultJsPlatform - it.useDeprecatedLegacyCompiler = true + it.forceDeprecatedLegacyCompilerUsage = true } "native" -> settings.compilerArguments = FakeK2NativeCompilerArguments().also { settings.targetPlatform = NativePlatforms.unspecifiedNativePlatform } diff --git a/jps/jps-plugin/jps-tests/test/org/jetbrains/kotlin/jps/incremental/AbstractJsProtoComparisonTest.kt b/jps/jps-plugin/jps-tests/test/org/jetbrains/kotlin/jps/incremental/AbstractJsProtoComparisonTest.kt index 2d1ee73036b..84f33f57bf3 100644 --- a/jps/jps-plugin/jps-tests/test/org/jetbrains/kotlin/jps/incremental/AbstractJsProtoComparisonTest.kt +++ b/jps/jps-plugin/jps-tests/test/org/jetbrains/kotlin/jps/incremental/AbstractJsProtoComparisonTest.kt @@ -51,9 +51,7 @@ abstract class AbstractJsProtoComparisonTest : AbstractProtoComparisonTest = objectFactory.property( - PropertiesProvider(project).jsCompilerNoWarn - ) - @get:Internal protected val libraryFilter: (File) -> Boolean get() = { file -> @@ -278,9 +273,9 @@ abstract class Kotlin2JsCompile @Inject constructor( } args.friendModules = friendDependencies.files.joinToString(File.pathSeparator) { it.absolutePath } + if (!isIrBackendEnabled()) { - args.legacyDeprecatedNoWarn = true - args.useDeprecatedLegacyCompiler = true + args.forceDeprecatedLegacyCompilerUsage = true } logger.kotlinDebug("compiling with args ${ArgumentUtils.convertArgumentsToStringList(args)}") diff --git a/libraries/tools/kotlin-gradle-plugin/src/common/kotlin/org/jetbrains/kotlin/gradle/tasks/Tasks.kt b/libraries/tools/kotlin-gradle-plugin/src/common/kotlin/org/jetbrains/kotlin/gradle/tasks/Tasks.kt index a868377fe51..8bbffd804e8 100644 --- a/libraries/tools/kotlin-gradle-plugin/src/common/kotlin/org/jetbrains/kotlin/gradle/tasks/Tasks.kt +++ b/libraries/tools/kotlin-gradle-plugin/src/common/kotlin/org/jetbrains/kotlin/gradle/tasks/Tasks.kt @@ -14,5 +14,4 @@ const val USING_JS_INCREMENTAL_COMPILATION_MESSAGE = "Using Kotlin/JS incrementa const val USING_JS_IR_BACKEND_MESSAGE = "Using Kotlin/JS IR backend" internal inline val T.thisTaskProvider: TaskProvider - get() = checkNotNull(project.locateTask(name)) - + get() = checkNotNull(project.locateTask(name)) \ No newline at end of file diff --git a/libraries/tools/kotlin-maven-plugin-test/pom.xml b/libraries/tools/kotlin-maven-plugin-test/pom.xml index e32e710b41b..634f55ba5e5 100644 --- a/libraries/tools/kotlin-maven-plugin-test/pom.xml +++ b/libraries/tools/kotlin-maven-plugin-test/pom.xml @@ -112,7 +112,6 @@ ${project.version} - true diff --git a/libraries/tools/kotlin-maven-plugin-test/src/it/test-js-accessToInternal/pom.xml b/libraries/tools/kotlin-maven-plugin-test/src/it/test-js-accessToInternal/pom.xml index a017e72db4a..47a8b6e72f7 100644 --- a/libraries/tools/kotlin-maven-plugin-test/src/it/test-js-accessToInternal/pom.xml +++ b/libraries/tools/kotlin-maven-plugin-test/src/it/test-js-accessToInternal/pom.xml @@ -33,7 +33,7 @@ ${project.basedir}/customOutput/ - -Xuse-deprecated-legacy-compiler + -Xforce-deprecated-legacy-compiler-usage @@ -44,7 +44,7 @@ - -Xuse-deprecated-legacy-compiler + -Xforce-deprecated-legacy-compiler-usage diff --git a/libraries/tools/kotlin-maven-plugin-test/src/it/test-js-extraArguments/pom.xml b/libraries/tools/kotlin-maven-plugin-test/src/it/test-js-extraArguments/pom.xml index 5e367fe0e77..85562223010 100644 --- a/libraries/tools/kotlin-maven-plugin-test/src/it/test-js-extraArguments/pom.xml +++ b/libraries/tools/kotlin-maven-plugin-test/src/it/test-js-extraArguments/pom.xml @@ -34,7 +34,7 @@ -Xno-inline - -Xuse-deprecated-legacy-compiler + -Xforce-deprecated-legacy-compiler-usage diff --git a/libraries/tools/kotlin-maven-plugin-test/src/it/test-js-moduleKind/pom.xml b/libraries/tools/kotlin-maven-plugin-test/src/it/test-js-moduleKind/pom.xml index 7b8df449217..c79ae04002e 100644 --- a/libraries/tools/kotlin-maven-plugin-test/src/it/test-js-moduleKind/pom.xml +++ b/libraries/tools/kotlin-maven-plugin-test/src/it/test-js-moduleKind/pom.xml @@ -34,7 +34,7 @@ umd - -Xuse-deprecated-legacy-compiler + -Xforce-deprecated-legacy-compiler-usage diff --git a/libraries/tools/kotlin-maven-plugin-test/src/it/test-js-sourceMap/pom.xml b/libraries/tools/kotlin-maven-plugin-test/src/it/test-js-sourceMap/pom.xml index ee893dccf65..23e4d73f179 100644 --- a/libraries/tools/kotlin-maven-plugin-test/src/it/test-js-sourceMap/pom.xml +++ b/libraries/tools/kotlin-maven-plugin-test/src/it/test-js-sourceMap/pom.xml @@ -35,7 +35,7 @@ true prefixprefix/ - -Xuse-deprecated-legacy-compiler + -Xforce-deprecated-legacy-compiler-usage diff --git a/libraries/tools/kotlin-maven-plugin-test/src/it/test-js-sourceMapEmbedSources/pom.xml b/libraries/tools/kotlin-maven-plugin-test/src/it/test-js-sourceMapEmbedSources/pom.xml index 2f77c1ca2eb..15bf3bee558 100644 --- a/libraries/tools/kotlin-maven-plugin-test/src/it/test-js-sourceMapEmbedSources/pom.xml +++ b/libraries/tools/kotlin-maven-plugin-test/src/it/test-js-sourceMapEmbedSources/pom.xml @@ -35,7 +35,7 @@ true always - -Xuse-deprecated-legacy-compiler + -Xforce-deprecated-legacy-compiler-usage diff --git a/libraries/tools/kotlin-maven-plugin-test/src/it/test-js-suppressWarnings/pom.xml b/libraries/tools/kotlin-maven-plugin-test/src/it/test-js-suppressWarnings/pom.xml index e55e9f34f91..f1a87f0e274 100644 --- a/libraries/tools/kotlin-maven-plugin-test/src/it/test-js-suppressWarnings/pom.xml +++ b/libraries/tools/kotlin-maven-plugin-test/src/it/test-js-suppressWarnings/pom.xml @@ -34,7 +34,7 @@ true - -Xuse-deprecated-legacy-compiler + -Xforce-deprecated-legacy-compiler-usage diff --git a/libraries/tools/kotlin-maven-plugin-test/src/it/test-multiplatform/js/pom.xml b/libraries/tools/kotlin-maven-plugin-test/src/it/test-multiplatform/js/pom.xml index df38c113861..9c3e0069789 100644 --- a/libraries/tools/kotlin-maven-plugin-test/src/it/test-multiplatform/js/pom.xml +++ b/libraries/tools/kotlin-maven-plugin-test/src/it/test-multiplatform/js/pom.xml @@ -52,7 +52,7 @@ true - -Xuse-deprecated-legacy-compiler + -Xforce-deprecated-legacy-compiler-usage @@ -66,7 +66,7 @@ true - -Xuse-deprecated-legacy-compiler + -Xforce-deprecated-legacy-compiler-usage