Building an Application with Spring Boot :: Learn how to build an application with minimal configuration. https://spring.io/guides/gs/spring-boot/

123456789101112131415161718192021222324252627282930313233343536
  1. buildscript {
  2. repositories {
  3. maven { url "http://repo.springsource.org/libs-snapshot" }
  4. mavenLocal()
  5. }
  6. dependencies {
  7. classpath("org.springframework.boot:spring-boot-gradle-plugin:0.5.0.BUILD-SNAPSHOT")
  8. }
  9. }
  10. apply plugin: 'java'
  11. apply plugin: 'eclipse'
  12. apply plugin: 'idea'
  13. apply plugin: 'spring-boot'
  14. jar {
  15. baseName = 'gs-spring-boot'
  16. version = '0.1.0'
  17. }
  18. repositories {
  19. mavenCentral()
  20. maven { url "http://repo.springsource.org/libs-snapshot" }
  21. }
  22. dependencies {
  23. compile("org.springframework.boot:spring-boot-starter-web:0.5.0.BUILD-SNAPSHOT")
  24. compile("org.springframework.boot:spring-boot-starter-jetty:0.5.0.BUILD-SNAPSHOT")
  25. compile("org.springframework.boot:spring-boot-starter-actuator:0.5.0.BUILD-SNAPSHOT")
  26. testCompile("junit:junit:4.11")
  27. }
  28. task wrapper(type: Wrapper) {
  29. gradleVersion = '1.7'
  30. }