]> source.dussan.org Git - sonarqube.git/commitdiff
Remove org.sonar.api.database.daos.MeasuresDao, deprecated since v2.3 and move some...
authorSimon Brandhof <simon.brandhof@gmail.com>
Fri, 17 Jan 2014 23:21:22 +0000 (00:21 +0100)
committerSimon Brandhof <simon.brandhof@gmail.com>
Fri, 17 Jan 2014 23:21:22 +0000 (00:21 +0100)
19 files changed:
plugins/sonar-core-plugin/pom.xml
plugins/sonar-dbcleaner-plugin/pom.xml
plugins/sonar-design-plugin/pom.xml
sonar-batch/pom.xml
sonar-batch/src/main/java/org/sonar/batch/scan/ModuleScanContainer.java
sonar-core/pom.xml
sonar-deprecated/pom.xml
sonar-deprecated/src/main/java/org/sonar/api/database/daos/MeasuresDao.java [deleted file]
sonar-deprecated/src/main/java/org/sonar/api/i18n/RuleI18n.java [new file with mode: 0644]
sonar-deprecated/src/main/java/org/sonar/api/web/GwtExtension.java [new file with mode: 0644]
sonar-deprecated/src/main/java/org/sonar/api/web/GwtPage.java [new file with mode: 0644]
sonar-plugin-api/src/main/java/org/sonar/api/i18n/RuleI18n.java [deleted file]
sonar-plugin-api/src/main/java/org/sonar/api/web/GwtExtension.java [deleted file]
sonar-plugin-api/src/main/java/org/sonar/api/web/GwtPage.java [deleted file]
sonar-server/pom.xml
sonar-server/src/main/java/org/sonar/server/platform/Platform.java
sonar-server/src/main/java/org/sonar/server/rule/RubyRuleService.java
sonar-server/src/test/java/org/sonar/server/rule/RubyRuleServiceTest.java
sonar-testing-harness/pom.xml

index bdb51f62a44e9bc5306691423e27574f55d5df49..058a7b19e17db1df63f49718ae18eaf4216a34ad 100644 (file)
     </dependency>
 
     <!-- unit tests -->
+    <dependency>
+      <groupId>org.codehaus.sonar</groupId>
+      <artifactId>sonar-core</artifactId>
+      <version>${project.version}</version>
+      <type>test-jar</type>
+      <scope>test</scope>
+    </dependency>
     <dependency>
       <groupId>org.codehaus.sonar</groupId>
       <artifactId>sonar-testing-harness</artifactId>
index 128a599f763cdb2b20d6beb03ebc7287da342f4d..c35942f78e5fe45360cbfd2f0b45b2d4c2868314 100644 (file)
       <artifactId>jsr305</artifactId>
       <scope>provided</scope>
     </dependency>
+    <dependency>
+      <groupId>org.codehaus.sonar</groupId>
+      <artifactId>sonar-core</artifactId>
+      <scope>provided</scope>
+    </dependency>
     <dependency>
       <groupId>org.codehaus.sonar</groupId>
       <artifactId>sonar-plugin-api</artifactId>
index 3880e65121e94e0add234b8b975685f64d21513a..7c3b3e9b45e94fa4bc855b9aad8b48d5cb9bffc9 100644 (file)
       <artifactId>sonar-core</artifactId>
       <scope>provided</scope>
     </dependency>
+    <dependency>
+      <groupId>org.codehaus.sonar</groupId>
+      <artifactId>sonar-deprecated</artifactId>
+    </dependency>
     <dependency>
       <groupId>org.codehaus.sonar</groupId>
       <artifactId>sonar-plugin-api</artifactId>
index 3a34a6721dadd34ac39da3129b668713871c6613..238af5901aba3f38d192604bb9e487a36d12c146 100644 (file)
     </dependency>
 
     <!-- unit tests -->
+    <dependency>
+      <groupId>org.codehaus.sonar</groupId>
+      <artifactId>sonar-core</artifactId>
+      <type>test-jar</type>
+      <scope>test</scope>
+      <version>${project.version}</version>
+    </dependency>
     <dependency>
       <groupId>org.codehaus.sonar</groupId>
       <artifactId>sonar-testing-harness</artifactId>
index e2699fe0572a68e9bfe2ee13d15b44ee8a978972..ab083e6389e506dd029c7b9149688cf190786908 100644 (file)
@@ -121,7 +121,6 @@ public class ModuleScanContainer extends ComponentContainer {
       getComponentByType(ResourcePersister.class).getSnapshot(module),
 
       TimeMachineConfiguration.class,
-      org.sonar.api.database.daos.MeasuresDao.class,
       DefaultSensorContext.class,
       BatchExtensionDictionnary.class,
       DefaultTimeMachine.class,
index bede66d160e05e4846feea72fcd42581c8bf1303..dfc286d72f89031204e0d6c10d6288000cb4cbfc 100644 (file)
       <groupId>org.mybatis</groupId>
       <artifactId>mybatis</artifactId>
     </dependency>
+    <dependency>
+      <groupId>org.codehaus.sonar</groupId>
+      <artifactId>sonar-deprecated</artifactId>
+    </dependency>
     <dependency>
       <groupId>org.codehaus.sonar</groupId>
       <artifactId>sonar-update-center-common</artifactId>
index 784df608202039c50efac7405eca4487577e231c..3c1cd8b387c0781f9f5340bd8c93346f90777c36 100644 (file)
   <name>SonarQube :: Deprecated</name>
 
   <dependencies>
-    <dependency>
-      <groupId>${project.groupId}</groupId>
-      <artifactId>sonar-core</artifactId>
-    </dependency>
     <dependency>
       <groupId>${project.groupId}</groupId>
       <artifactId>sonar-plugin-api</artifactId>
diff --git a/sonar-deprecated/src/main/java/org/sonar/api/database/daos/MeasuresDao.java b/sonar-deprecated/src/main/java/org/sonar/api/database/daos/MeasuresDao.java
deleted file mode 100644 (file)
index 866bc0d..0000000
+++ /dev/null
@@ -1,79 +0,0 @@
-/*
- * SonarQube, open source software quality management tool.
- * Copyright (C) 2008-2013 SonarSource
- * mailto:contact AT sonarsource DOT com
- *
- * SonarQube is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 3 of the License, or (at your option) any later version.
- *
- * SonarQube is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this program; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
- */
-package org.sonar.api.database.daos;
-
-import org.sonar.api.measures.Metric;
-
-import java.util.Collection;
-import java.util.List;
-
-/**
- * @deprecated since 2.3
- */
-@Deprecated
-public class MeasuresDao {
-
-  private org.sonar.jpa.dao.MeasuresDao target;
-
-  public MeasuresDao(org.sonar.jpa.dao.MeasuresDao target) {
-    this.target = target;
-  }
-
-  public Metric getMetric(Metric metric) {
-    return target.getMetric(metric);
-  }
-
-  public List<Metric> getMetrics(List<Metric> metrics) {
-    return target.getMetrics(metrics);
-  }
-
-  public Metric getMetric(String metricName) {
-    return target.getMetric(metricName);
-  }
-
-  public Collection<Metric> getMetrics() {
-    return target.getMetrics();
-  }
-
-  public Collection<Metric> getEnabledMetrics() {
-    return target.getEnabledMetrics();
-  }
-
-  public Collection<Metric> getUserDefinedMetrics() {
-    return target.getUserDefinedMetrics();
-  }
-
-  public void disableAutomaticMetrics() {
-    target.disableAutomaticMetrics();
-  }
-
-  public void registerMetrics(Collection<Metric> metrics) {
-    target.registerMetrics(metrics);
-  }
-
-  public void persistMetric(Metric metric) {
-    target.persistMetric(metric);
-  }
-
-  public void disabledMetrics(Collection<Metric> metrics) {
-    target.disabledMetrics(metrics);
-  }
-
-}
diff --git a/sonar-deprecated/src/main/java/org/sonar/api/i18n/RuleI18n.java b/sonar-deprecated/src/main/java/org/sonar/api/i18n/RuleI18n.java
new file mode 100644 (file)
index 0000000..aaba70c
--- /dev/null
@@ -0,0 +1,152 @@
+/*
+ * SonarQube, open source software quality management tool.
+ * Copyright (C) 2008-2013 SonarSource
+ * mailto:contact AT sonarsource DOT com
+ *
+ * SonarQube is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 3 of the License, or (at your option) any later version.
+ *
+ * SonarQube is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
+ */
+package org.sonar.api.i18n;
+
+import org.sonar.api.BatchComponent;
+import org.sonar.api.ServerComponent;
+import org.sonar.api.rules.Rule;
+
+import javax.annotation.CheckForNull;
+
+import java.util.Locale;
+
+/**
+ * {@link I18n}-companion component that provides translation facilities for rule names, descriptions and parameter names.
+ * 
+ * @since 3.2
+ * @deprecated in 4.1. Rules are not localized anymore. See http://jira.codehaus.org/browse/SONAR-4885
+ */
+@Deprecated
+public interface RuleI18n extends ServerComponent, BatchComponent {
+
+  /**
+   * Returns the localized name of the rule identified by its repository key and rule key.
+   * <br>
+   * If the name is not found in the given locale, then the default name is returned (the English one).
+   * This method could return null if no default name found. This is the cause for instance the copies rules.
+   *
+   * @param repositoryKey the repository key
+   * @param ruleKey the rule key
+   * @param locale not used
+   * @return the translated name of the rule, or the default English one if the given locale is not supported, or null
+   * @deprecated since 4.1. Rules are not localized anymore. See http://jira.codehaus.org/browse/SONAR-4885
+   */
+  @Deprecated
+  @CheckForNull
+  String getName(String repositoryKey, String ruleKey, Locale locale);
+
+  /**
+   * Returns the name of the rule identified by its repository key and rule key.
+   * <br>
+   * This method could return null if no default name found. This is the cause for instance the copies rules.
+   *
+   * @param repositoryKey the repository key
+   * @param ruleKey the rule key
+   * @return the nullable name of the rule
+   * @since 4.1
+   */
+  @CheckForNull
+  String getName(String repositoryKey, String ruleKey);
+
+  /**
+   * Returns the localized name or the name of the rule.
+   * <br>
+   * If the name is not found in the given locale, then the default name is returned (the English one).
+   * It the default name is not found, then the rule name is returned.
+   *
+   * @param rule the rule
+   * @param locale the locale to translate into
+   * @return the translated name of the rule, or the default English one if the given locale is not supported, or the rule name.
+   * @deprecated since 4.1. Rules are not localized anymore. See http://jira.codehaus.org/browse/SONAR-4885
+   */
+  @Deprecated
+  @CheckForNull
+  String getName(Rule rule, Locale locale);
+
+  /**
+   * Returns the name of the rule.
+   * <br>
+   * It the default name is not found, then the rule name is returned.
+   *
+   * @param rule the rule
+   * @return the nullable name of the rule
+   * @since 4.1
+   */
+  @CheckForNull
+  String getName(Rule rule);
+
+  /**
+   * Returns the localized description of the rule identified by its repository key and rule key.
+   * <br>
+   * If the description is not found in the given locale, then the default description is returned (the English one).
+   * As a rule must have a description (this is a constraint in Sonar), this method never returns null.
+   *
+   * @param repositoryKey the repository key
+   * @param ruleKey the rule key
+   * @param locale  the locale to translate into
+   * @return the translated description of the rule, or the default English one if the given locale is not supported
+   * @deprecated since 4.1. Rules are not localized anymore. See http://jira.codehaus.org/browse/SONAR-4885
+   */
+  @Deprecated
+  String getDescription(String repositoryKey, String ruleKey, Locale locale);
+
+  /**
+   * Returns the description of the rule identified by its repository key and rule key.
+   * <br>
+   * As a rule must have a description (this is a constraint in SonarQube), this method never returns null.
+   *
+   * @param repositoryKey the repository key
+   * @param ruleKey the rule key
+   * @return the description of the rule
+   * @since 4.1
+   */
+  String getDescription(String repositoryKey, String ruleKey);
+
+  /**
+   * Returns the localized name of the rule parameter identified by the rules's key and repository key, and by the parameter key.
+   * <br>
+   * If the name is not found in the given locale, then the English translation is searched and return if found. Otherwise,
+   * this method returns null (= if no translation can be found).
+   *
+   * @param repositoryKey the repository key
+   * @param ruleKey the rule key
+   * @param paramKey the parameter key
+   * @param locale the locale to translate into
+   * @return the translated name of the rule parameter, or the default English one if the given locale is not supported, or null if
+   *         no translation can be found.
+   * @deprecated since 4.1. Rules are not localized anymore. See http://jira.codehaus.org/browse/SONAR-4885
+   */
+  @Deprecated
+  @CheckForNull
+  String getParamDescription(String repositoryKey, String ruleKey, String paramKey, Locale locale);
+
+  /**
+   * Returns the name of the rule parameter identified by the rules's key and repository key, and by the parameter key.
+   *
+   * @param repositoryKey the repository key
+   * @param ruleKey the rule key
+   * @param paramKey the parameter key
+   * @return the nullable name of the rule parameter
+   * @since 4.1
+   */
+  @CheckForNull
+  String getParamDescription(String repositoryKey, String ruleKey, String paramKey);
+
+}
diff --git a/sonar-deprecated/src/main/java/org/sonar/api/web/GwtExtension.java b/sonar-deprecated/src/main/java/org/sonar/api/web/GwtExtension.java
new file mode 100644 (file)
index 0000000..2b099ce
--- /dev/null
@@ -0,0 +1,31 @@
+/*
+ * SonarQube, open source software quality management tool.
+ * Copyright (C) 2008-2013 SonarSource
+ * mailto:contact AT sonarsource DOT com
+ *
+ * SonarQube is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 3 of the License, or (at your option) any later version.
+ *
+ * SonarQube is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
+ */
+package org.sonar.api.web;
+
+import org.sonar.api.ServerExtension;
+
+/**
+ * @since 1.10
+ * @deprecated in 3.7. Replaced by Ruby on Rails extensions
+ */
+@Deprecated
+public interface GwtExtension extends ServerExtension {
+  String getGwtId();
+}
diff --git a/sonar-deprecated/src/main/java/org/sonar/api/web/GwtPage.java b/sonar-deprecated/src/main/java/org/sonar/api/web/GwtPage.java
new file mode 100644 (file)
index 0000000..558a571
--- /dev/null
@@ -0,0 +1,33 @@
+/*
+ * SonarQube, open source software quality management tool.
+ * Copyright (C) 2008-2013 SonarSource
+ * mailto:contact AT sonarsource DOT com
+ *
+ * SonarQube is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 3 of the License, or (at your option) any later version.
+ *
+ * SonarQube is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
+ */
+package org.sonar.api.web;
+
+/**
+ * @since 1.11
+ * @deprecated in 3.7. Replaced by Ruby on Rails pages.
+ */
+@Deprecated
+public abstract class GwtPage implements Page, GwtExtension {
+
+  public final String getId() {
+    return getGwtId();
+  }
+
+}
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/i18n/RuleI18n.java b/sonar-plugin-api/src/main/java/org/sonar/api/i18n/RuleI18n.java
deleted file mode 100644 (file)
index 2970be3..0000000
+++ /dev/null
@@ -1,150 +0,0 @@
-/*
- * SonarQube, open source software quality management tool.
- * Copyright (C) 2008-2013 SonarSource
- * mailto:contact AT sonarsource DOT com
- *
- * SonarQube is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 3 of the License, or (at your option) any later version.
- *
- * SonarQube is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this program; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
- */
-package org.sonar.api.i18n;
-
-import org.sonar.api.BatchComponent;
-import org.sonar.api.ServerComponent;
-import org.sonar.api.rules.Rule;
-
-import javax.annotation.CheckForNull;
-
-import java.util.Locale;
-
-/**
- * {@link I18n}-companion component that provides translation facilities for rule names, descriptions and parameter names.
- * 
- * @since 3.2
- */
-public interface RuleI18n extends ServerComponent, BatchComponent {
-
-  /**
-   * Returns the localized name of the rule identified by its repository key and rule key.
-   * <br>
-   * If the name is not found in the given locale, then the default name is returned (the English one).
-   * This method could return null if no default name found. This is the cause for instance the copies rules.
-   *
-   * @param repositoryKey the repository key
-   * @param ruleKey the rule key
-   * @param locale not used
-   * @return the translated name of the rule, or the default English one if the given locale is not supported, or null
-   * @deprecated since 4.1. Rules are not localized anymore. See http://jira.codehaus.org/browse/SONAR-4885
-   */
-  @Deprecated
-  @CheckForNull
-  String getName(String repositoryKey, String ruleKey, Locale locale);
-
-  /**
-   * Returns the name of the rule identified by its repository key and rule key.
-   * <br>
-   * This method could return null if no default name found. This is the cause for instance the copies rules.
-   *
-   * @param repositoryKey the repository key
-   * @param ruleKey the rule key
-   * @return the nullable name of the rule
-   * @since 4.1
-   */
-  @CheckForNull
-  String getName(String repositoryKey, String ruleKey);
-
-  /**
-   * Returns the localized name or the name of the rule.
-   * <br>
-   * If the name is not found in the given locale, then the default name is returned (the English one).
-   * It the default name is not found, then the rule name is returned.
-   *
-   * @param rule the rule
-   * @param locale the locale to translate into
-   * @return the translated name of the rule, or the default English one if the given locale is not supported, or the rule name.
-   * @deprecated since 4.1. Rules are not localized anymore. See http://jira.codehaus.org/browse/SONAR-4885
-   */
-  @Deprecated
-  @CheckForNull
-  String getName(Rule rule, Locale locale);
-
-  /**
-   * Returns the name of the rule.
-   * <br>
-   * It the default name is not found, then the rule name is returned.
-   *
-   * @param rule the rule
-   * @return the nullable name of the rule
-   * @since 4.1
-   */
-  @CheckForNull
-  String getName(Rule rule);
-
-  /**
-   * Returns the localized description of the rule identified by its repository key and rule key.
-   * <br>
-   * If the description is not found in the given locale, then the default description is returned (the English one).
-   * As a rule must have a description (this is a constraint in Sonar), this method never returns null.
-   *
-   * @param repositoryKey the repository key
-   * @param ruleKey the rule key
-   * @param locale  the locale to translate into
-   * @return the translated description of the rule, or the default English one if the given locale is not supported
-   * @deprecated since 4.1. Rules are not localized anymore. See http://jira.codehaus.org/browse/SONAR-4885
-   */
-  @Deprecated
-  String getDescription(String repositoryKey, String ruleKey, Locale locale);
-
-  /**
-   * Returns the description of the rule identified by its repository key and rule key.
-   * <br>
-   * As a rule must have a description (this is a constraint in SonarQube), this method never returns null.
-   *
-   * @param repositoryKey the repository key
-   * @param ruleKey the rule key
-   * @return the description of the rule
-   * @since 4.1
-   */
-  String getDescription(String repositoryKey, String ruleKey);
-
-  /**
-   * Returns the localized name of the rule parameter identified by the rules's key and repository key, and by the parameter key.
-   * <br>
-   * If the name is not found in the given locale, then the English translation is searched and return if found. Otherwise,
-   * this method returns null (= if no translation can be found).
-   *
-   * @param repositoryKey the repository key
-   * @param ruleKey the rule key
-   * @param paramKey the parameter key
-   * @param locale the locale to translate into
-   * @return the translated name of the rule parameter, or the default English one if the given locale is not supported, or null if
-   *         no translation can be found.
-   * @deprecated since 4.1. Rules are not localized anymore. See http://jira.codehaus.org/browse/SONAR-4885
-   */
-  @Deprecated
-  @CheckForNull
-  String getParamDescription(String repositoryKey, String ruleKey, String paramKey, Locale locale);
-
-  /**
-   * Returns the name of the rule parameter identified by the rules's key and repository key, and by the parameter key.
-   *
-   * @param repositoryKey the repository key
-   * @param ruleKey the rule key
-   * @param paramKey the parameter key
-   * @return the nullable name of the rule parameter
-   * @since 4.1
-   */
-  @CheckForNull
-  String getParamDescription(String repositoryKey, String ruleKey, String paramKey);
-
-}
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/web/GwtExtension.java b/sonar-plugin-api/src/main/java/org/sonar/api/web/GwtExtension.java
deleted file mode 100644 (file)
index 2b099ce..0000000
+++ /dev/null
@@ -1,31 +0,0 @@
-/*
- * SonarQube, open source software quality management tool.
- * Copyright (C) 2008-2013 SonarSource
- * mailto:contact AT sonarsource DOT com
- *
- * SonarQube is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 3 of the License, or (at your option) any later version.
- *
- * SonarQube is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this program; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
- */
-package org.sonar.api.web;
-
-import org.sonar.api.ServerExtension;
-
-/**
- * @since 1.10
- * @deprecated in 3.7. Replaced by Ruby on Rails extensions
- */
-@Deprecated
-public interface GwtExtension extends ServerExtension {
-  String getGwtId();
-}
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/web/GwtPage.java b/sonar-plugin-api/src/main/java/org/sonar/api/web/GwtPage.java
deleted file mode 100644 (file)
index 558a571..0000000
+++ /dev/null
@@ -1,33 +0,0 @@
-/*
- * SonarQube, open source software quality management tool.
- * Copyright (C) 2008-2013 SonarSource
- * mailto:contact AT sonarsource DOT com
- *
- * SonarQube is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 3 of the License, or (at your option) any later version.
- *
- * SonarQube is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this program; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
- */
-package org.sonar.api.web;
-
-/**
- * @since 1.11
- * @deprecated in 3.7. Replaced by Ruby on Rails pages.
- */
-@Deprecated
-public abstract class GwtPage implements Page, GwtExtension {
-
-  public final String getId() {
-    return getGwtId();
-  }
-
-}
index 933b38ac8143a100b60de8c8e64dde59ab774e68..d3426fd50c144559e22680e3700e2d912bfbc015 100644 (file)
       <scope>provided</scope>
     </dependency>
     <!-- unit tests -->
+    <dependency>
+      <groupId>org.codehaus.sonar</groupId>
+      <artifactId>sonar-core</artifactId>
+      <version>${project.version}</version>
+      <type>test-jar</type>
+      <scope>test</scope>
+    </dependency>
     <dependency>
       <groupId>org.skyscreamer</groupId>
       <artifactId>jsonassert</artifactId>
index b82589aa1f97a955ea08edd1bdc50a56d242074f..b09d07d3b8fcb7f08bf5e8d59d7342603de8f235 100644 (file)
@@ -245,7 +245,6 @@ public final class Platform {
     servicesContainer.addSingleton(CodeColorizers.class);
     servicesContainer.addComponent(RulesDao.class, false);
     servicesContainer.addComponent(MeasuresDao.class, false);
-    servicesContainer.addComponent(org.sonar.api.database.daos.MeasuresDao.class, false);
     servicesContainer.addComponent(ProfilesDao.class, false);
     servicesContainer.addComponent(ProfilesManager.class, false);
     servicesContainer.addSingleton(SecurityRealmFactory.class);
index 59756fa892aeff1a40d0dced946b0d7de4d06646..11d751f83c0efc116ab9ffc494f612d305655af9 100644 (file)
@@ -23,7 +23,6 @@ import com.google.common.collect.Maps;
 import org.apache.commons.lang.StringUtils;
 import org.picocontainer.Startable;
 import org.sonar.api.ServerComponent;
-import org.sonar.core.i18n.RuleI18nManager;
 
 import java.util.Map;
 
@@ -32,14 +31,12 @@ import java.util.Map;
  */
 public class RubyRuleService implements ServerComponent, Startable {
 
-  private final RuleI18nManager i18n;
   private final RuleRegistry ruleRegistry;
 
   private static final String OPTIONS_STATUS = "status";
   private static final String OPTIONS_LANGUAGE = "language";
 
-  public RubyRuleService(RuleI18nManager i18n, RuleRegistry ruleRegistry) {
-    this.i18n = i18n;
+  public RubyRuleService(RuleRegistry ruleRegistry) {
     this.ruleRegistry = ruleRegistry;
   }
 
index 05401792eb5954fbdbabdbe997114778c22728e8..c74b894164cc8c73aa2b4e1643cb2122b11b5296 100644 (file)
@@ -22,7 +22,6 @@ package org.sonar.server.rule;
 import com.google.common.collect.Maps;
 import org.junit.Test;
 import org.mockito.ArgumentCaptor;
-import org.sonar.core.i18n.RuleI18nManager;
 
 import java.util.Map;
 
@@ -32,9 +31,8 @@ import static org.mockito.Mockito.verify;
 
 public class RubyRuleServiceTest {
 
-  RuleI18nManager i18n = mock(RuleI18nManager.class);
   RuleRegistry ruleRegistry = mock(RuleRegistry.class);
-  RubyRuleService facade = new RubyRuleService(i18n, ruleRegistry);
+  RubyRuleService facade = new RubyRuleService(ruleRegistry);
 
   @Test
   @SuppressWarnings({"unchecked", "rawtypes"})
index 6a9e8f0257af8c9881c5314b64e8dac7991d0b6a..dc9c9771a190c30cf16478fcbdb1abfc724c2516 100644 (file)
       <scope>compile</scope>
       <type>test-jar</type>
     </dependency>
-    <dependency>
-      <groupId>org.codehaus.sonar</groupId>
-      <artifactId>sonar-core</artifactId>
-      <version>${project.version}</version>
-      <scope>compile</scope>
-      <type>test-jar</type>
-    </dependency>
     <dependency>
       <groupId>org.reflections</groupId>
       <artifactId>reflections</artifactId>