Building a RESTful Web Service :: Learn how to create a RESTful web service with Spring. :: spring-boot http://spring.io/guides/gs/rest-service/

build.gradle 736B

12345678910111213141516171819202122232425262728293031323334
  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-rest-service'
  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. compile("com.fasterxml.jackson.core:jackson-databind")
  24. testCompile("junit:junit:4.11")
  25. }
  26. task wrapper(type: Wrapper) {
  27. gradleVersion = '1.6'
  28. }