Go to file
Andy Wilkinson f7bc8c8268 Tidy up classpath pollution caused by resource creation in the tests
Previously, spring-webmvc and spring-webflux both contained tests
that would create gzipped files, write them to the filesystem
alongside the project's compiled test classes, and configure them to
be deleted on JVM exit. The output location placed the files on the
classpath, polluting it for every subsequent test that used the same
ClassLoader. The test-sources plugin combined with Gradle's use of
worker JVMs, broadens the scope of this pollution to other, downstream
projects in the same build. For example, the tests for
spring-websocket will have a different classpath depending on whether
or not the tests for spring-webmvc have already been run on the same
worker as part of the current build.

This commit updates the spring-webmvc and spring-webflux modules to
introduce a new JUnit Jupiter extension, GzipSupport. This extension
allows gzipped files to be created via an injectable GzippedFiles
class and automatically deletes each created file in an after-each
callback. This ensures that a gzipped file only exists on the
classpath for the duration of the test that needs it, avoiding the
pollution of the classpath of any subsequent tests.

Closes gh-23970
2019-11-11 15:11:10 +01:00
.github Add "Affects" field to issue template 2019-01-18 15:27:43 -05:00
buildSrc Polish contribution 2019-10-25 15:26:20 +02:00
framework-bom Remove scope information from published BOM 2019-09-18 15:27:59 +02:00
gradle Upgrade to Gradle 5.6.4 2019-11-03 15:04:58 +01:00
integration-tests Stop Created-By manifest header from causing a test task cache miss 2019-10-25 13:52:48 +02:00
spring-aop Use Method::getParameterCount where possible 2019-11-07 18:00:15 +01:00
spring-aspects Merge branch '5.1.x' 2019-09-25 12:43:24 +02:00
spring-beans Delete unnecessary variable assignment 2019-11-08 13:39:02 +01:00
spring-context Fix Javadoc for SmartLifecycle.DEFAULT_PHASE regarding ordering 2019-11-09 18:03:07 +01:00
spring-context-indexer Add blank line between java and javax imports 2019-09-04 22:05:46 -07:00
spring-context-support Restore TransactionOperations Kotlin API compatibilty 2019-09-29 19:31:12 +02:00
spring-core Upgrade to Shadow Plugin 5.2.0 2019-11-11 14:56:40 +01:00
spring-expression Use Method::getParameterCount where possible 2019-11-07 18:00:15 +01:00
spring-instrument URL Cleanup 2019-03-21 23:49:28 -05:00
spring-jcl Use dependency management in Framework build 2019-09-02 18:01:09 +02:00
spring-jdbc Avoid Connection.isReadOnly() call in resetConnectionAfterTransaction 2019-10-30 00:25:17 +01:00
spring-jms Clean up warnings 2019-10-30 19:14:58 +01:00
spring-messaging Polishing 2019-11-08 17:47:59 +00:00
spring-orm Avoid Connection.isReadOnly() call in resetConnectionAfterTransaction 2019-10-30 00:25:17 +01:00
spring-oxm Allow genJaxb's output to be cached when checkout locations differ 2019-09-25 16:44:01 +02:00
spring-test Polish contribution and fix build 2019-11-09 12:45:02 +01:00
spring-tx Clean up warnings 2019-10-30 19:14:58 +01:00
spring-web Javadoc update for content negotiation 2019-11-11 12:04:28 +00:00
spring-webflux Tidy up classpath pollution caused by resource creation in the tests 2019-11-11 15:11:10 +01:00
spring-webmvc Tidy up classpath pollution caused by resource creation in the tests 2019-11-11 15:11:10 +01:00
spring-websocket Polish contribution 2019-11-06 12:57:01 +01:00
src Tidy up classpath pollution caused by resource creation in the tests 2019-11-11 15:11:10 +01:00
.editorconfig Add EditorConfig 2017-06-12 08:07:54 +02:00
.gitattributes Ensure line endings for binary files are not modified in Git 2019-10-18 11:56:18 +02:00
.gitignore Rename non-Framework project modules 2019-08-21 14:32:25 +02:00
.mailmap Change gopivotal.com to pivotal.io 2014-10-05 18:12:50 +02:00
CODE_OF_CONDUCT.adoc URL Cleanup 2019-03-21 15:08:55 -05:00
CONTRIBUTING.md Polishing 2019-11-05 15:27:46 +01:00
LICENSE.txt Add LICENSE.txt file 2019-08-20 22:01:12 +02:00
README.md Fix grammar 2019-11-05 15:20:18 +01:00
SECURITY.md Create SECURITY.md 2019-05-23 11:36:52 -04:00
build.gradle Upgrade to RxJava 2.2.14, OkHttp 3.14.4, JRuby 9.2.9, Rhino 1.7.11, Awaitility 3.1.6 2019-11-07 22:08:52 +01:00
gradle.properties Next Development Version 2019-11-02 08:19:35 +00:00
gradlew Upgrade to Gradle 5.6 2019-08-17 19:20:36 +02:00
gradlew.bat Revert "Upgrade to Gradle 5.6.3" 2019-10-18 10:38:40 +02:00
import-into-eclipse.md Fix Checkstyle violation 2019-09-30 18:31:13 +02:00
import-into-idea.md URL Cleanup 2019-03-21 15:08:55 -05:00
settings.gradle Polish contribution 2019-10-25 15:26:20 +02:00

README.md

Spring Framework Build Status

This is the home of the Spring Framework: the foundation for all Spring projects. Collectively the Spring Framework and the family of Spring projects are often referred to simply as "Spring".

Spring provides everything required beyond the Java programming language for creating enterprise applications for a wide range of scenarios and architectures. Please read the Overview section as reference for a more complete introduction.

Code of Conduct

This project is governed by the Spring Code of Conduct. By participating, you are expected to uphold this code of conduct. Please report unacceptable behavior to spring-code-of-conduct@pivotal.io.

Access to Binaries

For access to artifacts or a distribution zip, see the Spring Framework Artifacts wiki page.

Documentation

The Spring Framework maintains reference documentation (published and source), Github wiki pages, and an API reference. There are also guides and tutorials across Spring projects.

Build from Source

See the Build from Source Wiki page and the CONTRIBUTING.md file.

Stay in Touch

Follow @SpringCentral, @SpringFramework, and its team members on Twitter. In-depth articles can be found at The Spring Blog, and releases are announced via our news feed.

License

The Spring Framework is released under version 2.0 of the Apache License.