File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -236,6 +236,7 @@ It allows skipping the Maven compiler plugin configuration:
236236                    <configuration >
237237                        <sourceDirs >
238238                            <sourceDir >${project.basedir}/src/main/kotlin</sourceDir >
239+                             <!--  Ensure Kotlin code can reference Java code --> 
239240                            <sourceDir >${project.basedir}/src/main/java</sourceDir >
240241                        </sourceDirs >
241242                    </configuration >
@@ -260,8 +261,10 @@ It allows skipping the Maven compiler plugin configuration:
260261If your project previously had a Kotlin-only configuration, you also need to remove the following lines from the ` <build> `  section:
261262
262263``` xml 
263- <sourceDirectory >${project.basedir}/src/main/kotlin</sourceDirectory >
264- <testSourceDirectory >${project.basedir}/src/test/kotlin</testSourceDirectory >
264+ <build >
265+     <sourceDirectory >${project.basedir}/src/main/kotlin</sourceDirectory >
266+     <testSourceDirectory >${project.basedir}/src/test/kotlin</testSourceDirectory >
267+ </build >
265268``` 
266269
267270It ensures that both Kotlin code can reference Java code and vice versa with the ` extensions `  setup.
@@ -287,6 +290,7 @@ It ensures that both Kotlin code can reference Java code and vice versa with the
287290                    <configuration >
288291                        <sourceDirs >
289292                            <sourceDir >${project.basedir}/src/main/kotlin</sourceDir >
293+                             <!--  Ensure Kotlin code can reference Java code --> 
290294                            <sourceDir >${project.basedir}/src/main/java</sourceDir >
291295                        </sourceDirs >
292296                    </configuration >
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments