Currently the buildpath (classpath) is hard coded to ["compileOnly", "runtime"] which has a couple of issues.
a) it includes runtime configuration which is not always desirable
b) it does not allow for BOM dependencies supported since gradle 4.6 and which inherit from the implementation configuration. For example, the new compileClasspath and runtimeClasspath configurations [1].
Currently the buildpath (classpath) is hard coded to
["compileOnly", "runtime"]
which has a couple of issues.a) it includes
runtime
configuration which is not always desirable b) it does not allow for BOM dependencies supported since gradle4.6
and which inherit from theimplementation
configuration. For example, the newcompileClasspath
andruntimeClasspath
configurations [1].[1] https://docs.gradle.org/4.6/userguide/managing_transitive_dependencies.html#sec:bom_import
At some point in the future you may want to consider changing the default to simply
["compileClasspath"]
.