Advertisement
bad_feelings

Untitled

Dec 1st, 2016
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 3.20 KB | None | 0 0
  1. buildscript {
  2.     ext {
  3.         railVersion = "1.2.0-b90"
  4.     }
  5.     repositories {
  6.         maven {
  7.             url "${artifactory_contextUrl}/remote-repos-vr"
  8.             credentials {
  9.                 username = "${artifactory_user}"
  10.                 password = "${artifactory_password}"
  11.             }
  12.         }
  13.         maven {
  14.             url "${artifactory_contextUrl}/platform"
  15.             credentials {
  16.                 username = "${artifactory_user}"
  17.                 password = "${artifactory_password}"
  18.             }
  19.         }
  20.  
  21.         mavenLocal()
  22.     }
  23.     dependencies {
  24.         classpath "fi.vr.h.rail.gradle:rail-gradle:${railVersion}"
  25.     }
  26. }
  27.  
  28. plugins {
  29.     //Plugin for managing Docker images and containers
  30.     id 'com.bmuschko.docker-remote-api' version '2.6.7'
  31.     //Makes easier/safer to use Java annotation processors; needed for MapStruct
  32.     id 'net.ltgt.apt' version '0.5'
  33. }
  34.  
  35. apply plugin: 'spring-boot'
  36. //Adding Jacoco support
  37. apply plugin: 'jacoco'
  38. apply plugin: 'fi.vr.h.rail.gradle-plugin'
  39.  
  40. repositories {
  41.     mavenLocal()
  42.     deveo("/remote-repos", "${artifactory_user}", "${artifactory_password}")
  43.     deveo("/platform", "${artifactory_user}", "${artifactory_password}")
  44. }
  45.  
  46. artifacts {
  47.     archives sourcesJar
  48. }
  49.  
  50. sourceCompatibility = 1.8
  51. targetCompatibility = 1.8
  52.  
  53. // Default Spring Boot version for all subprojects
  54. ext {
  55.     springBootVersion = "1.3.3.RELEASE"
  56. }
  57.  
  58. allprojects {
  59.     // Ensure that all projects use consistent version numbers
  60.     ext.buildTimestamp = new Date().format('yyyy-MM-dd HH:mm:ss')
  61.     project.version = new fi.vr.h.rail.gradle.ProjectVersion(0, 1, 0, System.env.SOURCE_BUILD_NUMBER)
  62. }
  63.  
  64. dependencies {
  65.     compile("fi.vr.h:rail-core:${railVersion}")
  66.     compile("fi.vr.h:rail-core-jdbc:${railVersion}")
  67.     testCompile("fi.vr.h:rail-core-test:${railVersion}")
  68.     apt('org.mapstruct:mapstruct-processor:1.0.0.Final')
  69.  
  70.     compile('org.springframework.boot:spring-boot-starter')
  71.  
  72.     //Microsoft - Azure, CRM
  73.     compile "com.microsoft.azure:adal4j:1.1.3";
  74.     compile ('com.microsoft.azure:azure-core:0.9.3')
  75.     compile ("com.microsoft.azure:azure-servicebus:0.9.3")
  76.     compile("org.springframework.cloud:spring-cloud-starter-hystrix:1.1.5.RELEASE")
  77.  
  78. }
  79.  
  80. //Allows setting system properties during bootRun, for ex.: gradlew -Dspring.profiles.active=... bootRun
  81. bootRun {
  82.     systemProperties System.properties
  83. }
  84.  
  85. rail {
  86.     // Optional; currently defaults to "centos:7"
  87.     dockerBaseImage = "centos:7"
  88.  
  89.     // Optional; no maintainer if left unset
  90.     dockerImageMaintainer = "John Doe, john.doe@vr.fi"
  91.  
  92.     // Mandatory; version is added automatically based on the project's own version
  93.     dockerImageTag = "teema/customer_service"
  94. }
  95. afterEvaluate {
  96.     project.integrationTest {
  97.         jacoco {
  98.             append = false
  99.             destinationFile = file("$buildDir/jacoco/jacoco-it.exec")
  100.             classDumpFile = file("$buildDir/jacoco/classpathdumps")
  101.         }
  102.     }
  103. }
  104.  
  105. afterEvaluate {
  106.     project.test {
  107.         jacoco {
  108.             append = false
  109.             destinationFile = file("$buildDir/jacoco/jacoco-ut.exec")
  110.             classDumpFile = file("$buildDir/jacoco/classpathdumps")
  111.         }
  112.     }
  113. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement