This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jar { | |
baseName = 'frontend' | |
version = '0.0.1-SNAPSHOT' | |
} | |
distDocker { | |
exposePort 80 | |
setEnvironment 'JAVA_OPTS', '-Dspring.profiles.active=docker' | |
} | |
docker { | |
baseImage = 'develar/java:8u45-dcevm' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
backendServiceUrl = environment.getProperty("DOCKER_HOST", "tcp://localhost:2376").replace("tcp", "http"); | |
backendServiceUrl = backendServiceUrl.substring(0, backendServiceUrl.lastIndexOf(":")); | |
backendServiceUrl += ":8585"; | |
when(restUtils.getServiceUrl("backend")).thenReturn(URI.create(this.getBackendServiceUrl())); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apply plugin: 'application' | |
apply plugin: 'docker' | |
import org.apache.tools.ant.taskdefs.condition.Os | |
def DOCKER_REPO = "klhauser" | |
task buildDockerImage(type: Docker) { | |
tagVersion = 'latest' | |
tag = DOCKER_REPO + "/lessoria-" + jar.baseName | |
push = project.hasProperty('push') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
buildscript { | |
ext { | |
springBootVersion = "1.4.0.M2" | |
} | |
repositories { | |
mavenCentral() | |
maven { url "https://repo.spring.io/milestone" } | |
maven { url "https://repo.spring.io/snapshot" } | |
} | |
dependencies { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
machine: | |
java: | |
version: oraclejdk8 | |
environment: | |
SECRET_KEY: CI | |
dependencies: | |
override: | |
- export TERM="dumb"; ./gradlew compileTestJava | |
cache_directories: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apply plugin: 'com.github.kt3k.coveralls' | |
apply plugin: 'jacoco' | |
repositories { | |
mavenCentral() | |
} | |
// Only report code coverage for projects that are distributed | |
def publishedProjects = subprojects.findAll { it.path != ':simulator' } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
subprojects { | |
apply plugin: 'java' | |
apply plugin: 'idea' | |
apply plugin: 'spring-boot' | |
apply plugin: 'io.spring.dependency-management' | |
apply plugin: 'maven' | |
springBoot { | |
requiresUnpack = ['com.netflix.eureka:eureka-core','com.netflix.eureka:eureka-client'] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apply plugin: 'jacoco' | |
tasks.withType(JavaCompile) { | |
options.encoding = 'UTF-8' | |
options.compilerArgs << '-Xlint:all' | |
} | |
jacocoTestReport { | |
group = 'Coverage reports' | |
description = 'Generates a test coverage report for a project' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
buildscript { | |
ext { | |
springBootVersion = "1.3.3.RELEASE" | |
} | |
repositories { | |
mavenCentral() | |
maven { url "https://repo.spring.io/milestone" } | |
maven { url "https://repo.spring.io/snapshot" } | |
} | |
dependencies { |