Nicholas Owens
05/04/2024, 4:25 AMbuild-logic
that I include into the main project with includeBuild
In it I have an empty function test()
and the IDE doesn't display any errors when using it in my other build scripts but when I try a gradle sync it's an unresolved referenceephemient
05/04/2024, 4:41 AMbuildscript {
dependencies {
classpath(":build-logic:unspecified")
or whatever to match the coordinates in your build-logic projectephemient
05/04/2024, 4:41 AMincludeBuild
makes it possible to include as a buildscript or plugin dependency, it doesn't automatically do so.ephemient
05/04/2024, 4:45 AMThomas Broyer
05/04/2024, 11:25 AMbuildSrc
that's guaranteed to be added in the build classpathNicholas Owens
05/04/2024, 4:11 PMbuildSrc
will work. I've however seen things advising against using buildSrcNicholas Owens
05/04/2024, 5:14 PM<http://libs.plugins.xyz|libs.plugins.xyz>
that I can use in the plugins block or do i need to explictly add an additional library for each plugin in my version catalog?Thomas Broyer
05/04/2024, 6:23 PMfun plugin(plugin: Provider<PluginDependency>) = plugin.map { "${it.pluginId}:${it.pluginId}.gradle.plugin:${it.version}" }
Nicholas Owens
05/05/2024, 5:38 AMfun DependencyHandler.implementation(dependency: Provider<PluginDependency>) {
implementation(dependency.map { "${it.pluginId}:${it.pluginId}.gradle.plugin:${it.version}" })
}
Thank you!