aboutsummaryrefslogtreecommitdiffstats
path: root/it/it-plugins/license-plugin
diff options
context:
space:
mode:
authorJulien Lancelot <julien.lancelot@sonarsource.com>2015-07-27 12:25:42 +0200
committerJulien Lancelot <julien.lancelot@sonarsource.com>2015-07-27 13:48:01 +0200
commit60a09b339533429a7eebecc75c21f36a45ee06ee (patch)
tree32f32771858b51aea12c69f3d073d8aa1bb0b33a /it/it-plugins/license-plugin
parent5050ad482cc23da9593fabf5e57863665f39aabd (diff)
downloadsonarqube-60a09b339533429a7eebecc75c21f36a45ee06ee.tar.gz
sonarqube-60a09b339533429a7eebecc75c21f36a45ee06ee.zip
Move server category test from it-sonar
Diffstat (limited to 'it/it-plugins/license-plugin')
-rw-r--r--it/it-plugins/license-plugin/pom.xml38
-rw-r--r--it/it-plugins/license-plugin/src/main/java/LicensePlugin.java24
2 files changed, 62 insertions, 0 deletions
diff --git a/it/it-plugins/license-plugin/pom.xml b/it/it-plugins/license-plugin/pom.xml
new file mode 100644
index 00000000000..e2480fb86b7
--- /dev/null
+++ b/it/it-plugins/license-plugin/pom.xml
@@ -0,0 +1,38 @@
+<?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/maven-v4_0_0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+
+ <parent>
+ <groupId>org.sonarsource.it</groupId>
+ <artifactId>it-plugins</artifactId>
+ <version>5.2-SNAPSHOT</version>
+ </parent>
+
+ <artifactId>license-plugin</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ <packaging>sonar-plugin</packaging>
+ <description>Plugins :: License</description>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.codehaus.sonar</groupId>
+ <artifactId>sonar-plugin-api</artifactId>
+ <version>${apiVersion}</version>
+ <scope>provided</scope>
+ </dependency>
+ </dependencies>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.codehaus.sonar</groupId>
+ <artifactId>sonar-packaging-maven-plugin</artifactId>
+ <version>1.12.1</version>
+ <extensions>true</extensions>
+ <configuration>
+ <pluginClass>LicensePlugin</pluginClass>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+</project>
diff --git a/it/it-plugins/license-plugin/src/main/java/LicensePlugin.java b/it/it-plugins/license-plugin/src/main/java/LicensePlugin.java
new file mode 100644
index 00000000000..b7d589dac1d
--- /dev/null
+++ b/it/it-plugins/license-plugin/src/main/java/LicensePlugin.java
@@ -0,0 +1,24 @@
+import java.util.Collections;
+import java.util.List;
+import org.sonar.api.CoreProperties;
+import org.sonar.api.Properties;
+import org.sonar.api.Property;
+import org.sonar.api.PropertyType;
+import org.sonar.api.SonarPlugin;
+
+@Properties({
+ @Property(
+ key = "untyped.license.secured",
+ name = "Property without license type",
+ category = CoreProperties.CATEGORY_GENERAL),
+ @Property(
+ key = "typed.license.secured",
+ name = "Typed property",
+ category = CoreProperties.CATEGORY_GENERAL,
+ type = PropertyType.LICENSE)
+})
+public class LicensePlugin extends SonarPlugin {
+ public List getExtensions() {
+ return Collections.emptyList();
+ }
+}