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

build.gradle 676B

123456789101112131415161718192021222324252627282930313233
  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. jar {
  14. baseName = 'gs-spring-boot'
  15. version = '0.1.0'
  16. }
  17. repositories {
  18. mavenCentral()
  19. maven { url "http://repo.springsource.org/libs-snapshot" }
  20. }
  21. dependencies {
  22. compile("org.springframework.boot:spring-boot-starter-web:0.5.0.BUILD-SNAPSHOT")
  23. testCompile("junit:junit:4.11")
  24. }
  25. task wrapper(type: Wrapper) {
  26. gradleVersion = '1.6'
  27. }