|
52 | 52 | <module>spring-cloud-gcp-pubsub-stream-binder-functional-sample</module>
|
53 | 53 | </modules>
|
54 | 54 |
|
| 55 | + <!-- Checkstyle on samples invoked during CI or manually when running locally. --> |
| 56 | + <profiles> |
| 57 | + <profile> |
| 58 | + <id>full-checkstyle</id> |
| 59 | + <build> |
| 60 | + <plugins> |
| 61 | + <plugin> |
| 62 | + <groupId>org.apache.maven.plugins</groupId> |
| 63 | + <artifactId>maven-checkstyle-plugin</artifactId> |
| 64 | + <version>3.0.0</version> |
| 65 | + <dependencies> |
| 66 | + <dependency> |
| 67 | + <groupId>com.puppycrawl.tools</groupId> |
| 68 | + <artifactId>checkstyle</artifactId> |
| 69 | + <version>8.18</version> |
| 70 | + </dependency> |
| 71 | + <dependency> |
| 72 | + <groupId>io.spring.javaformat</groupId> |
| 73 | + <artifactId>spring-javaformat-checkstyle</artifactId> |
| 74 | + <version>0.0.9</version> |
| 75 | + </dependency> |
| 76 | + <dependency> |
| 77 | + <groupId>org.springframework.cloud</groupId> |
| 78 | + <artifactId>spring-cloud-build-tools</artifactId> |
| 79 | + <version>${spring-cloud-build-tools.version}</version> |
| 80 | + </dependency> |
| 81 | + </dependencies> |
| 82 | + <executions> |
| 83 | + <execution> |
| 84 | + <id>checkstyle-validation</id> |
| 85 | + <phase>validate</phase> |
| 86 | + <configuration> |
| 87 | + <propertyExpansion> |
| 88 | + checkstyle.build.directory=${project.build.directory} |
| 89 | + checkstyle.suppressions.file=${checkstyle.suppressions.file} |
| 90 | + checkstyle.additional.suppressions.file=${checkstyle.additional.suppressions.file} |
| 91 | + </propertyExpansion> |
| 92 | + <configLocation>checkstyle.xml</configLocation> |
| 93 | + <headerLocation>checkstyle-header.txt</headerLocation> |
| 94 | + <consoleOutput>true</consoleOutput> |
| 95 | + <includeTestSourceDirectory>true</includeTestSourceDirectory> |
| 96 | + <failsOnError>true</failsOnError> |
| 97 | + <failOnViolation>true</failOnViolation> |
| 98 | + <suppressionsLocation>../src/checkstyle/checkstyle-suppressions.xml</suppressionsLocation> |
| 99 | + <violationSeverity>warning</violationSeverity> |
| 100 | + </configuration> |
| 101 | + <goals> |
| 102 | + <goal>check</goal> |
| 103 | + </goals> |
| 104 | + </execution> |
| 105 | + </executions> |
| 106 | + </plugin> |
| 107 | + </plugins> |
| 108 | + </build> |
| 109 | + </profile> |
| 110 | + </profiles> |
| 111 | + |
55 | 112 | <build>
|
56 | 113 | <plugins>
|
57 |
| - <plugin> |
58 |
| - <groupId>org.apache.maven.plugins</groupId> |
59 |
| - <artifactId>maven-checkstyle-plugin</artifactId> |
60 |
| - <version>3.0.0</version> |
61 |
| - <dependencies> |
62 |
| - <dependency> |
63 |
| - <groupId>com.puppycrawl.tools</groupId> |
64 |
| - <artifactId>checkstyle</artifactId> |
65 |
| - <version>8.18</version> |
66 |
| - </dependency> |
67 |
| - <dependency> |
68 |
| - <groupId>io.spring.javaformat</groupId> |
69 |
| - <artifactId>spring-javaformat-checkstyle</artifactId> |
70 |
| - <version>0.0.9</version> |
71 |
| - </dependency> |
72 |
| - <dependency> |
73 |
| - <groupId>org.springframework.cloud</groupId> |
74 |
| - <artifactId>spring-cloud-build-tools</artifactId> |
75 |
| - <version>${spring-cloud-build-tools.version}</version> |
76 |
| - </dependency> |
77 |
| - </dependencies> |
78 |
| - <executions> |
79 |
| - <execution> |
80 |
| - <id>checkstyle-validation</id> |
81 |
| - <phase>validate</phase> |
82 |
| - <configuration> |
83 |
| - <propertyExpansion> |
84 |
| - checkstyle.build.directory=${project.build.directory} |
85 |
| - checkstyle.suppressions.file=${checkstyle.suppressions.file} |
86 |
| - checkstyle.additional.suppressions.file=${checkstyle.additional.suppressions.file} |
87 |
| - </propertyExpansion> |
88 |
| - <configLocation>checkstyle.xml</configLocation> |
89 |
| - <headerLocation>checkstyle-header.txt</headerLocation> |
90 |
| - <consoleOutput>true</consoleOutput> |
91 |
| - <includeTestSourceDirectory>true</includeTestSourceDirectory> |
92 |
| - <failsOnError>true</failsOnError> |
93 |
| - <failOnViolation>true</failOnViolation> |
94 |
| - <suppressionsLocation>../src/checkstyle/checkstyle-suppressions.xml</suppressionsLocation> |
95 |
| - <violationSeverity>warning</violationSeverity> |
96 |
| - </configuration> |
97 |
| - <goals> |
98 |
| - <goal>check</goal> |
99 |
| - </goals> |
100 |
| - </execution> |
101 |
| - </executions> |
102 |
| - </plugin> |
103 |
| - |
104 | 114 | <plugin>
|
105 | 115 | <artifactId>maven-deploy-plugin</artifactId>
|
106 | 116 | <configuration>
|
|
0 commit comments