valery1707 / kaitai-gradle-plugin

Gradle plugin for Kaitai: declarative language to generate binary data parsers
https://kaitai.io/
MIT License
6 stars 4 forks source link

compile task dependency #5

Closed jvmlet closed 5 years ago

jvmlet commented 5 years ago

Does the plugin add kaitai task as dependency of compile task? My test can't be executed with test task if ksy was not processed by manualyl running the kaitai task.

valery1707 commented 5 years ago

@jvmlet Yes, plugin add himself as dependency to compileJava, compileScala and compileKotlin

valery1707 commented 5 years ago

@jvmlet Can you create simple project that can show the problem?

jvmlet commented 5 years ago

Thanks @valery1707, will recheck this at Sunday

valery1707 commented 5 years ago

@jvmlet In gradle demo project tests executed without problems - because kaitai spec compiled before tests compilation

jvmlet commented 5 years ago

Hi @valery1707 , sorry, my fault. I ran the tests using junit runner from IDEA. Running with gradle works as expected.

valery1707 commented 5 years ago

@jvmlet Thanks for checking!