File tree Expand file tree Collapse file tree 4 files changed +74
-60
lines changed Expand file tree Collapse file tree 4 files changed +74
-60
lines changed Original file line number Diff line number Diff line change @@ -229,9 +229,12 @@ jobs:
229
229
- restore_cache :
230
230
name : Restore Sonar cache
231
231
key : sonar-{{ .Environment.CIRCLE_JOB }}-{{ checksum "/tmp/maven_cache_seed" }}
232
+ - run :
233
+ name : Build
234
+ command : mvn verify -Pstatic-code-analysis -Dmaven.test.skip -Dgpg.skip -Dmaven.javadoc.skip
232
235
- run :
233
236
name : Test
234
- command : mvn verify -am -pl test-functional -Dgpg.skip -Dmaven.javadoc.skip
237
+ command : mvn verify -am -pl test-functional -Pstatic-code-analysis - Dgpg.skip -Dmaven.javadoc.skip
235
238
- run :
236
239
name : Analyze
237
240
command : mvn verify -Dmaven.test.skip -Dgpg.skip -Dmaven.javadoc.skip org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.projectKey=arangodb_arangodb-java-driver
Original file line number Diff line number Diff line change 170
170
<scopes >compile</scopes >
171
171
<maxJdkVersion >1.8</maxJdkVersion >
172
172
<excludes >
173
- <!-- <exclude>org.eclipse:yasson</exclude>-->
174
173
<exclude >jakarta.json.bind:jakarta.json.bind-api</exclude >
175
174
</excludes >
176
175
</enforceBytecodeVersion >
Original file line number Diff line number Diff line change 20
20
21
21
<build >
22
22
<plugins >
23
- <plugin >
24
- <groupId >com.github.spotbugs</groupId >
25
- <artifactId >spotbugs-maven-plugin</artifactId >
26
- <version >4.7.3.4</version >
27
- <configuration >
28
- <excludeFilterFile >spotbugs/spotbugs-exclude.xml</excludeFilterFile >
29
- </configuration >
30
- <executions >
31
- <execution >
32
- <phase >compile</phase >
33
- <goals >
34
- <goal >check</goal >
35
- </goals >
36
- </execution >
37
- </executions >
38
- <dependencies >
39
- <dependency >
40
- <groupId >com.github.spotbugs</groupId >
41
- <artifactId >spotbugs</artifactId >
42
- <version >4.7.3</version >
43
- </dependency >
44
- </dependencies >
45
- </plugin >
46
23
<plugin >
47
24
<groupId >org.apache.maven.plugins</groupId >
48
25
<artifactId >maven-source-plugin</artifactId >
170
147
</filesets >
171
148
</configuration >
172
149
</plugin >
173
- <plugin >
174
- <groupId >org.jacoco</groupId >
175
- <artifactId >jacoco-maven-plugin</artifactId >
176
- <executions >
177
- <execution >
178
- <goals >
179
- <goal >report</goal >
180
- </goals >
181
- </execution >
182
- </executions >
183
- <configuration >
184
- <dataFile >../test-functional/target/jacoco.exec</dataFile >
185
- </configuration >
186
- </plugin >
187
150
</plugins >
188
151
</build >
189
152
153
+ <profiles >
154
+ <profile >
155
+ <id >static-code-analysis</id >
156
+ <build >
157
+ <plugins >
158
+ <plugin >
159
+ <groupId >com.github.spotbugs</groupId >
160
+ <artifactId >spotbugs-maven-plugin</artifactId >
161
+ <version >4.7.3.4</version >
162
+ <configuration >
163
+ <excludeFilterFile >spotbugs/spotbugs-exclude.xml</excludeFilterFile >
164
+ </configuration >
165
+ <executions >
166
+ <execution >
167
+ <phase >compile</phase >
168
+ <goals >
169
+ <goal >check</goal >
170
+ </goals >
171
+ </execution >
172
+ </executions >
173
+ <dependencies >
174
+ <dependency >
175
+ <groupId >com.github.spotbugs</groupId >
176
+ <artifactId >spotbugs</artifactId >
177
+ <version >4.7.3</version >
178
+ </dependency >
179
+ </dependencies >
180
+ </plugin >
181
+ <plugin >
182
+ <groupId >org.jacoco</groupId >
183
+ <artifactId >jacoco-maven-plugin</artifactId >
184
+ <executions >
185
+ <execution >
186
+ <goals >
187
+ <goal >report</goal >
188
+ </goals >
189
+ </execution >
190
+ </executions >
191
+ <configuration >
192
+ <dataFile >../test-functional/target/jacoco.exec</dataFile >
193
+ </configuration >
194
+ </plugin >
195
+ </plugins >
196
+ </build >
197
+ </profile >
198
+ </profiles >
199
+
190
200
<distributionManagement >
191
201
<snapshotRepository >
192
202
<id >ossrh</id >
Original file line number Diff line number Diff line change 13
13
14
14
<artifactId >test-functional</artifactId >
15
15
16
- <build >
17
- <plugins >
18
- <plugin >
19
- <groupId >org.jacoco</groupId >
20
- <artifactId >jacoco-maven-plugin</artifactId >
21
- <executions >
22
- <execution >
23
- <goals >
24
- <goal >prepare-agent</goal >
25
- </goals >
26
- </execution >
27
- </executions >
28
- <configuration >
29
- <includes >
30
- <include >com/arangodb/**</include >
31
- </includes >
32
- </configuration >
33
- </plugin >
34
- </plugins >
35
- </build >
36
-
37
16
<profiles >
38
17
<profile >
39
18
<id >shaded</id >
158
137
</plugins >
159
138
</build >
160
139
</profile >
140
+ <profile >
141
+ <id >static-code-analysis</id >
142
+ <build >
143
+ <plugins >
144
+ <plugin >
145
+ <groupId >org.jacoco</groupId >
146
+ <artifactId >jacoco-maven-plugin</artifactId >
147
+ <executions >
148
+ <execution >
149
+ <goals >
150
+ <goal >prepare-agent</goal >
151
+ </goals >
152
+ </execution >
153
+ </executions >
154
+ <configuration >
155
+ <includes >
156
+ <include >com/arangodb/**</include >
157
+ </includes >
158
+ </configuration >
159
+ </plugin >
160
+ </plugins >
161
+ </build >
162
+ </profile >
161
163
</profiles >
162
164
163
165
</project >
You can’t perform that action at this time.
0 commit comments