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

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