protected void configureEclipseClasspath(Project project, SourceSet testIntegrationSourceSet) { EclipseModel eclipseModel = GradleUtil.getExtension(project, EclipseModel.class); EclipseClasspath eclipseClasspath = eclipseModel.getClasspath(); Collection<Configuration> plusConfigurations = eclipseClasspath.getPlusConfigurations(); Configuration configuration = GradleUtil.getConfiguration( project, testIntegrationSourceSet.getRuntimeConfigurationName()); plusConfigurations.add(configuration); }
protected void configureIdeaModule(Project project, SourceSet testIntegrationSourceSet) { IdeaModel ideaModel = GradleUtil.getExtension(project, IdeaModel.class); IdeaModule ideaModule = ideaModel.getModule(); Map<String, Map<String, Collection<Configuration>>> scopes = ideaModule.getScopes(); Map<String, Collection<Configuration>> testScope = scopes.get("TEST"); Collection<Configuration> plusConfigurations = testScope.get("plus"); Configuration configuration = GradleUtil.getConfiguration( project, testIntegrationSourceSet.getRuntimeConfigurationName()); plusConfigurations.add(configuration); }