Skip to content

Instantly share code, notes, and snippets.

@andersonkxiass
Created April 23, 2017 19:02
Show Gist options
  • Save andersonkxiass/30ec4667a047756467ec360ed1d54ee2 to your computer and use it in GitHub Desktop.
Save andersonkxiass/30ec4667a047756467ec360ed1d54ee2 to your computer and use it in GitHub Desktop.
Spring + Postgres on Heroku
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'org.springframework.boot:spring-boot-gradle-plugin:1.5.1.RELEASE'
}
}
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'idea'
apply plugin: 'spring-boot'
apply plugin: 'war'
sourceCompatibility = 1.8
targetCompatibility = 1.8
war {
baseName = 'resource-server'
version = '0.1.0'
}
repositories {
jcenter()
maven { url "http://repo.spring.io/libs-snapshot" }
}
configurations {
providedRuntime
compile.exclude group:'ch.qos.logback'
}
// In this section you declare the dependencies for your production and test code
dependencies {
compile("org.springframework.boot:spring-boot-starter-web")
compile("org.springframework.boot:spring-boot-starter-data-jpa")
compile("org.postgresql:postgresql:9.4-1200-jdbc41")
}
task wrapper(type: Wrapper) {
gradleVersion = '2.3'
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment