Browse Source

Move protobuf specs of WS into new module sonar-ws

tags/5.2-RC1
Simon Brandhof 8 years ago
parent
commit
8f5b86c9ec

+ 1
- 1
compile_protobuf.sh View File

@@ -20,7 +20,7 @@ function compile_protobuf {
compile_protobuf "sonar-batch-protocol" "main"
compile_protobuf "sonar-core" "test"
compile_protobuf "sonar-db" "main"
compile_protobuf "server/sonar-server" "main"
compile_protobuf "sonar-ws" "main"




+ 1
- 0
pom.xml View File

@@ -26,6 +26,7 @@
<module>sonar-markdown</module>
<module>sonar-plugin-api</module>
<module>server</module>
<module>sonar-ws</module>
<module>sonar-testing-harness</module>
<module>plugins/sonar-xoo-plugin</module>
<module>plugins/sonar-batch-maven-plugin</module>

+ 5
- 18
server/sonar-server/pom.xml View File

@@ -173,6 +173,11 @@
<groupId>org.elasticsearch</groupId>
<artifactId>elasticsearch</artifactId>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>sonar-ws</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>com.google.code.findbugs</groupId>
<artifactId>jsr305</artifactId>
@@ -264,24 +269,6 @@
</testResources>

<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<executions>
<execution>
<id>add-source</id>
<phase>generate-sources</phase>
<goals>
<goal>add-source</goal>
</goals>
<configuration>
<sources>
<source>src/main/gen-java</source>
</sources>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>

+ 45
- 0
sonar-ws/pom.xml View File

@@ -0,0 +1,45 @@
<?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">
<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>org.codehaus.sonar</groupId>
<artifactId>sonar</artifactId>
<version>5.2-SNAPSHOT</version>
</parent>

<artifactId>sonar-ws</artifactId>
<name>SonarQube :: Web Service</name>
<description>Protocol Buffers specification of Web Services</description>

<dependencies>
<dependency>
<groupId>com.google.protobuf</groupId>
<artifactId>protobuf-java</artifactId>
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<executions>
<execution>
<id>add-source</id>
<phase>generate-sources</phase>
<goals>
<goal>add-source</goal>
</goals>
<configuration>
<sources>
<source>src/main/gen-java</source>
</sources>
</configuration>
</execution>
</executions>
</plugin>
</plugins>

</build>
</project>

server/sonar-server/src/main/gen-java/org/sonarqube/ws/Common.java → sonar-ws/src/main/gen-java/org/sonarqube/ws/Common.java View File


server/sonar-server/src/main/gen-java/org/sonarqube/ws/Issues.java → sonar-ws/src/main/gen-java/org/sonarqube/ws/Issues.java View File


server/sonar-server/src/main/gen-java/org/sonarqube/ws/Rules.java → sonar-ws/src/main/gen-java/org/sonarqube/ws/Rules.java View File


server/sonar-server/src/main/protobuf/ws-common.proto → sonar-ws/src/main/protobuf/ws-common.proto View File


server/sonar-server/src/main/protobuf/ws-issues.proto → sonar-ws/src/main/protobuf/ws-issues.proto View File


server/sonar-server/src/main/protobuf/ws-rules.proto → sonar-ws/src/main/protobuf/ws-rules.proto View File


Loading…
Cancel
Save