Compile modules with circular dependency as one module
This commit is contained in:
+32
@@ -0,0 +1,32 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="CompilerConfiguration">
|
||||
<option name="DEFAULT_COMPILER" value="Javac" />
|
||||
<resourceExtensions />
|
||||
<annotationProcessing>
|
||||
<profile default="true" name="Default" enabled="false">
|
||||
<processorPath useClasspath="true" />
|
||||
</profile>
|
||||
</annotationProcessing>
|
||||
</component>
|
||||
<component name="CopyrightManager" default="">
|
||||
<module2copyright />
|
||||
</component>
|
||||
<component name="DependencyValidationManager">
|
||||
<option name="SKIP_IMPORT_STATEMENTS" value="false" />
|
||||
</component>
|
||||
<component name="Encoding" useUTFGuessing="true" native2AsciiForPropertiesFiles="false" />
|
||||
<component name="ProjectModuleManager">
|
||||
<modules>
|
||||
<module fileurl="file://$PROJECT_DIR$/module1/module1.iml" filepath="$PROJECT_DIR$/module1/module1.iml" />
|
||||
<module fileurl="file://$PROJECT_DIR$/module2/module2.iml" filepath="$PROJECT_DIR$/module2/module2.iml" />
|
||||
</modules>
|
||||
</component>
|
||||
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_6" assert-keyword="true" jdk-15="true" project-jdk-name="IDEA_JDK" project-jdk-type="JavaSDK">
|
||||
<output url="file://$PROJECT_DIR$/out" />
|
||||
</component>
|
||||
<component name="VcsDirectoryMappings">
|
||||
<mapping directory="" vcs="" />
|
||||
</component>
|
||||
</project>
|
||||
|
||||
+12
@@ -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>
|
||||
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
package module1;
|
||||
|
||||
public class JavaClass {
|
||||
public static void newJavaMethod() {}
|
||||
public static void oldJavaMethod() {}
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
package module1
|
||||
|
||||
import module2.*
|
||||
|
||||
fun foo() {
|
||||
JavaClass.oldJavaMethod()
|
||||
JavaClass.newJavaMethod()
|
||||
|
||||
KotlinObject.oldKotlinMethod()
|
||||
KotlinObject.newKotlinMethod()
|
||||
}
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-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="module1" />
|
||||
</component>
|
||||
</module>
|
||||
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
package module2
|
||||
|
||||
public object KotlinObject {
|
||||
public fun oldKotlinMethod() {
|
||||
}
|
||||
|
||||
public fun newKotlinMethod() {
|
||||
}
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
package module2
|
||||
|
||||
import module1.*
|
||||
|
||||
fun bar() {
|
||||
JavaClass.oldJavaMethod()
|
||||
JavaClass.newJavaMethod()
|
||||
|
||||
KotlinObject.oldKotlinMethod()
|
||||
KotlinObject.newKotlinMethod()
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
package module1;
|
||||
|
||||
public class JavaClass {
|
||||
public static void oldJavaMethod() {}
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
package module1
|
||||
|
||||
import module2.*
|
||||
|
||||
fun foo() {
|
||||
JavaClass.oldJavaMethod()
|
||||
|
||||
KotlinObject.oldKotlinMethod()
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
package module2
|
||||
|
||||
public object KotlinObject {
|
||||
public fun oldKotlinMethod() {
|
||||
}
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
package module2
|
||||
|
||||
import module1.*
|
||||
|
||||
fun bar() {
|
||||
JavaClass.oldJavaMethod()
|
||||
|
||||
KotlinObject.oldKotlinMethod()
|
||||
}
|
||||
Reference in New Issue
Block a user