8000 static-code-analysis profile · arangodb/arangodb-java-driver@577ad7f · GitHub
[go: up one dir, main page]

Skip to content

Commit 577ad7f

Browse files
committed
static-code-analysis profile
1 parent 98e8039 commit 577ad7f

File tree

4 files changed

+74
-60
lines changed

4 files changed

+74
-60
lines changed

.circleci/config.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,9 +229,12 @@ jobs:
229229
- restore_cache:
230230
name: Restore Sonar cache
231231
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
232235
- run:
233236
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
235238
- run:
236239
name: Analyze
237240
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

pom.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,6 @@
170170
<scopes>compile</scopes>
171171
<maxJdkVersion>1.8</maxJdkVersion>
172172
<excludes>
173-
<!-- <exclude>org.eclipse:yasson</exclude>-->
174173
<exclude>jakarta.json.bind:jakarta.json.bind-api</exclude>
175174
</excludes>
176175
</enforceBytecodeVersion>

release-parent/pom.xml

Lines changed: 47 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -20,29 +20,6 @@
2020

2121
<build>
2222
<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>
4623
<plugin>
4724
<groupId>org.apache.maven.plugins</groupId>
4825
<artifactId>maven-source-plugin</artifactId>
@@ -170,23 +147,56 @@
170147
</filesets>
171148
</configuration>
172149
</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>
187150
</plugins>
188151
</build>
189152

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+
190200
<distributionManagement>
191201
<snapshotRepository>
192202
<id>ossrh</id>

test-functional/pom.xml

Lines changed: 23 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -13,27 +13,6 @@
1313

1414
<artifactId>test-functional</artifactId>
1515

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-
3716
<profiles>
3817
<profile>
3918
<id>shaded</id>
@@ -158,6 +137,29 @@
158137
</plugins>
159138
</build>
160139
</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>
161163
</profiles>
162164

163165
</project>

0 commit comments

Comments
 (0)
0