Gradle custom plugin : add dependency from extension object

前端 未结 4 584
走了就别回头了
走了就别回头了 2021-02-05 05:07

I\'m trying to write a plugin which adds dependencies to project.dependencies according to informations gathered in the plugin extension object. But it seems to be

4条回答
  •  抹茶落季
    2021-02-05 05:48

    The easiest way to do this:

    project.dependencies {
      delegate.compile("com.android.support:appcompat-v7:25.0.1")
    }
    

提交回复
热议问题