I'm working on a small project with Groovy and Kotlin, and my Kotlin code depends on my Groovy code, not the other way around. However, Kotlin compiles my code first instead of Groovy, and, as a result, I get errors like Unresolved reference: SiteRepository
Any suggestions how I can fix this, by either changing the build sequence, or Kotlin depending explicitly on Groovy, or any other suggestion?