Configuring Gradle wrapper to used distribution with sources in IntelliJ IDE

Once after I create a gradle project in IntelliJ using the default gradle wrapper and create directories option I see the project structure gets created with build.gradle file.

IntelliJ tips me to “You can configure Gradle wrapper to use distribution with sources. It will provide IDE with Gradle API/DSL documentation” - but I am not able to attach the sources.

We are using a Nexus repository.

Already answered on Stack Overflow. Please don’t double-post.

Attach sources to what?

The tip is related to documentation provided when editing .gradle files. When your Gradle build uses full distribution (gradle--all.zip) IntelliJ can find documentation there. When using binary distribution (gradle-*.-bin.zip) it misses resources used to generate that support.

Linking to the SO post is helpful: http://stackoverflow.com/questions/26662271/attaching-gradle-sources-in-intellij :slight_smile: