Skip to content
This repository was archived by the owner on May 31, 2022. It is now read-only.

Commit 9da3eb0

Browse files
committedOct 15, 2019
Add nohttp to build
Fixes: gh-1758
1 parent 00498c9 commit 9da3eb0

File tree

6 files changed

+143
-0
lines changed

6 files changed

+143
-0
lines changed
 

‎.travis.yml

+1
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,5 @@ script:
1515
- jdk_switcher use openjdk7
1616
- ./mvnw clean test -P bootstrap
1717
- jdk_switcher use openjdk8
18+
- ./mvnw -U clean checkstyle:check -P spring5
1819
- ./mvnw -f spring-security-oauth2 -U clean test -P spring5

‎etc/nohttp/checkstyle.xml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<?xml version="1.0"?>
2+
<!--
3+
~ Copyright 2002-2019 the original author or authors.
4+
~
5+
~ Licensed under the Apache License, Version 2.0 (the "License");
6+
~ you may not use this file except in compliance with the License.
7+
~ You may obtain a copy of the License at
8+
~
9+
~ https://www.apache.org/licenses/LICENSE-2.0
10+
~
11+
~ Unless required by applicable law or agreed to in writing, software
12+
~ distributed under the License is distributed on an "AS IS" BASIS,
13+
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
~ See the License for the specific language governing permissions and
15+
~ limitations under the License.
16+
-->
17+
18+
<!DOCTYPE module PUBLIC "-//Puppy Crawl//DTD Check Configuration 1.3//EN"
19+
"https://www.puppycrawl.com/dtds/configuration_1_3.dtd">
20+
<module name="Checker">
21+
<property name="charset" value="UTF-8"/>
22+
<property name="fileExtensions" value=""/>
23+
<module name="io.spring.nohttp.checkstyle.check.NoHttpCheck">
24+
<property name="whitelistFileName" value="etc/nohttp/whitelist.lines"/>
25+
</module>
26+
</module>

‎etc/nohttp/whitelist.lines

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
http://junit.sourceforge.net/javadoc/

‎pom.xml

+35
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,41 @@
187187
<snapshots><enabled>true</enabled></snapshots>
188188
</repository>
189189
</repositories>
190+
<build>
191+
<plugins>
192+
<plugin>
193+
<groupId>org.apache.maven.plugins</groupId>
194+
<artifactId>maven-checkstyle-plugin</artifactId>
195+
<version>3.1.0</version>
196+
<dependencies>
197+
<dependency>
198+
<groupId>com.puppycrawl.tools</groupId>
199+
<artifactId>checkstyle</artifactId>
200+
<version>8.18</version>
201+
</dependency>
202+
<dependency>
203+
<groupId>io.spring.nohttp</groupId>
204+
<artifactId>nohttp-checkstyle</artifactId>
205+
<version>0.0.3.RELEASE</version>
206+
</dependency>
207+
</dependencies>
208+
<configuration>
209+
<configLocation>${maven.multiModuleProjectDirectory}/etc/nohttp/checkstyle.xml</configLocation>
210+
<includes>src/**/*,*</includes>
211+
<sourceDirectories>
212+
<sourceDirectory>./</sourceDirectory>
213+
</sourceDirectories>
214+
</configuration>
215+
<executions>
216+
<execution>
217+
<goals>
218+
<goal>check</goal>
219+
</goals>
220+
</execution>
221+
</executions>
222+
</plugin>
223+
</plugins>
224+
</build>
190225
</profile>
191226
<profile>
192227
<id>default</id>

‎tests/annotation/pom.xml

+40
Original file line numberDiff line numberDiff line change
@@ -136,4 +136,44 @@
136136
</pluginRepository>
137137
</pluginRepositories>
138138

139+
<profiles>
140+
<profile>
141+
<id>spring5</id>
142+
<build>
143+
<plugins>
144+
<plugin>
145+
<groupId>org.apache.maven.plugins</groupId>
146+
<artifactId>maven-checkstyle-plugin</artifactId>
147+
<version>3.1.0</version>
148+
<dependencies>
149+
<dependency>
150+
<groupId>com.puppycrawl.tools</groupId>
151+
<artifactId>checkstyle</artifactId>
152+
<version>8.18</version>
153+
</dependency>
154+
<dependency>
155+
<groupId>io.spring.nohttp</groupId>
156+
<artifactId>nohttp-checkstyle</artifactId>
157+
<version>0.0.3.RELEASE</version>
158+
</dependency>
159+
</dependencies>
160+
<configuration>
161+
<configLocation>${maven.multiModuleProjectDirectory}/etc/nohttp/checkstyle.xml</configLocation>
162+
<includes>src/**/*,*</includes>
163+
<sourceDirectories>
164+
<sourceDirectory>./</sourceDirectory>
165+
</sourceDirectories>
166+
</configuration>
167+
<executions>
168+
<execution>
169+
<goals>
170+
<goal>check</goal>
171+
</goals>
172+
</execution>
173+
</executions>
174+
</plugin>
175+
</plugins>
176+
</build>
177+
</profile>
178+
</profiles>
139179
</project>

‎tests/xml/pom.xml

+40
Original file line numberDiff line numberDiff line change
@@ -85,4 +85,44 @@
8585
</pluginManagement>
8686
</build>
8787

88+
<profiles>
89+
<profile>
90+
<id>spring5</id>
91+
<build>
92+
<plugins>
93+
<plugin>
94+
<groupId>org.apache.maven.plugins</groupId>
95+
<artifactId>maven-checkstyle-plugin</artifactId>
96+
<version>3.1.0</version>
97+
<dependencies>
98+
<dependency>
99+
<groupId>com.puppycrawl.tools</groupId>
100+
<artifactId>checkstyle</artifactId>
101+
<version>8.18</version>
102+
</dependency>
103+
<dependency>
104+
<groupId>io.spring.nohttp</groupId>
105+
<artifactId>nohttp-checkstyle</artifactId>
106+
<version>0.0.3.RELEASE</version>
107+
</dependency>
108+
</dependencies>
109+
<configuration>
110+
<configLocation>${maven.multiModuleProjectDirectory}/etc/nohttp/checkstyle.xml</configLocation>
111+
<includes>src/**/*,*</includes>
112+
<sourceDirectories>
113+
<sourceDirectory>./</sourceDirectory>
114+
</sourceDirectories>
115+
</configuration>
116+
<executions>
117+
<execution>
118+
<goals>
119+
<goal>check</goal>
120+
</goals>
121+
</execution>
122+
</executions>
123+
</plugin>
124+
</plugins>
125+
</build>
126+
</profile>
127+
</profiles>
88128
</project>

0 commit comments

Comments
 (0)
This repository has been archived.