Gradle project javadocs missing

Hi, trying to display java api docs in Intellij in Gradle project, this works out of the box in maven, how do you do that in Gradle?

Tried adding apply plugin: ‘idea’ and running gradle idea with added downloadJavadoc = true didn’t help.