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 589B

12345678910111213141516171819202122232425262728293031
  1. buildscript {
  2. repositories {
  3. maven { url "http://repo.spring.io/libs-snapshot" }
  4. mavenLocal()
  5. }
  6. }
  7. apply plugin: 'java'
  8. apply plugin: 'eclipse'
  9. apply plugin: 'idea'
  10. jar {
  11. baseName = 'gs-rest-service'
  12. version = '0.1.0'
  13. }
  14. repositories {
  15. mavenCentral()
  16. maven { url "http://repo.spring.io/libs-snapshot" }
  17. }
  18. dependencies {
  19. compile("org.springframework.boot:spring-boot-starter-web:1.0.0.RC3")
  20. compile("com.fasterxml.jackson.core:jackson-databind")
  21. testCompile("junit:junit")
  22. }
  23. task wrapper(type: Wrapper) {
  24. gradleVersion = '1.11'
  25. }