Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- buildscript {
- ext {
- railVersion = "1.2.0-b90"
- }
- repositories {
- maven {
- url "${artifactory_contextUrl}/remote-repos-vr"
- credentials {
- username = "${artifactory_user}"
- password = "${artifactory_password}"
- }
- }
- maven {
- url "${artifactory_contextUrl}/platform"
- credentials {
- username = "${artifactory_user}"
- password = "${artifactory_password}"
- }
- }
- mavenLocal()
- }
- dependencies {
- classpath "fi.vr.h.rail.gradle:rail-gradle:${railVersion}"
- }
- }
- plugins {
- //Plugin for managing Docker images and containers
- id 'com.bmuschko.docker-remote-api' version '2.6.7'
- //Makes easier/safer to use Java annotation processors; needed for MapStruct
- id 'net.ltgt.apt' version '0.5'
- }
- apply plugin: 'spring-boot'
- //Adding Jacoco support
- apply plugin: 'jacoco'
- apply plugin: 'fi.vr.h.rail.gradle-plugin'
- repositories {
- mavenLocal()
- deveo("/remote-repos", "${artifactory_user}", "${artifactory_password}")
- deveo("/platform", "${artifactory_user}", "${artifactory_password}")
- }
- artifacts {
- archives sourcesJar
- }
- sourceCompatibility = 1.8
- targetCompatibility = 1.8
- // Default Spring Boot version for all subprojects
- ext {
- springBootVersion = "1.3.3.RELEASE"
- }
- allprojects {
- // Ensure that all projects use consistent version numbers
- ext.buildTimestamp = new Date().format('yyyy-MM-dd HH:mm:ss')
- project.version = new fi.vr.h.rail.gradle.ProjectVersion(0, 1, 0, System.env.SOURCE_BUILD_NUMBER)
- }
- dependencies {
- compile("fi.vr.h:rail-core:${railVersion}")
- compile("fi.vr.h:rail-core-jdbc:${railVersion}")
- testCompile("fi.vr.h:rail-core-test:${railVersion}")
- apt('org.mapstruct:mapstruct-processor:1.0.0.Final')
- compile('org.springframework.boot:spring-boot-starter')
- //Microsoft - Azure, CRM
- compile "com.microsoft.azure:adal4j:1.1.3";
- compile ('com.microsoft.azure:azure-core:0.9.3')
- compile ("com.microsoft.azure:azure-servicebus:0.9.3")
- compile("org.springframework.cloud:spring-cloud-starter-hystrix:1.1.5.RELEASE")
- }
- //Allows setting system properties during bootRun, for ex.: gradlew -Dspring.profiles.active=... bootRun
- bootRun {
- systemProperties System.properties
- }
- rail {
- // Optional; currently defaults to "centos:7"
- dockerBaseImage = "centos:7"
- // Optional; no maintainer if left unset
- dockerImageMaintainer = "John Doe, john.doe@vr.fi"
- // Mandatory; version is added automatically based on the project's own version
- dockerImageTag = "teema/customer_service"
- }
- afterEvaluate {
- project.integrationTest {
- jacoco {
- append = false
- destinationFile = file("$buildDir/jacoco/jacoco-it.exec")
- classDumpFile = file("$buildDir/jacoco/classpathdumps")
- }
- }
- }
- afterEvaluate {
- project.test {
- jacoco {
- append = false
- destinationFile = file("$buildDir/jacoco/jacoco-ut.exec")
- classDumpFile = file("$buildDir/jacoco/classpathdumps")
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement