I know we can write String value in build.gradle. Now I wonder that writing some specific java code in build.gradle. is it possible to do this? I have sample code below