From 0ba54087a18539d0fbe4d8e985e18b01bfe67757 Mon Sep 17 00:00:00 2001 From: Julien HENRY Date: Tue, 14 Jun 2016 13:19:08 +0200 Subject: SONAR-7727 Remove deprecated stuff on ProjectDefinition --- .../project-builder-plugin/src/main/java/CreateSubProjects.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'it') diff --git a/it/it-plugins/project-builder-plugin/src/main/java/CreateSubProjects.java b/it/it-plugins/project-builder-plugin/src/main/java/CreateSubProjects.java index b5cec0a10e3..b15196f38fc 100644 --- a/it/it-plugins/project-builder-plugin/src/main/java/CreateSubProjects.java +++ b/it/it-plugins/project-builder-plugin/src/main/java/CreateSubProjects.java @@ -1,3 +1,4 @@ + /* * SonarQube * Copyright (C) 2009-2016 SonarSource SA @@ -17,13 +18,12 @@ * along with this program; if not, write to the Free Software Foundation, * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ +import java.io.File; import org.sonar.api.batch.bootstrap.ProjectBuilder; import org.sonar.api.batch.bootstrap.ProjectDefinition; import org.sonar.api.batch.bootstrap.ProjectReactor; import org.sonar.api.config.Settings; -import java.io.File; - /** * This plugin relates to projects/project-builder sample */ @@ -58,7 +58,7 @@ public final class CreateSubProjects extends ProjectBuilder { subProject.setKey("com.sonarsource.it.projects.batch:project-builder-module-a"); subProject.setVersion(root.getVersion()); subProject.setName("Module A"); - subProject.setSourceDirs("src"); + subProject.addSources("src"); root.addSubProject(subProject); return subProject; } @@ -70,7 +70,7 @@ public final class CreateSubProjects extends ProjectBuilder { subProject.setKey("com.sonarsource.it.projects.batch:project-builder-module-b"); subProject.setVersion(root.getVersion()); subProject.setName("Module B"); - subProject.addSourceFiles("src/HelloB.java"); + subProject.addSources("src/HelloB.java"); root.addSubProject(subProject); return subProject; } -- cgit v1.2.3