aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/build.gradle3
-rw-r--r--plugins/sonar-xoo-plugin/build.gradle44
-rw-r--r--plugins/sonar-xoo-plugin/pom.xml75
3 files changed, 47 insertions, 75 deletions
diff --git a/plugins/build.gradle b/plugins/build.gradle
new file mode 100644
index 00000000000..6b01df30596
--- /dev/null
+++ b/plugins/build.gradle
@@ -0,0 +1,3 @@
+sonarqube {
+ skipProject = true
+}
diff --git a/plugins/sonar-xoo-plugin/build.gradle b/plugins/sonar-xoo-plugin/build.gradle
new file mode 100644
index 00000000000..ff4cd6c0080
--- /dev/null
+++ b/plugins/sonar-xoo-plugin/build.gradle
@@ -0,0 +1,44 @@
+configurations {
+ testCompile.extendsFrom(compileOnly)
+}
+
+dependencies {
+ compile 'com.google.guava:guava'
+ compile 'commons-io:commons-io'
+ compile 'commons-lang:commons-lang'
+ compileOnly 'com.google.code.findbugs:jsr305'
+ compileOnly project(path: ':sonar-plugin-api', configuration: 'shadow')
+
+ testCompile 'junit:junit'
+ testCompile 'org.assertj:assertj-core'
+ testCompile 'org.mockito:mockito-core'
+}
+
+jar {
+ manifest {
+ attributes(
+ 'Plugin-Key': 'xoo',
+ 'Plugin-Version': project.version,
+ 'Plugin-Class': 'org.sonar.xoo.XooPlugin',
+ 'Plugin-ChildFirstClassLoader': 'false',
+ 'Sonar-Version': project.version,
+ 'SonarLint-Supported': 'true',
+ 'Plugin-Name': 'Xoo'
+ )
+ }
+ into('META-INF/lib') {
+ from configurations.compile
+ }
+}
+
+artifactoryPublish.skip = false
+
+publishing {
+ publications {
+ mavenJava(MavenPublication) {
+ from components.java
+ artifact sourcesJar
+ artifact javadocJar
+ }
+ }
+}
diff --git a/plugins/sonar-xoo-plugin/pom.xml b/plugins/sonar-xoo-plugin/pom.xml
deleted file mode 100644
index 0dcffa82b49..00000000000
--- a/plugins/sonar-xoo-plugin/pom.xml
+++ /dev/null
@@ -1,75 +0,0 @@
-<?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.sonarsource.sonarqube</groupId>
- <artifactId>sonarqube</artifactId>
- <version>7.1-SNAPSHOT</version>
- <relativePath>../..</relativePath>
- </parent>
- <artifactId>sonar-xoo-plugin</artifactId>
- <name>SonarQube :: Plugins :: Xoo</name>
- <packaging>sonar-plugin</packaging>
- <description>Sample of plugin to document and test available APIs</description>
-
- <properties>
- <sonar.skip>true</sonar.skip>
- </properties>
-
- <dependencies>
- <dependency>
- <groupId>com.google.guava</groupId>
- <artifactId>guava</artifactId>
- </dependency>
- <dependency>
- <groupId>commons-io</groupId>
- <artifactId>commons-io</artifactId>
- </dependency>
- <dependency>
- <groupId>commons-lang</groupId>
- <artifactId>commons-lang</artifactId>
- </dependency>
- <dependency>
- <groupId>com.google.code.findbugs</groupId>
- <artifactId>jsr305</artifactId>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>org.sonarsource.sonarqube</groupId>
- <artifactId>sonar-plugin-api</artifactId>
- <scope>provided</scope>
- </dependency>
-
- <!-- unit testing -->
- <dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>org.assertj</groupId>
- <artifactId>assertj-core</artifactId>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>org.mockito</groupId>
- <artifactId>mockito-core</artifactId>
- <scope>test</scope>
- </dependency>
- </dependencies>
-
- <build>
- <plugins>
- <plugin>
- <groupId>org.sonarsource.sonar-packaging-maven-plugin</groupId>
- <artifactId>sonar-packaging-maven-plugin</artifactId>
- <configuration>
- <pluginKey>xoo</pluginKey>
- <pluginName>Xoo</pluginName>
- <pluginClass>org.sonar.xoo.XooPlugin</pluginClass>
- <sonarLintSupported>true</sonarLintSupported>
- </configuration>
- </plugin>
- </plugins>
- </build>
-</project>