buildscript { repositories { maven { url "http://repo.spring.io/libs-snapshot" } mavenLocal() } dependencies { classpath("org.springframework.boot:spring-boot-gradle-plugin:1.0.0.RELEASE") } } apply plugin: 'java' apply plugin: 'war' apply plugin: 'idea' apply plugin: 'spring-boot' jar { baseName = 'gs-rest-service' version = '0.1.0' } repositories { mavenCentral() maven { url "http://repo.spring.io/libs-snapshot" } } dependencies { compile("org.springframework.boot:spring-boot-starter-web") compile("com.fasterxml.jackson.core:jackson-databind") testCompile("junit:junit") compile 'org.springframework:spring-core:3.0.6.RELEASE' compile 'org.springframework:spring-webmvc:3.1.1.RELEASE' }