forked from edcgit/Coding_Assessment_DevOps
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
86 lines (74 loc) · 2.24 KB
/
Copy pathbuild.gradle
File metadata and controls
86 lines (74 loc) · 2.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
buildscript {
ext {
springBootVersion = '1.5.6.RELEASE'
}
repositories {
mavenCentral()
jcenter()
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
classpath("org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:2.6.2")
classpath('gradle.plugin.com.palantir.gradle.docker:gradle-docker:0.13.0')
}
}
group = 'springio'
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'jacoco'
apply plugin: 'org.springframework.boot'
apply plugin: 'org.sonarqube'
apply plugin: 'com.palantir.docker'
jar {
baseName = 'mybankatm'
version = '0.0.1'
}
docker {
dependsOn build
name "indragopi86/${jar.baseName}"
files jar.archivePath
buildArgs(['JAR_FILE': "${jar.archiveName}"])
}
repositories {
mavenCentral()
}
sourceCompatibility = javacompatibility
targetCompatibility = javacompatibility
dependencies {
compile('org.springframework.boot:spring-boot-starter-web-services')
compile('org.springframework.boot:spring-boot-starter-amqp')
compile('org.springframework.boot:spring-boot-starter-aop')
compile('io.springfox:springfox-swagger2:2.4.0')
compile('org.springframework.boot:spring-boot-starter-data-jpa')
compile('org.apache.commons:commons-lang3:3.7')
compile('io.springfox:springfox-swagger-ui:2.8.0')
compile('io.springfox:springfox-swagger2:2.8.0')
compile('org.sonarsource.java:sonar-java-plugin:3.13.1')
compile('org.sonarsource.sonarqube:sonar-scanner-engine:5.5-RC2')
runtime('com.h2database:h2')
testCompile('org.springframework.boot:spring-boot-starter-test')
testCompile('org.mockito:mockito-core:2.18.0')
testCompile group: 'junit', name: 'junit', version: '4.+'
}
jacocoTestReport {
reports {
xml.enabled true
html.enabled false
}
jacocoTestCoverageVerification {
violationRules {
rule {
limit {
minimum = 0.2
}
}
}
}
task applicationCodeCoverageReport(type:JacocoReport){
executionData test
sourceSets sourceSets.main
}
}