title: Is it possible to call a Java method from gradle build script?
body: <p>Basically I want to have in the build.gradle something like this:
  version = Version.getVersion();</p>
  
  <p>I have a class that contains the version of my application and I want to use that version when I create the jar in the manifest file.</p>
  
  <p>How can be this achieved?</p>