-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
63 lines (54 loc) · 2.09 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
plugins {
id 'java'
id 'idea'
id 'jacoco'
id 'org.springframework.boot' version '1.5.9.RELEASE'
}
group 'ru.pravvich'
version '1.0-SNAPSHOT'
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
jcenter()
mavenLocal()
mavenCentral()
maven { url "http://repo1.maven.org/maven2/" }
}
sourceSets {
main { java { srcDir 'main/java/' } }
test { java { srcDir 'test/java/' } }
}
dependencies {
compile 'org.slf4j:slf4j-api:1.7.6'
compile group: 'org.springframework.boot', name: 'spring-boot-starter-security', version:'1.5.9.RELEASE'
compile group: 'org.springframework.boot', name: 'spring-boot-starter-actuator', version:'1.5.9.RELEASE'
compile group: 'org.springframework.boot', name: 'spring-boot-starter-data-jpa', version:'1.5.9.RELEASE'
compile group: 'org.springframework.boot', name: 'spring-boot-starter-web', version:'1.5.9.RELEASE'
compile group: 'com.fasterxml.jackson.core', name: 'jackson-annotations', version:'2.9.5'
compile group: 'org.jacoco', name: 'jacoco-maven-plugin', version:'0.8.1'
compile group: 'postgresql', name: 'postgresql', version:'9.1-901-1.jdbc4'
compile group: 'com.google.guava', name: 'guava', version:'23.0'
testCompile group: 'org.springframework.boot', name: 'spring-boot-starter-test', version:'1.5.9.RELEASE'
testCompile group: 'junit', name: 'junit', version:'4.12'
testCompile group: 'org.mockito', name: 'mockito-all', version:'1.10.19'
compileOnly group: 'org.projectlombok', name: 'lombok', version:'1.16.20'
testCompile group: 'com.h2database', name: 'h2', version: '1.0.60'
}
task wrapper(type: Wrapper) {
gradleVersion = '4.7'
}
bootRun {
jvmArgs = ["-Dfile.encoding=UTF-8", "-Xmx2048m", "-Xms512m"]
}
// Generate code coverage reports ... run with jacoco
jacocoTestReport {
additionalSourceDirs = files(sourceSets.main.allJava.srcDirs)
reports {
html.enabled = true
xml.enabled = true
csv.enabled = false
}
executionData = files('build/jacoco/test.exec')
}
check.dependsOn jacocoTestReport
test { finalizedBy jacocoTestReport }