Skip to content

Instantly share code, notes, and snippets.

@emersonf
Last active August 29, 2015 14:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save emersonf/f8f27d69a0c68f790970 to your computer and use it in GitHub Desktop.
Save emersonf/f8f27d69a0c68f790970 to your computer and use it in GitHub Desktop.
A Gradle build script for a Spring Boot application.
apply plugin: 'java'
apply plugin: 'maven' // used for deploying artifacts to Maven repositories
apply plugin: 'spring-boot'
group = 'internal'
version = '1.0-SNAPSHOT'
description = ""
sourceCompatibility = 1.7
targetCompatibility = 1.7
repositories {
mavenCentral()
maven {
url 'http://repo.spring.io/milestone'
}
}
// blessed artifact versions are available at
// http://docs.spring.io/spring-boot/docs/{springBootVersion}/reference/html/appendix-dependency-versions.html
dependencies {
compile group: 'com.google.guava', name: 'guava', version: '17.0'
compile group: 'org.hibernate', name: 'hibernate-validator'
compile group: 'com.fasterxml.jackson.core', name: 'jackson-databind'
compile group: 'com.fasterxml.jackson.core', name: 'jackson-core'
compile group: 'com.fasterxml.jackson.datatype', name: 'jackson-datatype-joda'
compile group: 'joda-time', name: 'joda-time'
compile group: 'org.slf4j', name: 'slf4j-api'
compile group: 'org.springframework.batch', name: 'spring-batch-core'
compile group: 'org.springframework.batch', name: 'spring-batch-infrastructure'
compile group: 'org.springframework.boot', name: 'spring-boot-autoconfigure'
compile group: 'org.springframework', name: 'spring-test'
compile group: 'org.springframework', name: 'spring-web'
compile group: 'javax.validation', name: 'validation-api', version: '1.1.0.Final'
testCompile group: 'junit', name: 'junit'
testCompile group: 'org.mockito', name: 'mockito-core'
testCompile group: 'org.hamcrest', name: 'hamcrest-library'
}
buildscript {
repositories {
mavenCentral()
maven {
url 'http://repo.spring.io/milestone'
}
}
dependencies {
classpath group: 'org.springframework.boot', name: 'spring-boot-gradle-plugin', version: '1.1.0.RC1'
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment