Skip to content

Commit 4fa11a5

Browse files
rwinchsnicoll
authored andcommitted
Add nohttp to build
See gh-22839
1 parent 8c605dd commit 4fa11a5

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed

build.gradle

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ buildscript {
44
}
55
dependencies {
66
classpath("io.spring.gradle:propdeps-plugin:0.0.9.RELEASE")
7+
classpath("io.spring.nohttp:nohttp-gradle:0.0.2.RELEASE")
78
classpath("org.asciidoctor:asciidoctorj-pdf:1.5.0-alpha.16")
89
}
910
}
@@ -252,9 +253,21 @@ configure(rootProject) {
252253
description = "Spring Framework"
253254

254255
apply plugin: "groovy"
256+
apply plugin: "io.spring.nohttp"
255257
apply from: "${gradleScriptDir}/jdiff.gradle"
256258
apply from: "${gradleScriptDir}/docs.gradle"
257259

260+
nohttp {
261+
source.exclude "**/test-output/**"
262+
whitelistFile = project.file("src/nohttp/whitelist.lines")
263+
def projectDirURI = project.projectDir.toURI()
264+
allprojects.forEach { p ->
265+
def outURI = p.file("out").toURI()
266+
def pattern = projectDirURI.relativize(outURI).path + "**"
267+
source.exclude pattern
268+
}
269+
}
270+
258271
dependencyManagement {
259272
imports {
260273
mavenBom "io.projectreactor:reactor-bom:${reactorVersion}"

src/nohttp/whitelist.lines

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
^http://[^/]*caucho.com.*
2+
^http://[^/]*gebish.org.*
3+
^http://[^/]*groovy-lang.org.*
4+
^http://[^/]*hsqldb.org.*
5+
^http://[^/]*sourceforge.net.*
6+
^http://easymock.org.*
7+
^http://forum.thymeleaf.org.*
8+
^http://jotm.objectweb.org.*
9+
^http://json-b.net/.*
10+
^http://objenesis.org.*
11+
^http://reactivex.io.*
12+
^http://www.beanshell.org.*
13+
^http://www.doclet.com.*
14+
^http://www.jensgulden.de.*
15+
^http://www.mockobjects.com.*
16+
^http://www.w3.org/2000/xmlns/
17+
^http://xunitpatterns.com.*

0 commit comments

Comments
 (0)