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 2cec722
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 9 deletions.
34 changes: 25 additions & 9 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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 @@ -155,21 +156,36 @@
<groupId>io.github.lengors</groupId>
<artifactId>init-sources-maven-plugin</artifactId>
<version>${maven.init-sources.version}</version>
<configuration>
<compileSourceRoots>
<compileSourceRoot>${project.build.directory}/generated-sources/delombok</compileSourceRoot>
</compileSourceRoots>
<testCompileSourceRoots>
<testCompileSourceRoot>${project.build.directory}/generated-test-sources/delombok</testCompileSourceRoot>
</testCompileSourceRoots>
</configuration>
<executions>
<execution>
<id>init-sources</id>
<goals>
<goal>init-sources</goal>
</goals>
<configuration>
<compileSourceRoots>
<compileSourceRoot>${project.build.directory}/generated-sources/delombok</compileSourceRoot>
</compileSourceRoots>
<testCompileSourceRoots>
<testCompileSourceRoot>${project.build.directory}/generated-test-sources/delombok</testCompileSourceRoot>
</testCompileSourceRoots>
</configuration>
</execution>
<!-- execution>
<id>override-sources</id>
<goals>
<goal>init-sources</goal>
</goals>
<phase>verify</phase>
<configuration>
<compileSourceRoots>
<compileSourceRoot>${project.basedir}/src/main/java</compileSourceRoot>
</compileSourceRoots>
<testCompileSourceRoots>
<testCompileSourceRoot>${project.basedir}/src/test/java</testCompileSourceRoot>
</testCompileSourceRoots>
</configuration>
</!execution -->
</executions>
</plugin>

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 2cec722

Please sign in to comment.