Nick Kleban
11/03/2023, 5:38 PM*.kt
files in my build-logic
project that I use in convention plugins. It’s something like fun Project.doSomething()
and I want to use them in my app/build.gradle.kts
as well. Is it possible to achieve somehow?Wesley Hartford
11/03/2023, 6:13 PMbuildSrc
directory might be what you're looking for. Basically, it's for any code you want to add to the build itself. You can use it to define little helper functions up to full fledged project specific gradle plugins: https://docs.gradle.org/current/userguide/organizing_gradle_projects.html#sec:build_sourcesAdam S
11/03/2023, 6:44 PMbuild-logic/src/main/kotlin/my-cool-project-base.gradle.kts
that contains conventions for all subprojects, and apply it to all subprojects.ephemient
11/03/2023, 7:20 PMbuild-logic
and apply it, or pull in an existing plugin (possibly with apply false
), or use the old buildscript.dependencies.classpath