-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
143 lines (120 loc) · 4.15 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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
buildscript {
ext {
javaVersion = 1.8
springBootVersion = '1.5.3.RELEASE'
//springCloudVersion = 'Brixton.SR3'
springSecurityOauth2Version = '2.1.0.RELEASE'
apacheCommonsLangVersion = '3.5'
asciidoctorjPdfVersion = '1.5.0-alpha.15'
asciidoctorjDiagramVersion = '1.5.4'
gradeDockerPluginVersion = '3.0.6'
itextpdfVersion = '5.5.11'
jacksonVersion = '2.8.8'
jettisonVersion = '1.3.8'
plexusUtilsVersion = '3.0.24'
springRestDocsVersion = '1.1.2.RELEASE'
spockSpringVersion = '1.0-groovy-2.4'
yamlSchemaVersion = '0.2'
coverallsVersion = '2.6.3'
}
repositories {
mavenLocal()
jcenter()
}
dependencies {
classpath "org.springframework.boot:spring-boot-gradle-plugin:$springBootVersion"
classpath "org.asciidoctor:asciidoctorj-pdf:$asciidoctorjPdfVersion"
classpath "org.asciidoctor:asciidoctorj-diagram:$asciidoctorjDiagramVersion"
classpath "com.bmuschko:gradle-docker-plugin:$gradeDockerPluginVersion"
}
}
plugins {
id 'java'
id 'groovy'
id 'jacoco'
id 'com.github.kt3k.coveralls' version '2.8.1'
id 'com.jfrog.artifactory' version '4.4.15'
id 'com.github.ben-manes.versions' version '0.14.0'
id 'org.asciidoctor.convert' version '1.5.3'
}
apply plugin: 'application'
apply plugin: 'com.bmuschko.docker-java-application'
apply plugin: 'org.springframework.boot'
sourceCompatibility = "$javaVersion"
targetCompatibility = "$javaVersion"
repositories {
mavenLocal()
jcenter()
maven { url 'https://maven.repository.redhat.com/ga' }
maven { url 'https://repo.itextsupport.com/releases' }
}
dependencyManagement {
imports {
mavenBom "org.springframework.boot:spring-boot-starter-parent:$springBootVersion"
}
}
dependencies {
// Spring
compile('org.springframework.boot:spring-boot-starter-actuator')
compile('org.springframework.boot:spring-boot-starter-data-jpa')
compile('org.springframework.boot:spring-boot-starter-data-rest')
compile('org.springframework.boot:spring-boot-starter-security')
compile("org.springframework.security.oauth:spring-security-oauth2:$springSecurityOauth2Version")
compile('org.springframework.boot:spring-boot-starter-web') {
exclude group: 'org.springframework.boot', module: 'spring-boot-starter-tomcat'
}
compile('org.springframework.boot:spring-boot-starter-undertow')
compile('org.springframework.hateoas:spring-hateoas')
compile('org.projectlombok:lombok')
// Commons
compile("org.apache.commons:commons-lang3:$apacheCommonsLangVersion")
// YAML support
compile("com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:$jacksonVersion")
compile("com.fasterxml.jackson.datatype:jackson-datatype-jsr310:$jacksonVersion")
compile("org.projectodd:yaml-schema:$yamlSchemaVersion")
//Documents
compile("org.codehaus.plexus:plexus-utils:$plexusUtilsVersion")
compile("org.codehaus.jettison:jettison:$jettisonVersion")
//iText
compile("com.itextpdf:itextpdf:$itextpdfVersion")
// Test
compile('org.springframework.boot:spring-boot-starter-test')
testCompile("org.spockframework:spock-spring:$spockSpringVersion")
testCompile("org.springframework.restdocs:spring-restdocs-core:$springRestDocsVersion")
runtime('com.h2database:h2')
}
springBoot {
executable = true
buildInfo()
}
jacocoTestReport {
reports {
xml.enabled = true // coveralls plugin depends on xml format report
html.enabled = true
}
}
docker {
javaApplication {
maintainer = 'Willem Cheizoo "[email protected]"'
}
}
asciidoctor {
outputDir = file('public')
separateOutputDirs = false
requires = ['asciidoctor-diagram']
attributes buildDir: buildDir,
'source-highlighter': 'highlight.js',
toc: 'left',
toclevels: '3',
numbered: '',
icons: 'font',
idseparator: '-',
sectnums: 'true',
sectlinks: '',
sectanchors: '',
hardbreaks: '',
docinfo1: 'true'
}
task wrapper(type: Wrapper) {
gradleVersion = '3.5'
}