Slackbot
02/05/2024, 10:59 AMMartin
02/05/2024, 11:13 AMbuilf-logic
build that is included by all the buildsIstván Mészáros
02/05/2024, 2:06 PMmyproject.build-conventions.gradle.kts
file only consists of:
fun Project.hello() { println("world") }
I then included the build-conventions
project to my other project in the settings file, applied it via:
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:
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.ephemient
02/05/2024, 2:20 PM.kt
file and import
it where you want to use itIstván Mészáros
02/05/2024, 2:42 PM