spring-boot/spring-boot-samples/spring-boot-sample-simple
Dave Syer 77bac876ce Add support for Spring Loaded in Maven and Gradle
Requires Loaded 1.1.5 (or better).

For Maven you can just add springloaded to the dependencies of the
spring-boot plugin (and also set MAVEN_OPTS=-noverify).

For Gradle add springloaded to the build dependencies (-noverify
can be added by the plugin).

In both cases there is also support for adding an arbitrary java agent
via configuration. Samples are provided in
spring-boot-sample-[simple,web-ui].

The ApplicationPlugin is only added if there is no JavaExec task
already present, and additionally it computes its own man class if
none is provided. So "gradle run" and "gradle bootRun" look
superficially similar, but "bootRun" has extra options, including
the agent and Loaded support.

Fixes gh-251, gh-183
2014-02-18 10:05:28 +00:00
..
src Add support for Spring Loaded in Maven and Gradle 2014-02-18 10:05:28 +00:00
build.gradle Update gradle example builds 2014-02-05 23:17:27 -08:00
pom.xml Next development version 2014-02-13 13:19:12 -08:00
README.md Add build.gradle samples and rename runJar->bootRun 2013-12-10 11:10:04 +00:00

Spring Boot Simple Sample

You can build this sample using Maven (>3) or Gradle (1.6).

With Maven:

$ mvn package
$ java -jar target/*.jar

The app prints a Hello message on the console.

With gradle:

$ gradle build
$ java -jar build/libs/*.jar