Sorry for waking up an old question, but I think that what’s really missing with Gradle (or at least something I have yet to discover) is the ability to extract platform specific information and then choose the appropriate jars based on that.
Essentially, when we’re dealing with libraries which rely on native components we need to know:
- OS name (‘Windows, Linux, OSX, Solaris’, etc.). - OS architecture (‘x86, x86_64, sparc’, etc.). - OS architecture bit width (32, 64 bits).
That should be sufficient to know which jars (if any available) of a particular library are required on the class path. Now I think think this could be done by asking the ‘java.lang.System’ class directly in the Groovy scripts.
Is Gradle able to do this already?
Thanks!
JZM