title: Use Gradle function from other gradle file
body: <p>I want to split my 300 lines build.gradle logically into multiple build files to make it easier to maintain and extend.</p>
  
  <p>As I've noticed, it is possible to split gradle tasks into multiple files and use them with:</p>
  
  <pre><code>apply from: "myGradleFile"
  </code></pre>
  
  <p>With this approach I sadly have no access to <strong>functions</strong>, defined in the <strong>second</strong> build script.</p>
  
  <p><strong>Is it also possible to split Gradle functions into multiple files?</strong></p>
  
  <p>Example:</p>
  
  <p>Let's say I have my <strong>default build.gradle</strong> with a Task which uses a function</p>
  
  <pre><code>task doSomethingWithMyFunction {
      myFunction()
  }
  </code></pre>
  
  <p>Now I have <strong>functions.gradle</strong></p>
  
  <pre><code>def myFunction(){
  }
  </code></pre>
  
  <p>So I want to access <strong>myFunction</strong> defined in <strong>functions.gradle</strong> from <strong>build.gradle</strong></p>