Skip to content

Instantly share code, notes, and snippets.

@hudsonmendes
Created April 2, 2017 14:36
Show Gist options
  • Save hudsonmendes/1f7e88a078ab98f572ac55f0394138ab to your computer and use it in GitHub Desktop.
Save hudsonmendes/1f7e88a078ab98f572ac55f0394138ab to your computer and use it in GitHub Desktop.
build.gradle (v1)
buildscript {
ext {
springBootVersion = "1.5.2.RELEASE"
}
repositories {
mavenCentral()
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
}
}
apply plugin: "java"
apply plugin: "application"
apply plugin: "eclipse"
apply plugin: "org.springframework.boot"
apply plugin: 'docker'
compileJava {
sourceCompatibility = 1.8
targetCompatibility = 1.8
mainClassName = "com.hudsonmendes.microservice1.AppEntry"
}
jar {
baseName = "api-films"
group = "com.hudsonmendes"
version = "0.0.1-SNAPSHOT"
manifest { attributes "Main-Class": "com.hudsonmendes.microservice1.AppEntry" }
}
repositories {
mavenCentral()
}
dependencies {
compile("org.springframework.boot:spring-boot-starter-web")
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