-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.gradle
127 lines (101 loc) · 2.97 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
buildscript {
ext {
springBootVersion = '2.1.6.RELEASE'
snippetsDir = file('build/generated-snippets')
}
repositories {
mavenCentral()
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
classpath('org.postgresql:postgresql:42.1.4.jre7')
classpath 'org.asciidoctor:asciidoctor-gradle-plugin:1.5.9.2'
}
}
plugins {
id "org.sonarqube" version "2.7"
}
apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'org.springframework.boot'
apply plugin: 'war'
apply plugin: 'io.spring.dependency-management'
apply plugin: 'jacoco'
apply plugin: 'org.asciidoctor.convert'
group = 'com.upc.gessi.qrapids'
version = '2.2'
sourceCompatibility = 1.8
war {
from 'README.md'
baseName = 'qr-dashboard'
version = version
}
repositories {
mavenCentral()
}
ext {
set('elasticsearch.version', '5.6.3')
}
dependencies {
// Security
compile("org.springframework.boot:spring-boot-starter-security")
// JWT
compile("io.jsonwebtoken:jjwt:0.7.0")
// Development
compile('org.springframework.boot:spring-boot-devtools')
// Spring Boot
compile('org.springframework.boot:spring-boot-starter-actuator')
compile('org.springframework.boot:spring-boot-starter-data-jpa')
compile('org.springframework.boot:spring-boot-starter-thymeleaf')
compile('org.springframework.boot:spring-boot-starter-web')
// Spring mail
compile 'org.springframework.boot:spring-boot-starter-mail:1.5.8.RELEASE'
// DB JDBC
compile('org.postgresql:postgresql:42.1.4.jre7')
//JSON Java Library
compile 'com.google.code.gson:gson:2.8.2'
//socket
compile 'org.springframework.boot:spring-boot-starter-websocket'
//Utils
compile 'commons-io:commons-io:2.5'
//API Elastic
compile('org.elasticsearch.client:transport:5.6.3')
compile('org.elasticsearch:elasticsearch:5.6.3')
compile('org.elasticsearch.client:elasticsearch-rest-high-level-client:5.6.3')
compile files('libs/qrapids-qma-elastic-1.1.jar')
//API QR Generator
compile files('libs/qrapids-qr_generator-0.3.jar')
//Add qr-eval jar compilation
compile files('libs/qrapids-eval-2.1.jar')
testCompile('org.springframework.boot:spring-boot-starter-test')
compile('org.apache.logging.log4j:log4j-api:2.9.1')
compile('org.apache.logging.log4j:log4j-core:2.9.1')
testCompile 'org.springframework.restdocs:spring-restdocs-mockmvc'
asciidoctor 'org.springframework.restdocs:spring-restdocs-asciidoctor'
testCompile('com.h2database:h2')
// comment this line to launch application from developing environment
// uncomment this line before generating .war file
//providedRuntime 'org.springframework.boot:spring-boot-starter-tomcat'
}
jacoco {
toolVersion = "0.8.2"
}
jacocoTestReport {
reports {
xml.enabled = true
html.enabled = false
}
}
asciidoctor {
sourceDir = file('docs/asciidoc')
inputs.dir snippetsDir
outputDir = file('docs/asciidoc')
separateOutputDirs = false
dependsOn test
}
test {
testLogging {
events "passed", "skipped", "failed"
exceptionFormat "full"
}
}