From 82ce9aa6f8f4df3390ca88381521a2918595ae7d Mon Sep 17 00:00:00 2001 From: Rob Winch Date: Thu, 28 Mar 2019 11:08:57 -0500 Subject: [PATCH] Add nohttp Closes gh-6819 --- build.gradle | 6 ++++++ etc/eclipse/org.eclipse.jdt.ui.prefs | 2 +- etc/nohttp/whitelist.lines | 7 +++++++ 3 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 etc/nohttp/whitelist.lines diff --git a/build.gradle b/build.gradle index 3e11a5df44..bd2db2fd9f 100644 --- a/build.gradle +++ b/build.gradle @@ -2,12 +2,14 @@ buildscript { dependencies { classpath 'io.spring.gradle:spring-build-conventions:0.0.23.RELEASE' classpath "org.springframework.boot:spring-boot-gradle-plugin:$springBootVersion" +classpath 'io.spring.nohttp:nohttp-gradle:0.0.1.BUILD-SNAPSHOT' } repositories { maven { url 'https://repo.spring.io/plugins-snapshot' } maven { url 'https://plugins.gradle.org/m2/' } } } +apply plugin: 'io.spring.nohttp' apply plugin: 'io.spring.convention.root' group = 'org.springframework.security' @@ -19,6 +21,10 @@ ext.milestoneBuild = !(snapshotBuild || releaseBuild) dependencyManagementExport.projects = subprojects.findAll { !it.name.contains('-boot') } +repositories { + maven { url 'https://repo.spring.io/libs-snapshot' } +} + subprojects { plugins.withType(JavaPlugin) { project.sourceCompatibility='1.8' diff --git a/etc/eclipse/org.eclipse.jdt.ui.prefs b/etc/eclipse/org.eclipse.jdt.ui.prefs index e207aa7230..a31f4da0e8 100644 --- a/etc/eclipse/org.eclipse.jdt.ui.prefs +++ b/etc/eclipse/org.eclipse.jdt.ui.prefs @@ -70,7 +70,7 @@ org.eclipse.jdt.ui.keywordthis=false org.eclipse.jdt.ui.ondemandthreshold=9999 org.eclipse.jdt.ui.overrideannotation=true org.eclipse.jdt.ui.staticondemandthreshold=9999 -org.eclipse.jdt.ui.text.custom_code_templates= +org.eclipse.jdt.ui.text.custom_code_templates= sp_cleanup.add_default_serial_version_id=true sp_cleanup.add_generated_serial_version_id=false sp_cleanup.add_missing_annotations=true diff --git a/etc/nohttp/whitelist.lines b/etc/nohttp/whitelist.lines new file mode 100644 index 0000000000..cacd15baca --- /dev/null +++ b/etc/nohttp/whitelist.lines @@ -0,0 +1,7 @@ +^http://[^/]*nabble.com.* +^http://blog.opensecurityresearch.com/.* +^http://iharder.sourceforge.net/current/java/base64/ +^http://jaspan.com.* +^http://lists.webappsec.org/.* +^http://webblaze.cs.berkeley.edu/.* +^http://www.zytrax.com/books/ldap/