From: Simon Brandhof Date: Wed, 7 Nov 2012 16:09:48 +0000 (+0100) Subject: Remove useless Maven dependencies X-Git-Tag: 3.4~359 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=0c410b971537947ff4900e015fe71dd3e81157f2;p=sonarqube.git Remove useless Maven dependencies --- diff --git a/pom.xml b/pom.xml index a3ffaff5f48..0a31b81cb04 100644 --- a/pom.xml +++ b/pom.xml @@ -1,5 +1,6 @@ - + 4.0.0 org.codehaus.sonar @@ -91,7 +92,7 @@ false - + -Xmx512m -Xss1024k dav:https://dav.codehaus.org/snapshots.repository/sonar @@ -727,6 +728,17 @@ jfreechart 1.0.9 + + com.googlecode.json-simple + json-simple + 1.1.1 + + + junit + junit + + + org.hibernate hibernate-annotations @@ -748,17 +760,6 @@ - - org.hibernate - hibernate-ehcache - 3.3.2.GA - - - commons-logging - commons-logging - - - org.hibernate hibernate-entitymanager @@ -1219,7 +1220,7 @@ - + @@ -1232,7 +1233,7 @@ - + @@ -1245,7 +1246,7 @@ - + @@ -1259,7 +1260,7 @@ - + @@ -1272,7 +1273,7 @@ - + diff --git a/sonar-application/src/main/assembly/conf/logback.xml b/sonar-application/src/main/assembly/conf/logback.xml index 63913b48eea..cea4a381d49 100644 --- a/sonar-application/src/main/assembly/conf/logback.xml +++ b/sonar-application/src/main/assembly/conf/logback.xml @@ -58,11 +58,6 @@ - - - - - diff --git a/sonar-batch/src/main/resources/org/sonar/batch/bootstrapper/logback.xml b/sonar-batch/src/main/resources/org/sonar/batch/bootstrapper/logback.xml index eb3084afa54..08e4a0a3703 100644 --- a/sonar-batch/src/main/resources/org/sonar/batch/bootstrapper/logback.xml +++ b/sonar-batch/src/main/resources/org/sonar/batch/bootstrapper/logback.xml @@ -18,17 +18,10 @@ - - - - - - - diff --git a/sonar-batch/src/main/resources/org/sonar/batch/logback.xml b/sonar-batch/src/main/resources/org/sonar/batch/logback.xml index 1dba6b7f3cc..539320cd1b8 100644 --- a/sonar-batch/src/main/resources/org/sonar/batch/logback.xml +++ b/sonar-batch/src/main/resources/org/sonar/batch/logback.xml @@ -14,17 +14,10 @@ - - - - - - - diff --git a/sonar-core/pom.xml b/sonar-core/pom.xml index 2a22e81b20e..108a800bdb2 100644 --- a/sonar-core/pom.xml +++ b/sonar-core/pom.xml @@ -52,10 +52,6 @@ geronimo-spec geronimo-spec-jta - - org.hibernate - hibernate-ehcache - commons-dbcp commons-dbcp @@ -67,7 +63,6 @@ com.googlecode.json-simple json-simple - 1.1.1 diff --git a/sonar-core/src/main/resources/ehcache.xml b/sonar-core/src/main/resources/ehcache.xml deleted file mode 100644 index 9385f272c34..00000000000 --- a/sonar-core/src/main/resources/ehcache.xml +++ /dev/null @@ -1,76 +0,0 @@ - - - - - - - - - \ No newline at end of file diff --git a/sonar-core/src/test/resources/org/sonar/core/properties/PropertiesDaoTest/renamePropertyKey-result.xml b/sonar-core/src/test/resources/org/sonar/core/properties/PropertiesDaoTest/renamePropertyKey-result.xml new file mode 100644 index 00000000000..0877b0035fe --- /dev/null +++ b/sonar-core/src/test/resources/org/sonar/core/properties/PropertiesDaoTest/renamePropertyKey-result.xml @@ -0,0 +1,6 @@ + + + + + + diff --git a/sonar-core/src/test/resources/org/sonar/core/properties/PropertiesDaoTest/renamePropertyKey.xml b/sonar-core/src/test/resources/org/sonar/core/properties/PropertiesDaoTest/renamePropertyKey.xml new file mode 100644 index 00000000000..6ab761e2c6f --- /dev/null +++ b/sonar-core/src/test/resources/org/sonar/core/properties/PropertiesDaoTest/renamePropertyKey.xml @@ -0,0 +1,6 @@ + + + + + + diff --git a/sonar-core/src/test/resources/org/sonar/core/properties/PropertiesDaoTest/should_not_rename_if_same_key-result.xml b/sonar-core/src/test/resources/org/sonar/core/properties/PropertiesDaoTest/should_not_rename_if_same_key-result.xml new file mode 100644 index 00000000000..b4fc11a8cdb --- /dev/null +++ b/sonar-core/src/test/resources/org/sonar/core/properties/PropertiesDaoTest/should_not_rename_if_same_key-result.xml @@ -0,0 +1,5 @@ + + + + + diff --git a/sonar-core/src/test/resources/org/sonar/core/properties/PropertiesDaoTest/should_not_rename_if_same_key.xml b/sonar-core/src/test/resources/org/sonar/core/properties/PropertiesDaoTest/should_not_rename_if_same_key.xml new file mode 100644 index 00000000000..b4fc11a8cdb --- /dev/null +++ b/sonar-core/src/test/resources/org/sonar/core/properties/PropertiesDaoTest/should_not_rename_if_same_key.xml @@ -0,0 +1,5 @@ + + + + + diff --git a/sonar-plugin-api/pom.xml b/sonar-plugin-api/pom.xml index 0b1ce4586f0..90164cf32f1 100644 --- a/sonar-plugin-api/pom.xml +++ b/sonar-plugin-api/pom.xml @@ -102,6 +102,12 @@ org.codehaus.woodstox woodstox-core-lgpl + + + stax + stax-api + + org.codehaus.woodstox diff --git a/sonar-server/pom.xml b/sonar-server/pom.xml index a92abf15a10..8b5c20e7aa5 100644 --- a/sonar-server/pom.xml +++ b/sonar-server/pom.xml @@ -117,10 +117,6 @@ commons-dbcp commons-dbcp - - org.hibernate - hibernate-ehcache - org.jruby.rack jruby-rack diff --git a/sonar-server/src/dev/h2/conf/logback.xml b/sonar-server/src/dev/h2/conf/logback.xml index 3ea98589f88..1bde810d728 100644 --- a/sonar-server/src/dev/h2/conf/logback.xml +++ b/sonar-server/src/dev/h2/conf/logback.xml @@ -14,19 +14,10 @@ - - - - - - - - - diff --git a/sonar-server/src/dev/mysql/conf/logback.xml b/sonar-server/src/dev/mysql/conf/logback.xml index 3ea98589f88..1bde810d728 100644 --- a/sonar-server/src/dev/mysql/conf/logback.xml +++ b/sonar-server/src/dev/mysql/conf/logback.xml @@ -14,19 +14,10 @@ - - - - - - - - - diff --git a/sonar-server/src/dev/postgresql/conf/logback.xml b/sonar-server/src/dev/postgresql/conf/logback.xml index 3ea98589f88..1bde810d728 100644 --- a/sonar-server/src/dev/postgresql/conf/logback.xml +++ b/sonar-server/src/dev/postgresql/conf/logback.xml @@ -14,19 +14,10 @@ - - - - - - - - - diff --git a/sonar-server/src/main/java/org/sonar/server/startup/RenameDeprecatedPropertyKeys.java b/sonar-server/src/main/java/org/sonar/server/startup/RenameDeprecatedPropertyKeys.java new file mode 100644 index 00000000000..6e154c7144e --- /dev/null +++ b/sonar-server/src/main/java/org/sonar/server/startup/RenameDeprecatedPropertyKeys.java @@ -0,0 +1,47 @@ +/* + * Sonar, open source software quality management tool. + * Copyright (C) 2008-2012 SonarSource + * mailto:contact AT sonarsource DOT com + * + * Sonar 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. + * + * Sonar 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 Sonar; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02 + */ +package org.sonar.server.startup; + +import com.google.common.base.Strings; +import org.sonar.api.config.PropertyDefinition; +import org.sonar.api.config.PropertyDefinitions; +import org.sonar.core.properties.PropertiesDao; + +/** + * @since 3.4 + */ +public class RenameDeprecatedPropertyKeys { + + private PropertiesDao dao; + private PropertyDefinitions definitions; + + public RenameDeprecatedPropertyKeys(PropertiesDao dao, PropertyDefinitions definitions) { + this.dao = dao; + this.definitions = definitions; + } + + public void start() { + for (PropertyDefinition definition : definitions.getAll()) { + if (!Strings.isNullOrEmpty(definition.getDeprecatedKey())) { + dao.renamePropertyKey(definition.getDeprecatedKey(), definition.getKey()); + } + } + } +} diff --git a/sonar-ws-client/pom.xml b/sonar-ws-client/pom.xml index 49d446dd589..ec7b3dca56d 100644 --- a/sonar-ws-client/pom.xml +++ b/sonar-ws-client/pom.xml @@ -15,7 +15,6 @@ com.googlecode.json-simple json-simple - 1.1 commons-httpclient