Add nohttp to build

See gh-22839
This commit is contained in:
Rob Winch
2019-04-29 10:47:05 -05:00
committed by Stephane Nicoll
parent 8c605dd082
commit 4fa11a5061
2 changed files with 30 additions and 0 deletions

View File

@@ -4,6 +4,7 @@ buildscript {
}
dependencies {
classpath("io.spring.gradle:propdeps-plugin:0.0.9.RELEASE")
classpath("io.spring.nohttp:nohttp-gradle:0.0.2.RELEASE")
classpath("org.asciidoctor:asciidoctorj-pdf:1.5.0-alpha.16")
}
}
@@ -252,9 +253,21 @@ configure(rootProject) {
description = "Spring Framework"
apply plugin: "groovy"
apply plugin: "io.spring.nohttp"
apply from: "${gradleScriptDir}/jdiff.gradle"
apply from: "${gradleScriptDir}/docs.gradle"
nohttp {
source.exclude "**/test-output/**"
whitelistFile = project.file("src/nohttp/whitelist.lines")
def projectDirURI = project.projectDir.toURI()
allprojects.forEach { p ->
def outURI = p.file("out").toURI()
def pattern = projectDirURI.relativize(outURI).path + "**"
source.exclude pattern
}
}
dependencyManagement {
imports {
mavenBom "io.projectreactor:reactor-bom:${reactorVersion}"

View File

@@ -0,0 +1,17 @@
^http://[^/]*caucho.com.*
^http://[^/]*gebish.org.*
^http://[^/]*groovy-lang.org.*
^http://[^/]*hsqldb.org.*
^http://[^/]*sourceforge.net.*
^http://easymock.org.*
^http://forum.thymeleaf.org.*
^http://jotm.objectweb.org.*
^http://json-b.net/.*
^http://objenesis.org.*
^http://reactivex.io.*
^http://www.beanshell.org.*
^http://www.doclet.com.*
^http://www.jensgulden.de.*
^http://www.mockobjects.com.*
^http://www.w3.org/2000/xmlns/
^http://xunitpatterns.com.*