AndroidPub
Published in

AndroidPub

Defining Dependencies in Gradle Kotlin DSL

A concise syntax to define reusable dependencies

Gradle + Kotlin = Awesome

Motivation

If you have a multi-module Gradle project (e.g. most Android projects), you may want to define all the dependencies in one place, then make references in sub-projects’ build file, keeping them consistent across the whole project.

--

--

--

The (retired) Pub(lication) for Android & Tech, focused on Development

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Yingxin Wu

Yingxin Wu

Software developer, architect, swimmer, scuba diver

More from Medium

Building async API using Ktor & Kotlin Coroutines

Unable to load io.netty.resolver.dns.macos.MacOSDnsServerAddressStreamProvider

How to Avoid Model Changes Nightmare in Java or Kotlin

Getting… rid of those missing android* source sets warnings on your KMP project