The Platform would like to move to JUnit 4.12 but cannot do so at the
moment as Spring Security uses a version of PowerMock which is
incompatible with JUnit 4.12. This commit updates Spring Security to use
PowerMock 1.6.1 with is compatible with JUnit 4.12.
Changed the bean definition method for the DelegatingApplicationListener
to be static to avoid the need to instantiate the configuration class which
caused further premature initializations to satisfy the dependencies
expressed in setFilterChainProxySecurityConfigurer(…).
In order to get better error messages (avoid NullPointerException) the
HttpSessionEventPublisher now gets the required ApplicationContext which
throws an IllegalStateException with a good error message.
It is necessary to ensure that src/main/webapp exists to ensure the
application starts with the Tomcat Gradle Plugin.
This commit adds a Manifest file to src/main/webapp/META-INF to ensure
that git contains the otherwise empty directory.
- Upgrade to 0.0.3.RELEASE of the plugin
- Declare a dependency in the springIoVersions configuration on the
Platform’s platform-versions artifact. An external property is used to
provide the version of this artifact. This means that the build script
does not need to refer to a snapshot artifact (the only version
available at the time of writing) and also breaks a circular
dependency between Spring Security (a project that’s part of the
Platform) and the Platform itself.
- The plugin applied and the libs-snapshot repository is added only
if the external property is specified. This removes the possibility
of a release or milestone being shipped with a snapshot dependency
(unless the release build is performed with -PplatformVersion=foo).