Commit Graph

23481 Commits

Author SHA1 Message Date
Phillip Webb
1f36d4657f Fix various Windows related issues
Fixes gh-1168
2014-06-25 14:31:41 -07:00
Dave Syer
43cf95b845 Tidy up (remove unneeded property) RepackageTask 2014-06-25 13:33:26 +01:00
Dave Syer
5d317f2dc7 Reflection hack for Tomcat 8 API change
Fixes gh-1148
2014-06-25 11:35:44 +01:00
Andy Wilkinson
fda24b8499 Upgrade to Jedis 2.4.2
Closes #1162
2014-06-25 10:31:46 +01:00
Andy Wilkinson
752e3c58ec Upgrade to H2 1.3.176
Closes #1161
2014-06-25 10:31:45 +01:00
Andy Wilkinson
834af12725 Upgrade to HikariCP 1.3.9
Closes #1160
2014-06-25 10:31:25 +01:00
Andy Wilkinson
646458dd51 Upgrade to WSDL4J 1.6.3
Closes #1159
2014-06-25 10:30:24 +01:00
Andy Wilkinson
7ae58eb21a Upgrade to mongo-java-driver 2.12.2
Closes #1158
2014-06-25 10:30:24 +01:00
Andy Wilkinson
80cf7a106d Upgrade to Jolokia 1.2.2
Closes #1157
2014-06-25 10:30:24 +01:00
Andy Wilkinson
2f414bedce Upgrade to Hibernate 4.3.5
Closes #1156
2014-06-25 10:30:24 +01:00
Andy Wilkinson
2ddc34350b Upgrade to CRaSH 1.3.0
Closes #1155
2014-06-25 10:30:12 +01:00
Andy Wilkinson
3352327442 Upgrade to AspectJ 1.8.1
Closes #1154
2014-06-25 10:14:56 +01:00
Andy Wilkinson
9cd54196ec Upgrade HTTP components to 4.3.4
Closes #1153
2014-06-25 10:14:19 +01:00
Andy Wilkinson
f326d1f18f Upgrade to thymeleaf-layout-dialect 1.2.5
Closes #1152
2014-06-25 10:13:36 +01:00
Andy Wilkinson
834c9e78b7 Upgrade to mysql-connector-java 5.1.31
Closes #1151
2014-06-25 10:12:54 +01:00
Andy Wilkinson
c3eae015e9 Upgrade to Groovy 2.3.3
Closes #1150
2014-06-25 10:09:45 +01:00
Dave Syer
b0bf9c776f Fix logic error in ErrorPageFilter (fixes gh-1149) 2014-06-25 08:47:24 +01:00
Phillip Webb
91bbd20ca0 Fixup version numbers following release 2014-06-24 14:53:08 -07:00
Spring Buildmaster
542f3cbda8 Next development version 2014-06-24 13:53:56 -07:00
Phillip Webb
c4b22fc3d5 Attempt to fixup prepare stage for release 2014-06-24 13:32:46 -07:00
Phillip Webb
af7f53d149 Attempt to fixup prepare stage for release 2014-06-24 13:14:22 -07:00
Phillip Webb
60ef031f78 Fix "signer information does not match" error
Update ExecutableArchiveLauncher so that `-cp` URLs are not added
when they are already contained as nested JARs. This prevents a
SecurityException "signer information does not match error" when using
signed jars. The root cause of the issue was that the primary JAR file
was on the default classpath with the URL "file:....jar" and in the
main URL set as "jar:file:....jar". It is now filtered so that only
the "jar:" variant is added.

Fixes gh-1134
2014-06-24 11:46:15 -07:00
Phillip Webb
1f1a7e0ed3 Polish 2014-06-24 11:46:15 -07:00
Dave Syer
0d5c30fdcc Add instance.uptime to VanillaPublicMetrics 2014-06-24 15:16:49 +01:00
Dave Syer
078e5425cd Avoid eager factory bean instantiation for container customizers 2014-06-24 14:52:38 +01:00
Dave Syer
999748bdab Fix some sloppy code in context hierarchy support
* The SpringApplicationBuilder was registering the parent context initializer
twice (not really a problem, but confusing if you are debugging).

* ParentContextApplicationContextInitializer itself should have been
checking that the current context is not the parent

* The EventPublishingRunListener as a result needs to call
setApplicationContext on any listeners that are AplicationContextAware

* ParentContextCloserApplicationListener can ensure that there is
only one of its kind per application context by implementing hashCode
and equals

Fixes gh-1142
2014-06-24 14:31:22 +01:00
Dave Syer
d2b88d741c Re-register SpringApplication listeners in context once it is available
Fixes gh-1141
2014-06-24 11:18:14 +01:00
Dave Syer
b2db3790de Improve test for JobLauncherCommandLineRunner (see gh-1125) 2014-06-24 10:39:28 +01:00
Phillip Webb
9f464e9c49 Merge branch 'gh-1070' 2014-06-24 01:05:11 -07:00
Phillip Webb
f30b962ff9 Add support for unpacking nested JARs
Update the executable JAR code to automatically unpack any entries
which include an entry comment starting `UNPACK:` to the temp folder.
The existing Maven and Gradle plugins have been updated with new
configuration options and the `spring-boot-tools` project has been
updated to write the appropriate entry comment based on a flag passed
in via the `Library` class.

This support has been added to allow libraries such a JRuby (which
assumes that `jruby-complete.jar` is always accessible as file) to work
with Spring Boot executable jars.

Fixes gh-1070
2014-06-24 00:46:56 -07:00
Phillip Webb
5f8fbfd73a Add Library abstraction
Add a Library class update the LibraryCallback interface and
implementations to use it. This change is in preparation for
an addition `unpack` flag that will be required to allow the
automatic unpacking of certain nested jars.

See gh-1070
2014-06-24 00:34:19 -07:00
Phillip Webb
3d6c8a85f4 Allow URL resolution within nested JARs
Update JarURLConnection to allow the resolution of items within a nested
jar, even if the jarFile passed to the connection is several levels up.

This prevent a connection from incorrectly resolving an entry against
the wrong jar file.

See gh-1070
2014-06-23 22:35:37 -07:00
Phillip Webb
5de2661b43 Drop RepackageTask.getDependencies()
Drop `RepackageTask.getDependencies` from the gradle plugin in favor of
exposing `getLibraries()` and using the callback.
Drop getDependencies
2014-06-23 22:31:16 -07:00
Phillip Webb
c713c8091d Polish 2014-06-23 19:41:22 -07:00
Phillip Webb
ed3df32cdd Extract resource handling to TomcatResources
Extract the nasty Tomcat resource handling reflection code to its own
class.
2014-06-23 19:34:08 -07:00
Phillip Webb
72a2e5bc02 Polish Gradle repackage 2014-06-23 19:34:02 -07:00
Dave Syer
965c16d93f Add foo.jar to fix broken build 2014-06-23 21:54:22 +01:00
Dave Syer
0e5201abe2 Fix typos (see gh-1135) 2014-06-23 16:51:25 +01:00
Dave Syer
542896b28f Support for non-executable JAR in addition to the repackaged one
Stretches the Gradle boot plugin a bit, so there's a sample build
in the "profile" sample. Howto docs give examples.

Fixes gh-1135
2014-06-23 11:08:58 +01:00
Dave Syer
1b97e8d921 Skip dependency exclusions if groupId is null
Fixes gh-1133
2014-06-22 19:20:51 +01:00
Jonas Bergvall
078db8cb74 Separate the configuration/creation of the default ObjectMapper
bean from the registration of Jackson modules to avoid circular creation
of the default ObjectMapper bean (and thus failing to obtain the ObjectMapper
and registering the module(s)).

Fixes gh-1132
2014-06-22 09:57:53 +01:00
Dave Syer
08ae390696 Add dependencies to inputs in bootRepackge
See gh-1113
2014-06-22 09:53:11 +01:00
Dave Syer
1bcc136374 Hack around with Tomcat resource paths
Tomcat 8 has different APIs again so it was quite difficult to
get it working and test it. The test is manual anyway (multi-module
project with JSPs in /META-INF/resources, not part of the samples),
and requires you to build a war and execute it (since the resource
paths are different when it's an archive).

Fixes gh-1131
2014-06-21 15:35:29 +01:00
Dave Syer
51496b4e4f Log exception in ErrorPageFilter
Fixes gh-1130
2014-06-21 09:32:36 +01:00
Dave Syer
772df9bea7 Add inputs to gradle bootRepackage task
See gh-1113
2014-06-20 22:25:11 +01:00
Phillip Webb
0768402d49 Merge pull request #1129 from ttddyy/document-remote-debug-gradle
* document-remote-debug-gradle:
  Add how-to remote debug from Gradle
2014-06-20 11:58:39 -07:00
Tadaya Tsuyukubo
5fbe5d4120 Add how-to remote debug from Gradle
Add a section to the reference documentation "how-to" about remote
debugging a Gradle started app.

Fixes gh-1129
2014-06-20 11:58:08 -07:00
Phillip Webb
dbfd785e93 Merge branch 'gh-1119'
Improve fat JAR performance.

See gh-1119
2014-06-20 10:30:01 -07:00
Phillip Webb
20fb55ea47 Polish 2014-06-20 10:29:47 -07:00
Phillip Webb
a3ceaf63e2 Improve performance of fat jar loading
Tweak 'fat jar' handling to generally improve performance:

- Allow JarURLConnection to throw a static FileNotFoundException when
  loading classes. This exception is thrown many times when attempting
  to load a class and is silently swallowed so there is no point in
  providing the entry name.
- Expose JarFile.getJarEntryData(AsciiBytes) and store AsciiBytes in
  the JarURLConnection. Previously AsciiBytes were created, discarded
  then created again.
- Use EMPTY_JAR_URL for the JarURLConnection super constructor. The URL
  is never actually used so we can improve performance by using a
  constant.
- Extract JarEntryName for possible caching. The jar entry name
  extracted from the URL is now contained in an inner JarEntryName
  class. This could be cached if necessary (although currently it is
  not because no perceivable performance benefit was observed)

Fixes gh-1119
2014-06-20 10:29:47 -07:00