Hi all! I'm trying to figure how to share function...
# gradle
b
Hi all! I'm trying to figure how to share functions in multi-project builds. With groovy based gradle scripts, this is as simple as that: Parent build.gradle:
Copy code
void hello() {
        println "Hello World!"
}
Child build.gradle:
Copy code
// Will print Hello World when gradle is invoked
hello()
This no longer works for kotlin based build scripts, the method reference is just considered as undefined. Any idea how can I best fill this gap? Should I raise an issue for such use case? 1 reply Hi @jre,
buildSrc
=> https://github.com/gradle/gradle-script-kotlin/blob/master/samples/multi-project-with-buildSrc/README.md There’s still a bit of ceremony setting up the
buildSrc
project but we’re working on it.