I’m new to gradle and I need to know if what I want to do is possible.
I’m developing a framework in Matlab, for which parts are compiled as C shared libraries or Java classes. People using this framework should not have to install any dependency besides Matlab itself and in particular they should not have to download/install any JDK. Matlab is shipped with a JRE and that what I am starting from.
So far I have been able to use gradle via the tooling API from within Matlab and it works pretty good. I can compile most dependencies (C, C++) but fails to compile pure java code as gradle complains it cannot find “tools.jar”. This behavior seems very logical but I want to know if it is possible to consider the JDK like any other dependency and have gradle download it for me and subsequently use it to build some classes?
Thanks for any tips.