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

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. buildscript {
  2. repositories {
  3. mavenLocal()
  4. mavenCentral()
  5. mavenLocal()
  6. mavenCentral()
  7. }
  8. dependencies {
  9. classpath("org.springframework.boot:spring-boot-gradle-plugin:1.1.2.RELEASE")
  10. }
  11. }
  12. apply plugin: 'java'
  13. apply plugin: 'eclipse'
  14. apply plugin: 'idea'
  15. apply plugin: 'spring-boot'
  16. jar {
  17. baseName = 'gs-spring-boot'
  18. version = '0.1.0'
  19. }
  20. repositories {
  21. mavenLocal()
  22. mavenCentral()
  23. }
  24. dependencies {
  25. // tag::jetty[]
  26. compile("org.springframework.boot:spring-boot-starter-web") {
  27. exclude module: "spring-boot-starter-tomcat"
  28. }
  29. compile("org.springframework.boot:spring-boot-starter-jetty")
  30. // end::jetty[]
  31. // tag::actuator[]
  32. compile("org.springframework.boot:spring-boot-starter-actuator")
  33. // end::actuator[]
  34. testCompile("junit:junit")
  35. }
  36. task wrapper(type: Wrapper) {
  37. gradleVersion = '1.11'
  38. }