Javier
03/25/2020, 3:10 PMorg.gradle.kotlin.dsl
but I can't find it.Javier
03/25/2020, 3:11 PMJavier
03/25/2020, 3:27 PMeskatos
03/25/2020, 4:58 PMJavier
03/25/2020, 5:10 PMbuildSrc
, then I got implementation
cant be used directly so I have to create my own function directly to use it. This can be tedious because there are a lot of functions, even I have two different implementation
...
fun DependencyHandler.implementation(dependencyNotation: Any): Dependency? {
return add("implementation", dependencyNotation)
}
eskatos
03/25/2020, 5:11 PMplugins {}
block to apply other pluginseskatos
03/25/2020, 5:11 PMJavier
03/25/2020, 5:12 PMplugin {}
block then later it can't compile where I use
plugins {
MyPlugin
}
eskatos
03/25/2020, 5:12 PMMyPlugin
eskatos
03/25/2020, 5:13 PMplugins {
id("MyPlugin")
}
Javier
03/25/2020, 5:13 PMeskatos
03/25/2020, 5:16 PMapply(plugin = Plugins.androidLibrary)
apply<AndroidBaseSetupPlugin>()
apply<AndroidBaseAppSetupPlugin>()
by a plugins {}
block that applies the same plugins (need to be by plugin ID)
then you’ll get the type safe accessors to e.g. implementation()
Javier
03/25/2020, 5:17 PMeskatos
03/25/2020, 5:18 PMJavier
03/25/2020, 5:32 PMeskatos
03/26/2020, 8:43 AM