Gradle-intellij-plugin question

Hello, I am trying to declare an intellij source dependency while compiling my project. So far, wherever I have looked I cannot add it. Is there any way to declare something like intellijDependency (dependencyName) in dependencies {} ? The resource is downloaded:
intellij {
version ‘2016.3.4’
but I cannot access it and compiling fails if I don`t declare it.

Thank you.