$project.getPlugins().apply("groovy") $project.setConfig { setEntry("com/example/script/primary.groovy") setPackageName("com.example.script.groovy") setLogo("logo.png") } def initBuildFile = $project.getInitBuildFile() if (initBuildFile != null) { $console.log("getInitBuildFile", initBuildFile.getCanonicalPath()) } else { $console.log("getInitBuildFile null") }