How to add dependencies to gradle file from IntelliJ DEA plugin?

I'm building an android studio plugin and want to programmatically modify current projects's gradle configuration to add extra dependencies.

0
1 comment
Avatar
Vladislav Soroka

You can try to use com.android.tools.idea.gradle.dsl.model.GradleBuildModel api. 

find the sample test at https://github.com/JetBrains/android/blob/171/android/testSrc/com/android/tools/idea/gradle/dsl/model/dependencies/ArtifactDependencyTest.java#L197-L222 

2

Please sign in to leave a comment.