lingua-franca
lingua-franca copied to clipboard
Gradle does not include Kotlin classes when compiling again
Compiling with gradle works fine when compiling for the first time. However, if I make changes to a kotlin file and invoke .\gradlew build
again, the resulting jar does not include the Kotlin classes anymore. I have to run .\gradlew clean
first to make it work again.
Any ideas what is going wrong here? I think we had a similar issue in the past, but I was not able to find something in our old issues.
The relevant old issues are #928 and #939
I reopened this because I still have this issue occasionally. It works most of the time, but sometimes the Kotlin classes are not included in the jar.
I guess the real fix would be to not rely on Eclipse for building the project and use normal imports for loading the Kotlin classes...
I am not sure why the behavior changes over time, but I can now again reliably reproduce this everytime I recompile lfc. It only works if cleaning before.