How to download dependency sources for Gradle project in IDEA?

I’ve got problems with the following configuration:

idea {
    module {
        // if you hate browsing Javadoc
        downloadJavadoc = false

        // and love reading sources :)
        downloadSources = true
    }
}

repositories {
    mavenLocal()
    mavenCentral()
}

When removed mavenLocal() sources were downloaded and attached.

Leave a Comment