You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by "ppalaga (via GitHub)" <gi...@apache.org> on 2023/08/10 10:33:14 UTC

[GitHub] [camel-quarkus] ppalaga commented on issue #5167: Compilation fails for gRPC applications in dev mode

ppalaga commented on issue #5167:
URL: https://github.com/apache/camel-quarkus/issues/5167#issuecomment-1672971337

   Yeah, I also recollect gRPC was a special about findbugs.
   
   We could try to redefine the rules in this module, something like
   
   ```
                       <plugin>
                           <groupId>org.apache.maven.plugins</groupId>
                           <artifactId>maven-enforcer-plugin</artifactId>
                           <dependencies>
                               <dependency>
                                   <groupId>io.quarkus</groupId>
                                   <artifactId>quarkus-enforcer-rules</artifactId>
                                   <version>${quarkus.version}</version>
                               </dependency>
                               <dependency>
                                   <groupId>org.l2x6.cq</groupId>
                                   <artifactId>cq-filtered-external-enforcer-rules</artifactId>
                                   <version>${cq-plugin.version}</version>
                               </dependency>
                           </dependencies>
                           <executions>
                               <execution>
                                   <id>camel-quarkus-enforcer-rules</id>
                                   <goals>
                                       <goal>enforce</goal>
                                   </goals>
                                   <configuration>
                                       <rules>
                                           <requireJavaVersion>
                                               <version>11</version>
                                           </requireJavaVersion>
                                           <dependencyConvergence />
                                           <filteredExternalRules>
                                               <location>classpath:enforcer-rules/quarkus-require-maven-version.xml</location>
                                           </filteredExternalRules>
                                           <filteredExternalRules>
                                               <location>classpath:enforcer-rules/quarkus-banned-dependencies.xml</location>
                                               <xsltLocation>${maven.multiModuleProjectDirectory}/tooling/enforcer-rules/quarkus-banned-dependencies.xsl</xsltLocation>
                                           </filteredExternalRules>
                                           <filteredExternalRules>
                                               <location>${maven.multiModuleProjectDirectory}/tooling/enforcer-rules/camel-quarkus-banned-dependencies.xml</location>
   <!-- Exclude findbugs in this module -->
                                               <xsltLocation>${maven.multiModuleProjectDirectory}/tooling/enforcer-rules/exclude-findbugs.xsl</xsltLocation>
                                           </filteredExternalRules>
                                           <filteredExternalRules>
                                               <location>${maven.multiModuleProjectDirectory}/tooling/enforcer-rules/camel-quarkus-banned-dependencies-spring.xml</location>
                                           </filteredExternalRules>
                                       </rules>
                                   </configuration>
                               </execution>
                           </executions>
                       </plugin>
   ``` 
   
   where `tooling/enforcer-rules/exclude-findbugs.xsl` could be adapted from the existing `tooling/enforcer-rules/quarkus-banned-dependencies.xsl`


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org