use of com.android.tools.idea.gradle.dsl.model.build.BuildScriptModel in project android by JetBrains.
the class GradleBuildModel method buildscript.
@NotNull
public BuildScriptModel buildscript() {
BuildScriptDslElement buildScriptDslElement = myGradleDslFile.getPropertyElement(BUILDSCRIPT_BLOCK_NAME, BuildScriptDslElement.class);
if (buildScriptDslElement == null) {
buildScriptDslElement = new BuildScriptDslElement(myGradleDslFile);
myGradleDslFile.setNewElement(BUILDSCRIPT_BLOCK_NAME, buildScriptDslElement);
}
return new BuildScriptModel(buildScriptDslElement);
}
Aggregations