I'm not sure that you need this as a dependency, you just need to add an option to the VM call so that the library is at runtime.
At least in the first example I examined (samples / java / ant / SimpleSample), the built-in library is loaded at runtime with these lines:

So, the library is not a compiler, to find its own library at runtime, specify java.library.path to point to the directory in which the library can be found using the -D VM option in your IntelliJ.

NOTE. If on Mac OS X you need to create a copy / link of the .so shared library built on the same with the same name but the extension .dynlib
source share