diff options
author | Simon Brandhof <simon.brandhof@gmail.com> | 2013-04-19 10:23:04 +0200 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@gmail.com> | 2013-04-19 13:39:38 +0200 |
commit | 455c2922640c42a504caf3e32beb38ba5c64905b (patch) | |
tree | 74d11ac8f761c69db5aac5fb1bcfd8817f712482 /sonar-ws-client/pom.xml | |
parent | cf15961943c5ba81132e6f3cb45c96ed2dbb3bb4 (diff) | |
download | sonarqube-455c2922640c42a504caf3e32beb38ba5c64905b.tar.gz sonarqube-455c2922640c42a504caf3e32beb38ba5c64905b.zip |
SONAR-3755 new sonar-ws-client API for issues
Diffstat (limited to 'sonar-ws-client/pom.xml')
-rw-r--r-- | sonar-ws-client/pom.xml | 52 |
1 files changed, 44 insertions, 8 deletions
diff --git a/sonar-ws-client/pom.xml b/sonar-ws-client/pom.xml index e0b7dc6febb..7bb9caf1129 100644 --- a/sonar-ws-client/pom.xml +++ b/sonar-ws-client/pom.xml @@ -1,5 +1,6 @@ <?xml version="1.0" encoding="UTF-8"?> -<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <parent> <groupId>org.codehaus.sonar</groupId> @@ -16,8 +17,8 @@ </properties> <dependencies> - <!-- Don't forget to update configuration of the m-bundle-p (especially Require-Bundle) - according to changes you make on dependencies --> + <!-- Don't forget to update configuration of the m-bundle-p (especially Require-Bundle) + according to changes you make on dependencies --> <dependency> <groupId>com.googlecode.json-simple</groupId> <artifactId>json-simple</artifactId> @@ -26,13 +27,22 @@ <groupId>commons-httpclient</groupId> <artifactId>commons-httpclient</artifactId> <version>3.1</version> - <optional>true</optional> + <scope>provided</scope> </dependency> <dependency> <groupId>org.apache.httpcomponents</groupId> <artifactId>httpclient</artifactId> <version>${httpclient4.version}</version> - <optional>true</optional> + <scope>provided</scope> + </dependency> + <dependency> + <groupId>com.github.kevinsawicki</groupId> + <artifactId>http-request</artifactId> + </dependency> + <dependency> + <groupId>com.google.code.findbugs</groupId> + <artifactId>jsr305</artifactId> + <scope>provided</scope> </dependency> <!-- unit tests --> @@ -86,6 +96,32 @@ <build> <plugins> <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-shade-plugin</artifactId> + <executions> + <execution> + <phase>package</phase> + <goals> + <goal>shade</goal> + </goals> + <configuration> + <createDependencyReducedPom>true</createDependencyReducedPom> + <minimizeJar>true</minimizeJar> + <relocations> + <relocation> + <pattern>com.github.kevinsawicki.http</pattern> + <shadedPattern>org.sonar.wsclient.kevinsawicki</shadedPattern> + </relocation> + <relocation> + <pattern>org.json.simple</pattern> + <shadedPattern>org.sonar.wsclient.jsonsimple</shadedPattern> + </relocation> + </relocations> + </configuration> + </execution> + </executions> + </plugin> + <plugin> <groupId>org.apache.felix</groupId> <artifactId>maven-bundle-plugin</artifactId> <version>2.3.7</version> @@ -95,12 +131,12 @@ <Import-Package>!*</Import-Package> <Require-Bundle>org.apache.httpcomponents.httpclient;bundle-version="${httpclient4.version}";optional="true", org.apache.httpcomponents.httpcore;bundle-version="${httpclient4.version}";optional="true", - com.googlecode.json-simple </Require-Bundle> <Export-Package>!.,org.sonar.wsclient, org.sonar.wsclient.connectors, - org.sonar.wsclient.services</Export-Package> - <Bundle-RequiredExecutionEnvironment>J2SE-1.5</Bundle-RequiredExecutionEnvironment> + org.sonar.wsclient.services + </Export-Package> + <Bundle-RequiredExecutionEnvironment>J2SE-1.6</Bundle-RequiredExecutionEnvironment> </instructions> </configuration> <executions> |