How would I migrate this snippet to Kotlin DSL? ``...
# gradle
m
How would I migrate this snippet to Kotlin DSL?
Copy code
idea {
    module {
        downloadSources = true
        downloadJavadoc = true
    }
}
On Kotlin DSL I get
[INVISIBLE_MEMBER] Cannot access 'downloadSources': it is private in 'IdeaModule'
and the same for downloadJavadoc
a
I think you can just delete them, they don't do anything any more. IntelliJ uses a new mechanism, and Gradle hasn't updated the idea plugin. But I'm not 100% certain.
v
But to answer the question, in Kotlin it is
Copy code
isDownloadSources = true
isDownloadJavadoc = true
a
update to my comment above: the isDownloadSources/Javadoc options do still work. I think I was confused because I usually work with KMP and I think that KGP usually automatically downloads the sources anyway.