lingua-franca icon indicating copy to clipboard operation
lingua-franca copied to clipboard

Gradle does not include Kotlin classes when compiling again

Open cmnrd opened this issue 2 years ago • 3 comments

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.

cmnrd avatar Jul 07 '22 13:07 cmnrd

The relevant old issues are #928 and #939

cmnrd avatar Jul 07 '22 14:07 cmnrd

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...

cmnrd avatar Jul 14 '22 15:07 cmnrd

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.

cmnrd avatar Sep 07 '22 08:09 cmnrd