How can i use value of variable in gradle from

Can i use a property or variable declared in Java classe , in build.gradle ! Or can i send a data from Java to gradle ???

What do you mean? Do you have

  • a Java properties file?
  • a Java source file from which you want to read a value?
  • Some compiled class file / jar?

i wanted to send properties from java to gradle using the ToolingAPI , i already found a solution with passing the properties like arguments to gradle .