Skip to content

Instantly share code, notes, and snippets.

@hudsonmendes
Created April 3, 2017 20:10
Show Gist options
  • Save hudsonmendes/dfeb1a7d171ba288ad53f8184f46383f to your computer and use it in GitHub Desktop.
Save hudsonmendes/dfeb1a7d171ba288ad53f8184f46383f to your computer and use it in GitHub Desktop.
build.gradle (v2)
buildscript {
ext {
springBootVersion = "1.5.2.RELEASE"
gradleDockerVersion = "1.2"
}
repositories {
mavenCentral()
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
classpath("se.transmode.gradle:gradle-docker:${gradleDockerVersion}")
}
}
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 = "belfastjug-sample-01"
group = "com.hudsonmendes"
version = "0.0.1-SNAPSHOT"
manifest { attributes "Main-Class": "com.hudsonmendes.microservice1.AppEntry" }
}
docker {
baseImage "frolvlad/alpine-oraclejdk8:slim"
maintainer 'Hudson Mendes "hudsonmendes@gmail.com"'
}
repositories {
mavenCentral()
}
dependencies {
compile("org.springframework.boot:spring-boot-starter-web")
compile("org.springframework.data:spring-data-mongodb")
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