-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathbuild.gradle
144 lines (117 loc) · 3.78 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
144
buildscript {
ext {
springBootVersion = '2.0.5.RELEASE'
swaggerVersion = '2.7.0'
}
repositories {
mavenCentral()
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
}
}
plugins {
id "org.sonarqube" version "2.6.2"
id 'jacoco'
}
sonarqube {
properties {
property 'sonar.host.url', 'https://sonarcloud.io'
property 'sonar.organization', 'blue-bash'
}
}
jacoco {
toolVersion = "0.8.2"
reportsDir = file("$buildDir/customJacocoReportDir")
}
allprojects {
apply plugin: 'idea'
apply plugin: 'eclipse'
apply plugin: 'jacoco'
apply plugin: 'java'
}
// Instructions for each sub project
subprojects {
apply plugin: 'io.spring.dependency-management'
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
mavenCentral()
}
}
project(':common') {
eclipse {
project {
name = 'UrlShortener.common'
swaggerVersion = '2.7.0'
}
}
dependencyManagement {
imports {
mavenBom "org.springframework.boot:spring-boot-dependencies:$springBootVersion"
}
}
dependencies {
// https://mvnrepository.com/artifact/io.springfox/springfox-swagger2
compile group: 'io.springfox', name: 'springfox-swagger2', version: '2.7.0'
// https://mvnrepository.com/artifact/io.springfox/springfox-swagger-ui
compile group: 'io.springfox', name: 'springfox-swagger-ui', version: '2.7.0'
// https://mvnrepository.com/artifact/com.github.joschi.jackson/jackson-datatype-threetenbp
compile group: 'com.github.joschi.jackson', name: 'jackson-datatype-threetenbp', version: '2.6.4'
// Required for QR generation
compile "com.google.zxing:core:3.3.0"
compile 'com.google.zxing:javase:3.3.0'
compile 'org.springframework.boot:spring-boot-starter-web'
compile 'org.springframework.boot:spring-boot-starter-jdbc'
compile 'org.springframework.hateoas:spring-hateoas'
compile 'commons-validator:commons-validator:1.6'
compile 'com.google.guava:guava:23.0'
testCompile 'org.springframework.boot:spring-boot-starter-test'
testRuntime 'org.hsqldb:hsqldb'
}
}
project(':demo') {
eclipse {
project {
name = 'UrlShortener.demo'
}
}
apply plugin: 'org.springframework.boot'
apply plugin: 'org.springframework.boot'
apply plugin: 'io.spring.dependency-management'
dependencies {
compile project(':common')
runtime 'org.hsqldb:hsqldb'
compile("org.webjars:sockjs-client:1.0.2")
compile 'org.webjars:bootstrap:3.3.5'
compile 'org.webjars:jquery:2.1.4'
// https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-actuator
compile 'org.springframework.boot:spring-boot-starter-actuator'
compile("org.springframework.boot:spring-boot-starter-websocket")
compile("org.webjars:webjars-locator-core")
compile("org.webjars:sockjs-client:1.0.2")
compile("org.webjars:stomp-websocket:2.3.3")
compile 'org.glassfish.tyrus:tyrus-container-grizzly-server:1.14'
compile 'org.springframework.boot:spring-boot-starter-web'
// Testing framework
testCompile 'org.springframework.boot:spring-boot-starter-test'
testCompile 'org.apache.httpcomponents:httpclient'
}
jacocoTestReport {
reports {
xml.enabled false
csv.enabled false
}
}
}
project ('team') {
eclipse {
project {
name = 'UrlShortener.team'
}
}
apply plugin: 'org.springframework.boot'
dependencies {
compile project(':common')
}
}