code: void generateGradle(Definition def, String outputDir)
     {
        try
        {
           FileWriter bgfw = Utils.createFile("build.gradle", outputDir);
           BuildGradleGen bgGen = new BuildGradleGen();
           bgGen.generate(def, bgfw);
           bgfw.close();
        }
        catch (IOException ioe)
        {
           ioe.printStackTrace();
        }
     }
docs: generate gradle build.gradle
  
  @param def       Definition
  @param outputDir output directory