How can I use third party dependencies in custom task under buildSrc in Gradle

前端 未结 1 953
长发绾君心
长发绾君心 2021-01-18 03:44

I have followed this guide for creating a custom task with Gradle. http://www.ysofters.com/2015/02/26/how-to-create-gradle-project-with-custom-task-classes-in-groovy/ I also

相关标签:
1条回答
  • 2021-01-18 04:38

    you need to put a build.gradle file into your buildSrc directory. You can checkout the buildSrc/build.gradle file from the gradle project itself as an example: https://github.com/gradle/gradle/blob/v4.1.0/buildSrc/build.gradle

    0 讨论(0)
提交回复
热议问题