-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
113 lines (96 loc) · 2.6 KB
/
build.gradle
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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
buildscript {
ext {
springBootVersion = '2.0.3.RELEASE'
}
repositories {
mavenCentral()
jcenter()
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
classpath 'org.asciidoctor:asciidoctor-gradle-plugin:1.5.8'
}
}
plugins {
id "org.sonarqube" version "2.6.2"
}
apply plugin: 'java'
apply plugin: 'org.springframework.boot'
apply plugin: 'idea'
apply plugin: 'io.spring.dependency-management'
apply plugin: "jacoco"
apply plugin: 'org.asciidoctor.convert'
group = 'de.unistuttgart.ipvs.as.mmp'
subprojects {
apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'io.spring.dependency-management'
apply plugin: "jacoco"
apply plugin: 'org.asciidoctor.convert'
}
allprojects {
sourceCompatibility = 1.8
repositories {
mavenCentral()
}
dependencyManagement {
imports { mavenBom("org.springframework.boot:spring-boot-dependencies:${springBootVersion}") }
}
dependencies {
compile('org.springframework.boot:spring-boot-starter-data-jpa')
compile('org.springframework.boot:spring-boot-starter-actuator')
compile('org.springframework.boot:spring-boot-starter-web')
compile("org.springframework.boot:spring-boot-devtools")
compile('org.projectlombok:lombok:1.18.0')
compile('org.postgresql:postgresql')
compile('io.springfox:springfox-swagger2:2.9.2')
compile('io.springfox:springfox-swagger-ui:2.9.2')
compile('org.hibernate:hibernate-search-orm:5.9.3.Final'){
exclude group:'org.slf4j'
}
testCompile('org.springframework.boot:spring-boot-starter-test')
testCompile("org.springframework.restdocs:spring-restdocs-mockmvc")
testCompile('com.h2database:h2')
testRuntimeOnly(
'org.junit.jupiter:junit-jupiter-engine:5.1.0',
'org.junit.vintage:junit-vintage-engine:5.1.0'
)
testImplementation(
'org.junit.jupiter:junit-jupiter-api:5.1.0'
)
}
ext {
snippetsDir = file("${buildDir}/generated-snippets")
}
test {
useJUnitPlatform()
finalizedBy jacocoTestReport
outputs.dir snippetsDir
}
jacocoTestReport {
reports {
xml.enabled false
csv.enabled false
html.destination file("${buildDir}/jacocoHtml")
}
}
}
dependencies {
compile project(":model"), project(":common"), project(":scoring"), project(":eam"), project(":search")
}
task wrapper(type: Wrapper) {
gradleVersion = '4.8.1'
}
asciidoctor {
sourceDir = file("src/main/asciidoc")
outputDir = snippetsDir
attributes 'snippets': 'build/generated-snippets'
subprojects.each { dependsOn("${it.name}:test") }
}
bootJar {
classifier = "boot"
dependsOn asciidoctor
from ("${asciidoctor.outputDir}/html5") {
into 'static/v1/docs'
}
}