You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@streampipes.apache.org by bo...@apache.org on 2022/12/04 16:06:56 UTC

[streampipes] 02/05: add checkstyle to streampipes-service-discovery

This is an automated email from the ASF dual-hosted git repository.

bossenti pushed a commit to branch add-checkstyle-streampipes-service
in repository https://gitbox.apache.org/repos/asf/streampipes.git

commit 1a6d4e2f6cda9bb89b97713a14fe27e0368181bf
Author: bossenti <bo...@posteo.de>
AuthorDate: Sun Dec 4 16:59:08 2022 +0100

    add checkstyle to streampipes-service-discovery
---
 streampipes-service-discovery/pom.xml              | 26 +++++++++++++++++++---
 .../svcdiscovery/SpServiceDiscovery.java           |  2 +-
 2 files changed, 24 insertions(+), 4 deletions(-)

diff --git a/streampipes-service-discovery/pom.xml b/streampipes-service-discovery/pom.xml
index b4a26be1e..41a47aac8 100644
--- a/streampipes-service-discovery/pom.xml
+++ b/streampipes-service-discovery/pom.xml
@@ -17,7 +17,8 @@
   ~
   -->
 
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
     <parent>
         <artifactId>streampipes-parent</artifactId>
         <groupId>org.apache.streampipes</groupId>
@@ -39,6 +40,25 @@
             <version>0.71.0-SNAPSHOT</version>
         </dependency>
     </dependencies>
-
-
+    <build>
+        <plugins>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-checkstyle-plugin</artifactId>
+                <executions>
+                    <execution>
+                        <id>validate</id>
+                        <phase>validate</phase>
+                        <goals>
+                            <goal>check</goal>
+                        </goals>
+                    </execution>
+                </executions>
+                <configuration>
+                    <logViolationsToConsole>true</logViolationsToConsole>
+                    <failOnViolation>true</failOnViolation>
+                </configuration>
+            </plugin>
+        </plugins>
+    </build>
 </project>
diff --git a/streampipes-service-discovery/src/main/java/org/apache/streampipes/svcdiscovery/SpServiceDiscovery.java b/streampipes-service-discovery/src/main/java/org/apache/streampipes/svcdiscovery/SpServiceDiscovery.java
index 2a292c87c..8f836b077 100644
--- a/streampipes-service-discovery/src/main/java/org/apache/streampipes/svcdiscovery/SpServiceDiscovery.java
+++ b/streampipes-service-discovery/src/main/java/org/apache/streampipes/svcdiscovery/SpServiceDiscovery.java
@@ -29,7 +29,7 @@ public class SpServiceDiscovery {
   public static ISpServiceDiscovery getServiceDiscovery() {
     return new SpConsulServiceDiscovery();
   }
-  
+
   public static ISpKvManagement getKeyValueStore() {
     return new SpConsulKvManagement();
   }