This message was deleted.
# community-support
s
This message was deleted.
1
m
Usually the answer to that question is always "convention plugins". Included builds can themselves include other builds so you can make a
builf-logic
build that is included by all the builds
☝️ 1
i
Thanks for your reply! I've tried to set it up. My
myproject.build-conventions.gradle.kts
file only consists of:
Copy code
fun Project.hello() { println("world") }
I then included the
build-conventions
project to my other project in the settings file, applied it via:
Copy code
id("myproject.build-conventions")
When I re-import the project in IDEA I can see gradle discovers and builds the conventions build and applies it. Still, I'ts not possible to invoke:
Copy code
hello()
//or
project.hello()
because of "unresolved referene". What am I missing? As for now I don't want to apply common config like java compiler options. I have an extension method for dependency configuration, and I would like to avoid repeating it in every build.
e
define the function in a regular
.kt
file and
import
it where you want to use it
i
That did the trick, thanks.