Find the building tool and add dependency
已回答
How i can find what building tool (e.g.Maven, Gradle) the project is using and add a dependency programmatically?
请先登录再写评论。
Theodosios,
You can access all project's modules with:
Adding dependencies programmatically is not supported out of the box. You'll have to work with Psi model at this point.
Jakub Chrzanowski thanks for the answer but this returns me the .iml files.
How i can find from there the build.gradle or the pom.xml to add a debendency?
You can loop through the returned modules and check their types i.e. with:
or: