Modules.xml: add Java sources right after Kotlin sources
Java sources should appear before classpath dependencies because they should have higher priority if the same symbol is located in the module source and in the classpath. This is so because by default module source has the highest priority in IDEA except the JDK. Ideally this will be handled later by full support of modules in the compiler
This commit is contained in:
@@ -3,9 +3,11 @@
|
||||
<module name="name" outputDir="output">
|
||||
<sources path="s1"/>
|
||||
<sources path="s2"/>
|
||||
<!-- Java source roots -->
|
||||
<classpath path="java"/>
|
||||
<!-- External annotations -->
|
||||
<externalAnnotations path= "a1/f1"/>
|
||||
<externalAnnotations path= "a2"/>
|
||||
<externalAnnotations path="a1/f1"/>
|
||||
<externalAnnotations path="a2"/>
|
||||
<!-- s1 -->
|
||||
<classpath path="cp1"/>
|
||||
<classpath path="cp2"/>
|
||||
|
||||
Reference in New Issue
Block a user