buildscript { repositories { maven { url "https://repo.spring.io/libs-release" } mavenLocal() mavenCentral() } dependencies { classpath("org.springframework.boot:spring-boot-gradle-plugin:1.1.10.RELEASE") } } apply plugin: 'java' apply plugin: 'eclipse' apply plugin: 'idea' apply plugin: 'spring-boot' apply plugin: 'war' /* war { baseName = 'myapp' version = '0.5.0' } */ jar { baseName = 'bazy-rest' version = '0.1.0' } repositories { mavenLocal() mavenCentral() maven { url "https://repo.spring.io/libs-release" } maven { url "https://repository.jboss.org/nexus/content/repositories/releases" } } dependencies { compile("org.springframework.boot:spring-boot-starter-web") testCompile("org.springframework.boot:spring-boot-starter-test") testCompile("org.springframework:spring-test") compile("org.springframework.data:spring-data-rest-webmvc") compile("org.springframework.boot:spring-boot-starter-data-jpa") compile("com.h2database:h2") testCompile("junit:junit") compile 'org.postgresql:postgresql:9.3-1102-jdbc41' compile("org.springframework:spring-jdbc") compile files("./lib/postgis-jdbc-2.1.3.jar") } configurations { providedRuntime } task wrapper(type: Wrapper) { gradleVersion = '1.11' }