Skip to content

Commit

Permalink
👷 Update SonarCloud configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
lengors committed Sep 1, 2024
1 parent b0288e5 commit 814a46f
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 8 deletions.
26 changes: 18 additions & 8 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@
<maven.checkerframework.version>3.46.0</maven.checkerframework.version>
<maven.jsonschema2pojo.version>1.2.1</maven.jsonschema2pojo.version>
<maven.commons-lang3.version>3.16.0</maven.commons-lang3.version>
<maven.init-sources.version>1.0.0</maven.init-sources.version>
<!-- maven.init-sources.version>1.0.0</!maven.init-sources.version -->
<maven.checkstyle.version>3.4.0</maven.checkstyle.version>
<maven.delombok.version>1.18.20.0</maven.delombok.version>
<!-- maven.delombok.version>1.18.20.0</!maven.delombok.version -->
<maven.compiler.version>3.13.0</maven.compiler.version>
<maven.mockito.version>5.12.0</maven.mockito.version>
<maven.javadoc.version>3.8.0</maven.javadoc.version>
Expand All @@ -60,7 +60,8 @@
<!-- SonarCloud -->
<sonar.organization>lengors-github</sonar.organization>
<sonar.host.url>https://sonarcloud.io</sonar.host.url>

<!-- sonar.sources>${project.basedir}/src/main/java</!sonar.sources>
<sonar.tests>${project.basedir}/src/test/java</sonar.tests -->
</properties>

<dependencyManagement>
Expand Down Expand Up @@ -151,7 +152,7 @@
</configuration>
</plugin>

<plugin>
<!-- plugin>
<groupId>io.github.lengors</groupId>
<artifactId>init-sources-maven-plugin</artifactId>
<version>${maven.init-sources.version}</version>
Expand All @@ -160,7 +161,7 @@
<compileSourceRoot>${project.build.directory}/generated-sources/delombok</compileSourceRoot>
</compileSourceRoots>
<testCompileSourceRoots>
<testCompileSourceRoot>${project.build.directory}/generated-test-sources/delombok</testCompileSourceRoot>
<testCompileSourceRoot>${project.build.directory}/generated-test-sources/delombok</testCompileSourceRoot>
</testCompileSourceRoots>
</configuration>
<executions>
Expand All @@ -171,9 +172,9 @@
</goals>
</execution>
</executions>
</plugin>
</!plugin -->

<plugin>
<!-- plugin>
<groupId>org.projectlombok</groupId>
<artifactId>lombok-maven-plugin</artifactId>
<version>${maven.delombok.version}</version>
Expand Down Expand Up @@ -206,7 +207,7 @@
</configuration>
</execution>
</executions>
</plugin>
</!plugin -->

<plugin>
<groupId>org.apache.maven.plugins</groupId>
Expand Down Expand Up @@ -339,6 +340,12 @@
<configuration>
<fork>true</fork> <!-- Must fork or else JVM arguments are ignored. -->
<annotationProcessorPaths>
<path>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>${maven.lombok.version}</version>
</path>

<path>
<groupId>org.checkerframework</groupId>
<artifactId>checker</artifactId>
Expand All @@ -349,6 +356,9 @@
<!-- Add all the checkers you want to enable here -->
<annotationProcessor>org.checkerframework.checker.nullness.NullnessChecker</annotationProcessor>
<annotationProcessor>org.checkerframework.checker.resourceleak.ResourceLeakChecker</annotationProcessor>

<annotationProcessor>lombok.launch.AnnotationProcessorHider$AnnotationProcessor</annotationProcessor>
<annotationProcessor>lombok.launch.AnnotationProcessorHider$ClaimingProcessor</annotationProcessor>
</annotationProcessors>
<compilerArgs>
<arg>-Xmaxerrs</arg>
Expand Down
1 change: 1 addition & 0 deletions src/main/java/lombok.config
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
lombok.addLombokGeneratedAnnotation = true

0 comments on commit 814a46f

Please sign in to comment.