Invoking scala code from Kotlin File

Hi,
I have a use-case where I want to invoke some functions that are written in Scala Object to be called from a kotlin file or Kotlin class. I am not finding anyway how to do it. I see that if the Scala is compiled ones separately then it gets called by the main in Kotlin file. But otherwise, it does not gets called.

Can someone here please help me how can this be done?

You have scala code in the same project as kotlin code? In that case you need to meddle with build script to insure that scala compillation occurs before kotlin compillation. Here I have an old repository, where groovy code depends on kotlin code: https://bitbucket.org/Altavir/dataforge/src/default/grind/build.gradle. I think it should work the same way with scala.
Kotlin has a two-side interop mechanism for java, but it does not work the same way with other JVM languages.

Thanks for the response @darksnake I have the Scala code in the same project. I am using maven for building the project. I will go through the repo you shared and see if this can work for me as well.