In my jfx projects I use various custom made indicators and I guess most of you who have similar requirements know the pain of keeping java, mq4 sources en ex4 binaries maintainable in one place. In addition to that I actually didn't want the binaries in my git repository at all.
This lead to the development of a gradle task which allows for mq4 compilation within the build process. It can be used on various platforms. For non windows platforms you can configure it in such way that it uses wine. You have to setup the wine environment beforehand but if it's there, the gradle task can use it. It allows me to do continuous integration on a linux server without restrictions.
A short description on how to use it can be found here: