use of org.jetbrains.plugins.gradle.model.data.ScalaModelData in project intellij-community by JetBrains.
the class ScalaGradleProjectResolverExtension method populateModuleExtraModels.
@Override
public void populateModuleExtraModels(@NotNull IdeaModule gradleModule, @NotNull DataNode<ModuleData> ideModule) {
ScalaModel scalaModel = resolverCtx.getExtraProject(gradleModule, ScalaModel.class);
if (scalaModel != null) {
ScalaModelData scalaModelData = create(scalaModel);
ideModule.createChild(ScalaModelData.KEY, scalaModelData);
}
nextResolver.populateModuleExtraModels(gradleModule, ideModule);
}
use of org.jetbrains.plugins.gradle.model.data.ScalaModelData in project intellij-community by JetBrains.
the class ScalaGradleProjectResolverExtension method create.
@NotNull
private static ScalaModelData create(@NotNull ScalaModel scalaModel) {
ScalaModelData scalaModelData = new ScalaModelData(GradleConstants.SYSTEM_ID);
scalaModelData.setZincClasspath(scalaModel.getZincClasspath());
scalaModelData.setScalaClasspath(scalaModel.getScalaClasspath());
scalaModelData.setScalaCompileOptions(create((scalaModel.getScalaCompileOptions())));
scalaModelData.setSourceCompatibility(scalaModel.getSourceCompatibility());
scalaModelData.setTargetCompatibility(scalaModel.getTargetCompatibility());
return scalaModelData;
}
Aggregations