[JS] Remove legacy js in maven
diff --git a/libraries/tools/kotlin-maven-plugin-test/pom.xml b/libraries/tools/kotlin-maven-plugin-test/pom.xml
index d36178e..ae25ae6 100644
--- a/libraries/tools/kotlin-maven-plugin-test/pom.xml
+++ b/libraries/tools/kotlin-maven-plugin-test/pom.xml
@@ -211,13 +211,7 @@
<pomExclude>test-enable-extensions/pom.xml</pomExclude>
<pomExclude>test-kapt-allopen/pom.xml</pomExclude>
<pomExclude>test-lombok-with-kapt/pom.xml</pomExclude>
- <!-- exclude js and mpp -->
- <pomExclude>test-js-moduleKind/pom.xml</pomExclude>
- <pomExclude>test-js-accessToInternal/pom.xml</pomExclude>
- <pomExclude>test-js-suppressWarnings/pom.xml</pomExclude>
- <pomExclude>test-js-sourceMap/pom.xml</pomExclude>
- <pomExclude>test-js-extraArguments/pom.xml</pomExclude>
- <pomExclude>test-js-sourceMapEmbedSources/pom.xml</pomExclude>
+ <!-- exclude mpp -->
<pomExclude>test-multiplatform/pom.xml</pomExclude>
<!-- exclude kts -->
<pomExclude>test-helloworld-kts/pom.xml</pomExclude>
diff --git a/libraries/tools/kotlin-maven-plugin-test/src/it/test-js-accessToInternal/check.js b/libraries/tools/kotlin-maven-plugin-test/src/it/test-js-accessToInternal/check.js
deleted file mode 100644
index 8813654..0000000
--- a/libraries/tools/kotlin-maven-plugin-test/src/it/test-js-accessToInternal/check.js
+++ /dev/null
@@ -1 +0,0 @@
-this['test-js-accessToInternal-tests'].org.jetbrains.test();
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
deleted file mode 100644
index 47a8b6e..0000000
--- a/libraries/tools/kotlin-maven-plugin-test/src/it/test-js-accessToInternal/pom.xml
+++ /dev/null
@@ -1,83 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<project xmlns="http://maven.apache.org/POM/4.0.0"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
- <modelVersion>4.0.0</modelVersion>
-
- <groupId>org.jetbrains.kotlin</groupId>
- <artifactId>test-js-accessToInternal</artifactId>
- <version>1.0-SNAPSHOT</version>
-
- <dependencies>
- <dependency>
- <groupId>org.jetbrains.kotlin</groupId>
- <artifactId>kotlin-stdlib-js</artifactId>
- <version>${kotlin.version}</version>
- </dependency>
- </dependencies>
-
- <build>
- <sourceDirectory>${project.basedir}/src/main/kotlin</sourceDirectory>
- <testSourceDirectory>${project.basedir}/src/test/kotlin</testSourceDirectory>
- <plugins>
- <plugin>
- <artifactId>kotlin-maven-plugin</artifactId>
- <groupId>org.jetbrains.kotlin</groupId>
- <version>${kotlin.version}</version>
- <executions>
- <execution>
- <id>compile</id>
- <goals>
- <goal>js</goal>
- </goals>
- <configuration>
- <output>${project.basedir}/customOutput/</output>
- <args>
- <arg>-Xforce-deprecated-legacy-compiler-usage</arg>
- </args>
- </configuration>
- </execution>
- <execution>
- <id>test-compile</id>
- <goals>
- <goal>test-js</goal>
- </goals>
- <configuration>
- <args>
- <arg>-Xforce-deprecated-legacy-compiler-usage</arg>
- </args>
- </configuration>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-dependency-plugin</artifactId>
- <version>2.10</version>
- <executions>
- <execution>
- <id>unpack</id>
- <phase>package</phase>
- <goals>
- <goal>unpack</goal>
- </goals>
- <configuration>
- <artifactItems>
- <artifactItem>
- <groupId>org.jetbrains.kotlin</groupId>
- <artifactId>kotlin-stdlib-js</artifactId>
- <version>${kotlin.version}</version>
- <type>jar</type>
- <overWrite>false</overWrite>
- <outputDirectory>${project.build.directory}/js/</outputDirectory>
- <includes>**/*.js</includes>
- </artifactItem>
- </artifactItems>
- </configuration>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
-
-</project>
diff --git a/libraries/tools/kotlin-maven-plugin-test/src/it/test-js-accessToInternal/src/main/kotlin/org/jetbrains/HelloWorld.kt b/libraries/tools/kotlin-maven-plugin-test/src/it/test-js-accessToInternal/src/main/kotlin/org/jetbrains/HelloWorld.kt
deleted file mode 100644
index 54dbe96..0000000
--- a/libraries/tools/kotlin-maven-plugin-test/src/it/test-js-accessToInternal/src/main/kotlin/org/jetbrains/HelloWorld.kt
+++ /dev/null
@@ -1,31 +0,0 @@
-/*
- * Copyright 2010-2017 JetBrains s.r.o.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.jetbrains
-
-internal val CONST = "CONST"
-
-open class PublicClass {
- internal fun foo(): String = "foo"
- internal val bar: String = "bar"
- open internal fun baz(): String = "PublicClass.baz()"
-}
-
-internal data class InternalDataClass(val x: Int, val y: Int)
-
-internal fun box(): String {
- return "OK"
-}
\ No newline at end of file
diff --git a/libraries/tools/kotlin-maven-plugin-test/src/it/test-js-accessToInternal/src/test/kotlin/org/jetbrains/HelloWorldTest.kt b/libraries/tools/kotlin-maven-plugin-test/src/it/test-js-accessToInternal/src/test/kotlin/org/jetbrains/HelloWorldTest.kt
deleted file mode 100644
index 473f312..0000000
--- a/libraries/tools/kotlin-maven-plugin-test/src/it/test-js-accessToInternal/src/test/kotlin/org/jetbrains/HelloWorldTest.kt
+++ /dev/null
@@ -1,41 +0,0 @@
-/*
- * Copyright 2010-2015 JetBrains s.r.o.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.jetbrains
-
-class PublicClassHeir : PublicClass() {
- override internal fun baz(): String = "PublicClassHeir.baz()"
-}
-
-fun <T> assertEquals(e: T, a: T) {
- if (e != a) throw Exception("Expected: $e, actual: $a")
-}
-
-fun test() {
- assertEquals("CONST", CONST)
-
- assertEquals("foo", PublicClass().foo())
- assertEquals("bar", PublicClass().bar)
- assertEquals("PublicClass.baz()", PublicClass().baz())
-
- assertEquals("foo", PublicClassHeir().foo())
- assertEquals("bar", PublicClassHeir().bar)
- assertEquals("PublicClassHeir.baz()", PublicClassHeir().baz())
-
- val data = InternalDataClass(10, 20)
- assertEquals(10, data.x)
- assertEquals(20, data.y)
-}
diff --git a/libraries/tools/kotlin-maven-plugin-test/src/it/test-js-accessToInternal/verify.bsh b/libraries/tools/kotlin-maven-plugin-test/src/it/test-js-accessToInternal/verify.bsh
deleted file mode 100644
index c5c23b2..0000000
--- a/libraries/tools/kotlin-maven-plugin-test/src/it/test-js-accessToInternal/verify.bsh
+++ /dev/null
@@ -1,21 +0,0 @@
-import java.io.*;
-import javax.script.*;
-import jdk.nashorn.api.scripting.NashornScriptEngineFactory;
-
-File file = new File(basedir, "target/js/test-js-accessToInternal.js");
-if (!file.exists() || !file.isFile()) {
- throw new FileNotFoundException("Could not find generated JS : " + file);
-}
-
-File testFile = new File(basedir, "target/test-js/test-js-accessToInternal-tests.js");
-if (!testFile.exists() || !testFile.isFile()) {
- throw new FileNotFoundException("Could not find generated JS : " + testFile);
-}
-
-String basePath = basedir.getPath();
-ScriptEngine engine = new NashornScriptEngineFactory().getScriptEngine();
-
-engine.eval(new FileReader(basePath + "/target/js/kotlin.js"));
-engine.eval(new FileReader(basePath + "/target/js/test-js-accessToInternal.js"));
-engine.eval(new FileReader(basePath + "/target/test-js/test-js-accessToInternal-tests.js"));
-engine.eval(new FileReader(basePath + "/check.js"));
\ No newline at end of file
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
deleted file mode 100644
index 85562223..0000000
--- a/libraries/tools/kotlin-maven-plugin-test/src/it/test-js-extraArguments/pom.xml
+++ /dev/null
@@ -1,44 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<project xmlns="http://maven.apache.org/POM/4.0.0"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
- <modelVersion>4.0.0</modelVersion>
-
- <groupId>org.jetbrains.kotlin</groupId>
- <artifactId>test-js-extraArguments</artifactId>
- <version>1.0-SNAPSHOT</version>
-
- <dependencies>
- <dependency>
- <groupId>org.jetbrains.kotlin</groupId>
- <artifactId>kotlin-stdlib-js</artifactId>
- <version>${kotlin.version}</version>
- </dependency>
- </dependencies>
-
- <build>
- <sourceDirectory>${project.basedir}/src/main/kotlin</sourceDirectory>
- <plugins>
- <plugin>
- <artifactId>kotlin-maven-plugin</artifactId>
- <groupId>org.jetbrains.kotlin</groupId>
- <version>${kotlin.version}</version>
- <executions>
- <execution>
- <id>compile</id>
- <goals>
- <goal>js</goal>
- </goals>
- </execution>
- </executions>
- <configuration>
- <args>
- <arg>-Xno-inline</arg>
- <arg>-Xforce-deprecated-legacy-compiler-usage</arg>
- </args>
- </configuration>
- </plugin>
- </plugins>
- </build>
-
-</project>
diff --git a/libraries/tools/kotlin-maven-plugin-test/src/it/test-js-extraArguments/src/main/kotlin/org/jetbrains/HelloWorld.kt b/libraries/tools/kotlin-maven-plugin-test/src/it/test-js-extraArguments/src/main/kotlin/org/jetbrains/HelloWorld.kt
deleted file mode 100644
index 44d4071..0000000
--- a/libraries/tools/kotlin-maven-plugin-test/src/it/test-js-extraArguments/src/main/kotlin/org/jetbrains/HelloWorld.kt
+++ /dev/null
@@ -1,9 +0,0 @@
-package org.jetbrains
-
-fun main(args : Array<String>) {
- println(getGreeting())
-}
-
-fun getGreeting() : String {
- return "Hello, World!"
-}
diff --git a/libraries/tools/kotlin-maven-plugin-test/src/it/test-js-extraArguments/verify.bsh b/libraries/tools/kotlin-maven-plugin-test/src/it/test-js-extraArguments/verify.bsh
deleted file mode 100644
index b5da314..0000000
--- a/libraries/tools/kotlin-maven-plugin-test/src/it/test-js-extraArguments/verify.bsh
+++ /dev/null
@@ -1,6 +0,0 @@
-import java.io.*;
-
-File file = new File(basedir, "target/js/test-js-extraArguments.js");
-if (!file.exists() || !file.isFile()) {
- throw new FileNotFoundException("Could not find generated JS : " + file);
-}
diff --git a/libraries/tools/kotlin-maven-plugin-test/src/it/test-js-moduleKind/amd.js b/libraries/tools/kotlin-maven-plugin-test/src/it/test-js-moduleKind/amd.js
deleted file mode 100644
index b611d41..0000000
--- a/libraries/tools/kotlin-maven-plugin-test/src/it/test-js-moduleKind/amd.js
+++ /dev/null
@@ -1,23 +0,0 @@
-var amdModules = {};
-// Hard-code expected dependency order since we are unable to refer to modules by filename here.
-var moduleNames = ["kotlin", "test-js-moduleKind", "check"];
-function define(moduleName, dependencies, body) {
- if (Array.isArray(moduleName)) {
- body = dependencies;
- dependencies = moduleName;
- moduleName = moduleNames.shift();
- }
- else {
- if (moduleName !== moduleNames.shift()) throw new Error("Unexpected dependency")
- }
- var resolvedDependencies = [];
- var currentModule = {};
- amdModules[moduleName] = currentModule;
- for (var i = 0; i < dependencies.length; ++i) {
- var dependencyName = dependencies[i];
- var dependency = dependencyName === 'exports' ? currentModule : amdModules[dependencyName];
- resolvedDependencies.push(dependency);
- }
- body.apply(body, resolvedDependencies);
-}
-define.amd = {};
\ No newline at end of file
diff --git a/libraries/tools/kotlin-maven-plugin-test/src/it/test-js-moduleKind/check.js b/libraries/tools/kotlin-maven-plugin-test/src/it/test-js-moduleKind/check.js
deleted file mode 100644
index decc297..0000000
--- a/libraries/tools/kotlin-maven-plugin-test/src/it/test-js-moduleKind/check.js
+++ /dev/null
@@ -1,21 +0,0 @@
-/*
- * Copyright 2010-2016 JetBrains s.r.o.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-define("check", ["test-js-moduleKind"], function(app) {
- if (app.foo.bar() != "OK") {
- throw new Error("Unexpected result");
- }
-});
\ No newline at end of file
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
deleted file mode 100644
index c79ae04..0000000
--- a/libraries/tools/kotlin-maven-plugin-test/src/it/test-js-moduleKind/pom.xml
+++ /dev/null
@@ -1,71 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<project xmlns="http://maven.apache.org/POM/4.0.0"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
- <modelVersion>4.0.0</modelVersion>
-
- <groupId>org.jetbrains.kotlin</groupId>
- <artifactId>test-js-moduleKind</artifactId>
- <version>1.0-SNAPSHOT</version>
-
- <dependencies>
- <dependency>
- <groupId>org.jetbrains.kotlin</groupId>
- <artifactId>kotlin-stdlib-js</artifactId>
- <version>${kotlin.version}</version>
- </dependency>
- </dependencies>
-
- <build>
- <sourceDirectory>${project.basedir}/src/main/kotlin</sourceDirectory>
- <plugins>
- <plugin>
- <artifactId>kotlin-maven-plugin</artifactId>
- <groupId>org.jetbrains.kotlin</groupId>
- <version>${kotlin.version}</version>
- <executions>
- <execution>
- <id>compile</id>
- <goals>
- <goal>js</goal>
- </goals>
- </execution>
- </executions>
- <configuration>
- <moduleKind>umd</moduleKind>
- <args>
- <arg>-Xforce-deprecated-legacy-compiler-usage</arg>
- </args>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-dependency-plugin</artifactId>
- <version>2.10</version>
- <executions>
- <execution>
- <id>unpack</id>
- <phase>package</phase>
- <goals>
- <goal>unpack</goal>
- </goals>
- <configuration>
- <artifactItems>
- <artifactItem>
- <groupId>org.jetbrains.kotlin</groupId>
- <artifactId>kotlin-stdlib-js</artifactId>
- <version>${kotlin.version}</version>
- <type>jar</type>
- <overWrite>false</overWrite>
- <outputDirectory>${project.build.directory}/js/</outputDirectory>
- <includes>**/*.js</includes>
- </artifactItem>
- </artifactItems>
- </configuration>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
-
-</project>
diff --git a/libraries/tools/kotlin-maven-plugin-test/src/it/test-js-moduleKind/src/main/kotlin/org/jetbrains/HelloWorld.kt b/libraries/tools/kotlin-maven-plugin-test/src/it/test-js-moduleKind/src/main/kotlin/org/jetbrains/HelloWorld.kt
deleted file mode 100644
index ec5efee..0000000
--- a/libraries/tools/kotlin-maven-plugin-test/src/it/test-js-moduleKind/src/main/kotlin/org/jetbrains/HelloWorld.kt
+++ /dev/null
@@ -1,19 +0,0 @@
-/*
- * Copyright 2010-2016 JetBrains s.r.o.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package foo
-
-fun bar() = "OK"
diff --git a/libraries/tools/kotlin-maven-plugin-test/src/it/test-js-moduleKind/verify.bsh b/libraries/tools/kotlin-maven-plugin-test/src/it/test-js-moduleKind/verify.bsh
deleted file mode 100644
index 34cf7ee..0000000
--- a/libraries/tools/kotlin-maven-plugin-test/src/it/test-js-moduleKind/verify.bsh
+++ /dev/null
@@ -1,16 +0,0 @@
-import java.io.*;
-import javax.script.*;
-import jdk.nashorn.api.scripting.NashornScriptEngineFactory;
-
-File file = new File(basedir, "target/js/test-js-moduleKind.js");
-if (!file.exists() || !file.isFile()) {
- throw new FileNotFoundException("Could not find generated JS : " + file);
-}
-
-String basePath = basedir.getPath();
-ScriptEngine engine = new NashornScriptEngineFactory().getScriptEngine();
-
-engine.eval(new FileReader(basePath + "/amd.js"));
-engine.eval(new FileReader(basePath + "/target/js/kotlin.js"));
-engine.eval(new FileReader(basePath + "/target/js/test-js-moduleKind.js"));
-engine.eval(new FileReader(basePath + "/check.js"));
\ No newline at end of file
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
deleted file mode 100644
index 23e4d73..0000000
--- a/libraries/tools/kotlin-maven-plugin-test/src/it/test-js-sourceMap/pom.xml
+++ /dev/null
@@ -1,45 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<project xmlns="http://maven.apache.org/POM/4.0.0"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
- <modelVersion>4.0.0</modelVersion>
-
- <groupId>org.jetbrains.kotlin</groupId>
- <artifactId>test-js-sourceMap</artifactId>
- <version>1.0-SNAPSHOT</version>
-
- <dependencies>
- <dependency>
- <groupId>org.jetbrains.kotlin</groupId>
- <artifactId>kotlin-stdlib-js</artifactId>
- <version>${kotlin.version}</version>
- </dependency>
- </dependencies>
-
- <build>
- <sourceDirectory>${project.basedir}/src/main/kotlin</sourceDirectory>
- <plugins>
- <plugin>
- <artifactId>kotlin-maven-plugin</artifactId>
- <groupId>org.jetbrains.kotlin</groupId>
- <version>${kotlin.version}</version>
- <executions>
- <execution>
- <id>compile</id>
- <goals>
- <goal>js</goal>
- </goals>
- </execution>
- </executions>
- <configuration>
- <sourceMap>true</sourceMap>
- <sourceMapPrefix>prefixprefix/</sourceMapPrefix>
- <args>
- <arg>-Xforce-deprecated-legacy-compiler-usage</arg>
- </args>
- </configuration>
- </plugin>
- </plugins>
- </build>
-
-</project>
diff --git a/libraries/tools/kotlin-maven-plugin-test/src/it/test-js-sourceMap/src/main/kotlin/org/jetbrains/HelloWorld.kt b/libraries/tools/kotlin-maven-plugin-test/src/it/test-js-sourceMap/src/main/kotlin/org/jetbrains/HelloWorld.kt
deleted file mode 100644
index 0b757bc..0000000
--- a/libraries/tools/kotlin-maven-plugin-test/src/it/test-js-sourceMap/src/main/kotlin/org/jetbrains/HelloWorld.kt
+++ /dev/null
@@ -1,19 +0,0 @@
-/*
- * Copyright 2010-2017 JetBrains s.r.o.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.jetbrains
-
-fun bar() = "OK"
diff --git a/libraries/tools/kotlin-maven-plugin-test/src/it/test-js-sourceMap/verify.bsh b/libraries/tools/kotlin-maven-plugin-test/src/it/test-js-sourceMap/verify.bsh
deleted file mode 100644
index bec94d7..0000000
--- a/libraries/tools/kotlin-maven-plugin-test/src/it/test-js-sourceMap/verify.bsh
+++ /dev/null
@@ -1,3 +0,0 @@
-source(new File(basedir, "../../../verify-common.bsh").getAbsolutePath());
-
-assertFileContains("target/js/test-js-sourceMap.js.map", "\"prefixprefix/org/jetbrains/HelloWorld.kt\"")
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
deleted file mode 100644
index 15bf3be..0000000
--- a/libraries/tools/kotlin-maven-plugin-test/src/it/test-js-sourceMapEmbedSources/pom.xml
+++ /dev/null
@@ -1,45 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<project xmlns="http://maven.apache.org/POM/4.0.0"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
- <modelVersion>4.0.0</modelVersion>
-
- <groupId>org.jetbrains.kotlin</groupId>
- <artifactId>test-js-sourceMapEmbedSources</artifactId>
- <version>1.0-SNAPSHOT</version>
-
- <dependencies>
- <dependency>
- <groupId>org.jetbrains.kotlin</groupId>
- <artifactId>kotlin-stdlib-js</artifactId>
- <version>${kotlin.version}</version>
- </dependency>
- </dependencies>
-
- <build>
- <sourceDirectory>${project.basedir}/src/main/kotlin</sourceDirectory>
- <plugins>
- <plugin>
- <artifactId>kotlin-maven-plugin</artifactId>
- <groupId>org.jetbrains.kotlin</groupId>
- <version>${kotlin.version}</version>
- <executions>
- <execution>
- <id>compile</id>
- <goals>
- <goal>js</goal>
- </goals>
- </execution>
- </executions>
- <configuration>
- <sourceMap>true</sourceMap>
- <sourceMapEmbedSources>always</sourceMapEmbedSources>
- <args>
- <arg>-Xforce-deprecated-legacy-compiler-usage</arg>
- </args>
- </configuration>
- </plugin>
- </plugins>
- </build>
-
-</project>
diff --git a/libraries/tools/kotlin-maven-plugin-test/src/it/test-js-sourceMapEmbedSources/src/main/kotlin/org/jetbrains/HelloWorld.kt b/libraries/tools/kotlin-maven-plugin-test/src/it/test-js-sourceMapEmbedSources/src/main/kotlin/org/jetbrains/HelloWorld.kt
deleted file mode 100644
index 82b1416..0000000
--- a/libraries/tools/kotlin-maven-plugin-test/src/it/test-js-sourceMapEmbedSources/src/main/kotlin/org/jetbrains/HelloWorld.kt
+++ /dev/null
@@ -1,3 +0,0 @@
-package org.jetbrains
-
-fun bar() = "OK"
diff --git a/libraries/tools/kotlin-maven-plugin-test/src/it/test-js-sourceMapEmbedSources/verify.bsh b/libraries/tools/kotlin-maven-plugin-test/src/it/test-js-sourceMapEmbedSources/verify.bsh
deleted file mode 100644
index 2e8d9bd..0000000
--- a/libraries/tools/kotlin-maven-plugin-test/src/it/test-js-sourceMapEmbedSources/verify.bsh
+++ /dev/null
@@ -1,5 +0,0 @@
-source(new File(basedir, "../../../verify-common.bsh").getAbsolutePath());
-
-assertFileContains("target/js/test-js-sourceMapEmbedSources.js.map", "\"org/jetbrains/HelloWorld.kt\"");
-assertFileContains("target/js/test-js-sourceMapEmbedSources.js.map", "\"package org.jetbrains");
-assertFileContains("target/js/test-js-sourceMapEmbedSources.js.map", "fun bar() = \\\"OK\\\"")
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
deleted file mode 100644
index f1a87f0..0000000
--- a/libraries/tools/kotlin-maven-plugin-test/src/it/test-js-suppressWarnings/pom.xml
+++ /dev/null
@@ -1,44 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<project xmlns="http://maven.apache.org/POM/4.0.0"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
- <modelVersion>4.0.0</modelVersion>
-
- <groupId>org.jetbrains.kotlin</groupId>
- <artifactId>test-js-suppressWarningsAndVersion</artifactId>
- <version>1.0-SNAPSHOT</version>
-
- <dependencies>
- <dependency>
- <groupId>org.jetbrains.kotlin</groupId>
- <artifactId>kotlin-stdlib-js</artifactId>
- <version>${kotlin.version}</version>
- </dependency>
- </dependencies>
-
- <build>
- <sourceDirectory>${project.basedir}/src/main/kotlin</sourceDirectory>
- <plugins>
- <plugin>
- <artifactId>kotlin-maven-plugin</artifactId>
- <groupId>org.jetbrains.kotlin</groupId>
- <version>${kotlin.version}</version>
- <executions>
- <execution>
- <id>compile</id>
- <goals>
- <goal>js</goal>
- </goals>
- </execution>
- </executions>
- <configuration>
- <nowarn>true</nowarn>
- <args>
- <arg>-Xforce-deprecated-legacy-compiler-usage</arg>
- </args>
- </configuration>
- </plugin>
- </plugins>
- </build>
-
-</project>
diff --git a/libraries/tools/kotlin-maven-plugin-test/src/it/test-js-suppressWarnings/src/main/kotlin/org/jetbrains/HelloWorld.kt b/libraries/tools/kotlin-maven-plugin-test/src/it/test-js-suppressWarnings/src/main/kotlin/org/jetbrains/HelloWorld.kt
deleted file mode 100644
index 4cdba9e..0000000
--- a/libraries/tools/kotlin-maven-plugin-test/src/it/test-js-suppressWarnings/src/main/kotlin/org/jetbrains/HelloWorld.kt
+++ /dev/null
@@ -1,19 +0,0 @@
-package org.jetbrains
-
-import kotlin.Any
-
-fun foo(p: Int??) {
-
-}
-
-interface T {
- abstract fun foo()
-}
-
-fun main(args : Array<String>) {
- println(getGreeting())
-}
-
-fun getGreeting() : String {
- return "Hello, World!"
-}
diff --git a/libraries/tools/kotlin-maven-plugin-test/src/it/test-js-suppressWarnings/verify.bsh b/libraries/tools/kotlin-maven-plugin-test/src/it/test-js-suppressWarnings/verify.bsh
deleted file mode 100644
index 5826897..0000000
--- a/libraries/tools/kotlin-maven-plugin-test/src/it/test-js-suppressWarnings/verify.bsh
+++ /dev/null
@@ -1,6 +0,0 @@
-import java.io.*;
-
-File file = new File(basedir, "target/js/test-js-suppressWarningsAndVersion.js");
-if (!file.exists() || !file.isFile()) {
- throw new FileNotFoundException("Could not find generated JS : " + file);
-}
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
deleted file mode 100644
index 9c3e006..0000000
--- a/libraries/tools/kotlin-maven-plugin-test/src/it/test-multiplatform/js/pom.xml
+++ /dev/null
@@ -1,78 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<project xmlns="http://maven.apache.org/POM/4.0.0"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
- <modelVersion>4.0.0</modelVersion>
-
- <parent>
- <groupId>org.jetbrains.kotlin</groupId>
- <artifactId>test-multimodule-root</artifactId>
- <version>1.0-SNAPSHOT</version>
- <relativePath>../pom.xml</relativePath>
- </parent>
-
- <artifactId>test-multimodule-js</artifactId>
-
- <dependencies>
- <dependency>
- <groupId>org.jetbrains.kotlin</groupId>
- <artifactId>kotlin-stdlib-js</artifactId>
- <version>${kotlin.version}</version>
- </dependency>
- <dependency>
- <groupId>org.jetbrains.kotlin</groupId>
- <artifactId>kotlin-test-js</artifactId>
- <version>${kotlin.version}</version>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>org.jetbrains.kotlin</groupId>
- <artifactId>test-multimodule-shared</artifactId>
- <version>${project.version}</version>
- </dependency>
- </dependencies>
-
- <build>
- <sourceDirectory>${project.basedir}/src/main/kotlin</sourceDirectory>
- <testSourceDirectory>${project.basedir}/src/test/kotlin</testSourceDirectory>
-
- <plugins>
- <plugin>
- <artifactId>kotlin-maven-plugin</artifactId>
- <groupId>org.jetbrains.kotlin</groupId>
- <version>${kotlin.version}</version>
- <executions>
- <execution>
- <id>compile</id>
- <phase>compile</phase>
- <goals>
- <goal>js</goal>
- </goals>
-
- <configuration>
- <multiPlatform>true</multiPlatform>
- <args>
- <arg>-Xforce-deprecated-legacy-compiler-usage</arg>
- </args>
- </configuration>
- </execution>
- <execution>
- <id>compile-test</id>
- <phase>test-compile</phase>
- <goals>
- <goal>test-js</goal>
- </goals>
-
- <configuration>
- <multiPlatform>true</multiPlatform>
- <args>
- <arg>-Xforce-deprecated-legacy-compiler-usage</arg>
- </args>
- </configuration>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
-
-</project>
diff --git a/libraries/tools/kotlin-maven-plugin-test/src/it/test-multiplatform/js/src/main/kotlin/org/jetbrains/HelloWorld.kt b/libraries/tools/kotlin-maven-plugin-test/src/it/test-multiplatform/js/src/main/kotlin/org/jetbrains/HelloWorld.kt
deleted file mode 100644
index 5e777d6..0000000
--- a/libraries/tools/kotlin-maven-plugin-test/src/it/test-multiplatform/js/src/main/kotlin/org/jetbrains/HelloWorld.kt
+++ /dev/null
@@ -1,9 +0,0 @@
-package org.jetbrains
-
-fun main(args: Array<String>) {
- doMain()
-}
-
-actual fun doMain() {
- console.info(getGreeting())
-}
diff --git a/libraries/tools/kotlin-maven-plugin-test/src/it/test-multiplatform/js/src/test/kotlin/org/jetbrains/JSSpecificTest.kt b/libraries/tools/kotlin-maven-plugin-test/src/it/test-multiplatform/js/src/test/kotlin/org/jetbrains/JSSpecificTest.kt
deleted file mode 100644
index 840d824..0000000
--- a/libraries/tools/kotlin-maven-plugin-test/src/it/test-multiplatform/js/src/test/kotlin/org/jetbrains/JSSpecificTest.kt
+++ /dev/null
@@ -1,10 +0,0 @@
-package org.jetbrains
-
-import kotlin.test.*
-
-class JSSpecificTest {
- @Test
- fun test1() {
- assertEquals(1, 1)
- }
-}
diff --git a/libraries/tools/kotlin-maven-plugin-test/src/it/test-multiplatform/pom.xml b/libraries/tools/kotlin-maven-plugin-test/src/it/test-multiplatform/pom.xml
index 7a6fcb8..9f48378 100644
--- a/libraries/tools/kotlin-maven-plugin-test/src/it/test-multiplatform/pom.xml
+++ b/libraries/tools/kotlin-maven-plugin-test/src/it/test-multiplatform/pom.xml
@@ -11,7 +11,6 @@
<modules>
<module>shared</module>
- <module>js</module>
<module>jvm</module>
</modules>
</project>
diff --git a/libraries/tools/kotlin-maven-plugin-test/src/it/test-multiplatform/verify.bsh b/libraries/tools/kotlin-maven-plugin-test/src/it/test-multiplatform/verify.bsh
index 7d3350d..730875e 100644
--- a/libraries/tools/kotlin-maven-plugin-test/src/it/test-multiplatform/verify.bsh
+++ b/libraries/tools/kotlin-maven-plugin-test/src/it/test-multiplatform/verify.bsh
@@ -12,11 +12,6 @@
throw new FileNotFoundException("Could not find generated class file: " + classFile);
}
-File scriptFile = new File(basedir, "js/target/js/test-multimodule-js.js");
-if (!scriptFile.exists()) {
- throw new FileNotFoundException("Could not find generated JavaScript file: " + scriptFile);
-}
-
File metaFile = new File(basedir, "shared/target/classes/org/jetbrains/ApiKt.kotlin_metadata");
if (!metaFile.exists()) {
throw new FileNotFoundException("Could not find generated common metadata file: " + metaFile);