|
5 | 5 | <groupId>fr.cnes.sonarqube.plugins</groupId>
|
6 | 6 | <artifactId>sonar-icode-plugin</artifactId>
|
7 | 7 | <packaging>sonar-plugin</packaging>
|
8 |
| - <version>0.0.1-SNAPSHOT</version> |
| 8 | + <version>1.0.0-SNAPSHOT</version> |
9 | 9 | <name>ICode</name>
|
10 | 10 |
|
11 | 11 | <description>ICode plugin for Sonarqube</description>
|
|
42 | 42 | <properties>
|
43 | 43 | <jdk.version>1.8</jdk.version>
|
44 | 44 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
45 |
| - <sonarqube.version>5.6</sonarqube.version> |
| 45 | + <sonar.apiVersion>6.6</sonar.apiVersion> |
46 | 46 | <slf4j.version>1.7.25</slf4j.version>
|
47 | 47 | <junit.version>4.12</junit.version>
|
48 | 48 | <project.key>icode</project.key>
|
| 49 | + <sonar.sources>src/main/java,src/main/js</sonar.sources> |
49 | 50 | </properties>
|
50 | 51 |
|
51 | 52 | <dependencies>
|
52 | 53 | <dependency>
|
53 | 54 | <groupId>org.sonarsource.sonarqube</groupId>
|
54 | 55 | <artifactId>sonar-plugin-api</artifactId>
|
55 |
| - <version>${sonarqube.version}</version> |
| 56 | + <version>${sonar.apiVersion}</version> |
56 | 57 | <scope>provided</scope>
|
57 | 58 | </dependency>
|
58 |
| - |
| 59 | + <dependency> |
| 60 | + <!-- packaged with the plugin --> |
| 61 | + <groupId>commons-lang</groupId> |
| 62 | + <artifactId>commons-lang</artifactId> |
| 63 | + <version>2.6</version> |
| 64 | + </dependency> |
59 | 65 | <!-- unit tests -->
|
| 66 | + <dependency> |
| 67 | + <groupId>org.sonarsource.sonarqube</groupId> |
| 68 | + <artifactId>sonar-testing-harness</artifactId> |
| 69 | + <version>${sonar.apiVersion}</version> |
| 70 | + <scope>test</scope> |
| 71 | + </dependency> |
60 | 72 | <dependency>
|
61 | 73 | <groupId>junit</groupId>
|
62 | 74 | <artifactId>junit</artifactId>
|
|
94 | 106 | <target>${jdk.version}</target>
|
95 | 107 | <encoding>${project.build.sourceEncoding}</encoding>
|
96 | 108 | </configuration>
|
| 109 | + </plugin> |
| 110 | + <plugin> |
| 111 | + <groupId>com.github.eirslett</groupId> |
| 112 | + <artifactId>frontend-maven-plugin</artifactId> |
| 113 | + <version>1.6</version> |
| 114 | + <executions> |
| 115 | + <execution> |
| 116 | + <phase>generate-resources</phase> |
| 117 | + <id>install node and yarn</id> |
| 118 | + <goals> |
| 119 | + <goal>install-node-and-yarn</goal> |
| 120 | + </goals> |
| 121 | + <configuration> |
| 122 | + <nodeVersion>v8.5.0</nodeVersion> |
| 123 | + <yarnVersion>v1.1.0</yarnVersion> |
| 124 | + </configuration> |
| 125 | + </execution> |
| 126 | + <execution> |
| 127 | + <id>yarn install</id> |
| 128 | + <goals> |
| 129 | + <goal>yarn</goal> |
| 130 | + </goals> |
| 131 | + </execution> |
| 132 | + <execution> |
| 133 | + <phase>generate-resources</phase> |
| 134 | + <id>yarn run script</id> |
| 135 | + <goals> |
| 136 | + <goal>yarn</goal> |
| 137 | + </goals> |
| 138 | + <configuration> |
| 139 | + <arguments>run build</arguments> |
| 140 | + </configuration> |
| 141 | + </execution> |
| 142 | + </executions> |
| 143 | + </plugin> |
| 144 | + <plugin> |
| 145 | + <!-- UTF-8 bundles are not supported by Java, so they must be converted |
| 146 | + during build --> |
| 147 | + <groupId>org.codehaus.mojo</groupId> |
| 148 | + <artifactId>native2ascii-maven-plugin</artifactId> |
| 149 | + <version>1.0-beta-1</version> |
| 150 | + <executions> |
| 151 | + <execution> |
| 152 | + <goals> |
| 153 | + <goal>native2ascii</goal> |
| 154 | + </goals> |
| 155 | + </execution> |
| 156 | + </executions> |
97 | 157 | </plugin>
|
98 | 158 | </plugins>
|
99 | 159 | </build>
|
|
0 commit comments