Search in sources :

Example 1 with IdeaScalaConfigurer

use of org.gradle.plugins.ide.idea.internal.IdeaScalaConfigurer in project gradle by gradle.

the class IdeaPlugin method configureForScalaPlugin.

private void configureForScalaPlugin() {
    project.getPlugins().withType(ScalaBasePlugin.class, new Action<ScalaBasePlugin>() {

        @Override
        public void execute(ScalaBasePlugin scalaBasePlugin) {
            ideaModuleDependsOnRoot();
        }
    });
    project.getPlugins().withType(ScalaLanguagePlugin.class, new Action<ScalaLanguagePlugin>() {

        @Override
        public void execute(ScalaLanguagePlugin scalaLanguagePlugin) {
            ideaModuleDependsOnRoot();
        }
    });
    if (isRoot(project)) {
        new IdeaScalaConfigurer(project).configure();
    }
}
Also used : ScalaLanguagePlugin(org.gradle.language.scala.plugins.ScalaLanguagePlugin) ScalaBasePlugin(org.gradle.api.plugins.scala.ScalaBasePlugin) IdeaScalaConfigurer(org.gradle.plugins.ide.idea.internal.IdeaScalaConfigurer)

Aggregations

ScalaBasePlugin (org.gradle.api.plugins.scala.ScalaBasePlugin)1 ScalaLanguagePlugin (org.gradle.language.scala.plugins.ScalaLanguagePlugin)1 IdeaScalaConfigurer (org.gradle.plugins.ide.idea.internal.IdeaScalaConfigurer)1