Some nice stuff here. Thanks. I’ve a couple of tips I’ll add. As projects grow you’ll end up with a lot of dependencies, and many won’t be in a BOM and will needs versions. So…
val assertJVersion: String by project
val jupiterVersion: String by project
val mockkVersion: String by project// ...dependencies {
listOf(
"org.junit.jupiter:junit-jupiter-api:$jupiterVersion",
"org.assertj:assertj-core:$assertJVersion",
"io.mockk:mockk:$mockkVersion"
)
.forEach { testImplementation(it) }
}First throw versions definitions (i.e. assertJVersion=3.14.0) into your gradle.properties using by project to get them. Second, group dependencies of a type with listOf to keep things tidy and avoid typing the implementation type over and over.






