![]() ![]() For multi-project builds, there can be only one buildSrc directory, which has to sit in the root project directory. ![]() Upon discovery of the directory, Gradle automatically compiles and tests this code and puts it in the classpath of your build script. The directory buildSrc is treated as an included build. It was one of the most used approaches in recent days because of its testability. We can use this directory to enable kotlin-dsl and write logic related to custom configuration and share them across the project. What is buildSrcīuildSrc is a directory at the project root level which contains build info. We will apply Kotlin DSL + buildSrc step in our projects. Introductionĭifferent ways of managing Gradle dependencies: In this blog, we will learn how to migrate our Android application project from a Groovy-based Gradle system to a Kotlin-based Gradle system with the help of Kotlin DSL. Let’s explain using gradle kotlin dsl with buildSrc. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |