diff options
| author | Tibor Blenessy | 2018-05-31 16:28:28 +0200 |
|---|---|---|
| committer | Tibor Blenessy | 2018-05-31 18:57:14 +0200 |
| commit | 6cebcca87c5d276627fe22b9c53ddeb4844894b6 (patch) | |
| tree | 4dc20dbd5cab875faabc992f5f74c589412214ed /sonar-css-plugin | |
| parent | 3745f8a57c76225cf77ec53a0b03ce87d9a75d49 (diff) | |
| download | sonar-css-6cebcca87c5d276627fe22b9c53ddeb4844894b6.tar.bz2 | |
Bootstrap the plugin
Diffstat (limited to 'sonar-css-plugin')
| -rw-r--r-- | sonar-css-plugin/pom.xml | 132 | ||||
| -rw-r--r-- | sonar-css-plugin/src/main/java/org/sonar/css/plugin/CssPlugin.java | 31 |
2 files changed, 163 insertions, 0 deletions
diff --git a/sonar-css-plugin/pom.xml b/sonar-css-plugin/pom.xml new file mode 100644 index 0000000..26e8477 --- /dev/null +++ b/sonar-css-plugin/pom.xml @@ -0,0 +1,132 @@ +<?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.css</groupId> + <artifactId>css</artifactId> + <version>1.0.0-SNAPSHOT</version> + </parent> + + <artifactId>sonar-css-plugin</artifactId> + <packaging>sonar-plugin</packaging> + + <name>SonarCSS :: Plugin</name> + <!-- Be careful when altering <description> as its value shows up in the SonarQube GUI --> + <description>Code Analyzer for CSS</description> + <url>http://redirect.sonarsource.com/plugins/css.html</url> + + <scm> + <connection>scm:git:git@github.com:SonarSource/sonar-css.git</connection> + <developerConnection>scm:git:git@github.com:SonarSource/sonar-css.git</developerConnection> + <url>https://github.com/SonarSource/sonar-css</url> + <tag>HEAD</tag> + </scm> + + <dependencies> + <dependency> + <groupId>org.slf4j</groupId> + <artifactId>slf4j-api</artifactId> + </dependency> + <dependency> + <groupId>org.sonarsource.sonarqube</groupId> + <artifactId>sonar-plugin-api</artifactId> + </dependency> + <dependency> + <groupId>org.sonarsource.analyzer-commons</groupId> + <artifactId>sonar-analyzer-commons</artifactId> + </dependency> + <dependency> + <groupId>org.sonarsource.sonarqube</groupId> + <artifactId>sonar-testing-harness</artifactId> + </dependency> + <dependency> + <groupId>junit</groupId> + <artifactId>junit</artifactId> + </dependency> + <dependency> + <groupId>org.assertj</groupId> + <artifactId>assertj-core</artifactId> + </dependency> + <dependency> + <groupId>com.google.code.findbugs</groupId> + <artifactId>jsr305</artifactId> + </dependency> + <dependency> + <groupId>org.mockito</groupId> + <artifactId>mockito-core</artifactId> + </dependency> + <dependency> + <groupId>org.awaitility</groupId> + <artifactId>awaitility</artifactId> + </dependency> + </dependencies> + + <build> + <plugins> + <plugin> + <groupId>org.sonarsource.sonar-packaging-maven-plugin</groupId> + <artifactId>sonar-packaging-maven-plugin</artifactId> + <configuration> + <!-- This value shows up in the SonarQube GUI --> + <pluginName>SonarCSS</pluginName> + <pluginClass>org.sonar.css.plugin.CssPlugin</pluginClass> + <skipDependenciesPackaging>true</skipDependenciesPackaging> + <sonarLintSupported>false</sonarLintSupported> + <sonarQubeMinVersion>${sonar.min.version}</sonarQubeMinVersion> + </configuration> + </plugin> + + <plugin> + <artifactId>maven-shade-plugin</artifactId> + <executions> + <execution> + <phase>package</phase> + <goals> + <goal>shade</goal> + </goals> + <configuration> + <shadedArtifactAttached>false</shadedArtifactAttached> + <minimizeJar>true</minimizeJar> + <createDependencyReducedPom>false</createDependencyReducedPom> + <filters> + <filter> + <artifact>cglib:cglib-nodep</artifact> + <includes> + <include>**</include> + </includes> + </filter> + </filters> + </configuration> + </execution> + </executions> + </plugin> + + <plugin> + <artifactId>maven-enforcer-plugin</artifactId> + <executions> + <execution> + <id>enforce-plugin-size</id> + <goals> + <goal>enforce</goal> + </goals> + <phase>verify</phase> + <configuration> + <rules> + <requireFilesSize> + <minsize>10000</minsize> + <maxsize>50000</maxsize> + <files> + <file>${project.build.directory}/${project.build.finalName}.jar</file> + </files> + </requireFilesSize> + </rules> + </configuration> + </execution> + </executions> + </plugin> + + </plugins> + </build> + +</project> diff --git a/sonar-css-plugin/src/main/java/org/sonar/css/plugin/CssPlugin.java b/sonar-css-plugin/src/main/java/org/sonar/css/plugin/CssPlugin.java new file mode 100644 index 0000000..8d2a12b --- /dev/null +++ b/sonar-css-plugin/src/main/java/org/sonar/css/plugin/CssPlugin.java @@ -0,0 +1,31 @@ +/* + * SonarCSS + * Copyright (C) 2018-2018 SonarSource SA + * mailto:info AT sonarsource DOT com + * + * This program 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. + * + * This program 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 this program; if not, write to the Free Software Foundation, + * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + */ +package org.sonar.css.plugin; + +import org.sonar.api.Plugin; + +public class CssPlugin implements Plugin { + + + @Override + public void define(Context context) { + + } +} |
