Guido Perre
06/06/2022, 5:09 PMVampire
06/06/2022, 5:55 PMGuido Perre
06/06/2022, 5:59 PMVampire
06/06/2022, 6:01 PMGuido Perre
06/06/2022, 6:15 PMbuildscript {
apply("gradle/classpath.gradle.kts")
}
but i have no luck 😞
I also created a plugin that sets the buildscript block but I get the following error message:
Cannot change dependencies of dependency configuration ':classpath' after it has been resolved.
Vampire
06/06/2022, 8:51 PMapply(from = "...")
and most likely outside the buildscript
block. But I strongly advise against traditional script plugins, especially with Kotlin DSL as you there do not get the type-safe accessors generated. Instead you should use precompiled script plugins in an included build or, if you prefer, buildSrc
. And you should read the documentation as it advised.
Just trying out stuff blindly of course does not work. But hey, an hour of trial and error can save you 5 minutes reading documentation. 😉Guido Perre
06/06/2022, 10:30 PMVampire
06/06/2022, 11:09 PM