-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
63 lines (55 loc) · 1.86 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
buildscript {
ext {
springBootVersion = '2.0.0.RELEASE'
}
repositories {
mavenCentral()
}
dependencies {
classpath('gradle.plugin.com.palantir.gradle.docker:gradle-docker:0.13.0')
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
}
}
plugins {
id 'net.saliman.cobertura' version '2.5.4'
}
task checkstyle(type: Exec) {
workingDir "$rootProject.projectDir/"
commandLine 'java', '-jar', "${project.projectDir}/checkstyle-8.9-all.jar", '-c', "${project.projectDir}/checkstyle.xml", '-o', "${project.projectDir}/checkstyle-result.xml", '-f', 'xml', "${project.projectDir}/src"
}
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'org.springframework.boot'
apply plugin: 'io.spring.dependency-management'
apply plugin: 'com.palantir.docker'
group = 'com.xgh'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = 1.8
repositories {
mavenCentral()
}
dependencies {
compile('org.springframework.boot:spring-boot-starter-jdbc')
compile('org.springframework.boot:spring-boot-starter-web')
compile('org.springframework.boot:spring-boot-starter-data-jpa')
compile('org.liquibase:liquibase-core')
compile('org.yaml:snakeyaml')
compile('org.springframework.boot:spring-boot-devtools')
compile('biz.paluch.logging:logstash-gelf:1.11.2')
compile('org.reflections:reflections:0.9.11')
compile('com.fasterxml.jackson.datatype:jackson-datatype-jsr310')
compile('javax.mail:mail:1.4.5')
runtime('org.postgresql:postgresql')
runtime('com.h2database:h2')
testCompile('junit:junit')
testCompile('org.springframework.boot:spring-boot-starter-test')
}
cobertura {
coverageFormats = ['xml']
}
docker {
dependsOn build
name "${project.group}/${bootJar.baseName}"
files bootJar.archivePath
buildArgs(['JAR_FILE': "${bootJar.archiveName}"])
}