ArtifactFinder icon indicating copy to clipboard operation
ArtifactFinder copied to clipboard

Support `gradle.kts` files

Open rcd27 opened this issue 5 years ago • 3 comments
trafficstars

When Gradle scripts are written in Gradle Kotlin DSL (.kts), plugin says "dependencies added", but they are not.

rcd27 avatar Dec 06 '19 16:12 rcd27

Seems like com.android.tools.idea.gradle.dsl.api.dependencies.DependenciesModel with its addArtifact(..) function is only implemented for *.gradle files. All logic about parsing artifact String and placing it to the actual Gradle module is solved by *.gradle.dsl.api.* .

rcd27 avatar Dec 06 '19 17:12 rcd27

i guess it will be fixed when studio has better support for them :man_shrugging:

yigit avatar Feb 07 '20 06:02 yigit

@yigit this might be fixed in AS 4.0, but haven't checked yet.

rcd27 avatar May 29 '20 07:05 rcd27