Get classpath for gradle project using Android plugin

后端 未结 4 667
旧巷少年郎
旧巷少年郎 2021-01-13 08:55

I\'ve been building some tasks for a gradle multi-project build and have a need to get the class path for a project. The build script has projects that use the Java plugin

4条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-13 09:49

    project.android.applicationVariants.all { v ->
                v.getCompileClasspath(null).getFiles().each{
                    File f->
                        f.getAbsolutePath()//this is the one of classpath
                }
            }
    

提交回复
热议问题