Skip to content

Instantly share code, notes, and snippets.

@glfruit
Created March 8, 2018 08:46
Show Gist options
  • Save glfruit/3028e8c11028fd374df6e934409aba81 to your computer and use it in GitHub Desktop.
Save glfruit/3028e8c11028fd374df6e934409aba81 to your computer and use it in GitHub Desktop.
A simple build file for spring boot project
buildscript {
ext {
springBootVersion = '2.0.0.RELEASE'
}
repositories {
mavenCentral()
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
}
}
apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'org.springframework.boot'
apply plugin: 'io.spring.dependency-management'
group = 'me.glfruit'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = 1.8
repositories {
mavenCentral()
}
dependencies {
compile('org.springframework.boot:spring-boot-starter-web')
compile('org.springframework.boot:spring-boot-starter-actuator')
testCompile('org.springframework.boot:spring-boot-starter-test')
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment