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
octylFractal
04/25/2019, 7:18 PM
you'll also need to
apply from: "dependencies.gradle"
in order to include it
n
Nezteb
04/25/2019, 7:41 PM
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
gildor
04/26/2019, 2:03 AM
or you can just use dynamic syntax:
“implementation”(“somedependency1.0")