Compile modules with circular dependency as one module

This commit is contained in:
Nikolay Krasko
2015-05-05 19:07:22 +03:00
parent 3b18a44340
commit 2d8dcaddd0
13 changed files with 146 additions and 3 deletions
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="xUTF-8"?>
<module type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
</content>
<orderEntry type="jdk" jdkName="IDEA_JDK" jdkType="JavaSDK" />
<orderEntry type="module" module-name="module2" />
</component>
</module>
@@ -0,0 +1,6 @@
package module1;
public class JavaClass {
public static void newJavaMethod() {}
public static void oldJavaMethod() {}
}
@@ -0,0 +1,11 @@
package module1
import module2.*
fun foo() {
JavaClass.oldJavaMethod()
JavaClass.newJavaMethod()
KotlinObject.oldKotlinMethod()
KotlinObject.newKotlinMethod()
}