I recall there being a way to separate out depende...
# gradle
n
I recall there being a way to separate out dependency declarations from
build.gradle
into a separate file
dependencies.gradle
. Is it as simple as just copy-pasting the entire
dependencies { ... }
block into the new file and it just magically works?
o
you'll also need to
apply from: "dependencies.gradle"
in order to include it
n
ah, i also needed:
Copy code
// See explanation of these two lines here: l<https://github.com/gradle/kotlin-dsl/issues/843#issuecomment-384988820>
val implementation by configurations
val testImplementation by configurations
g
or you can just use dynamic syntax: “implementation”(“somedependency1.0")