-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle
85 lines (68 loc) · 2.41 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
buildscript {
ext {
springBootVersion = '1.5.9.RELEASE'
versions = [
jdk : '1.8',
lombok : '1.16.8',
logback : '1.1.7', // Logging
log4j : '1.2.14',
slf4j : '1.7.21',
springfox : '2.6.0',
h2 : '1.4.190'
]
}
ext.gradleScriptDir = "${project.getRootDir()}/gradle"
repositories {
mavenCentral()
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
}
}
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'org.springframework.boot'
group = 'com.torres'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = 1.8
repositories {
mavenCentral()
}
dependencies {
// SpringBoot | web
compile "org.springframework.boot:spring-boot-starter-web:${springBootVersion}"
testCompile "org.springframework.boot:spring-boot-starter-test:${springBootVersion}"
compile "org.springframework.boot:spring-boot-devtools:${springBootVersion}"
// SpringBoot | Actuator
// - doc - /docs
// - remote shell $> ssh user@localhost -p 2000
compile "org.springframework.boot:spring-boot-starter-actuator:${springBootVersion}"
compile "org.springframework.boot:spring-boot-actuator-docs:${springBootVersion}"
compile "org.springframework.boot:spring-boot-starter-remote-shell:${springBootVersion}"
// SpringBoot | Admin UI
compile "de.codecentric:spring-boot-admin-server:1.4.6"
compile "de.codecentric:spring-boot-admin-server-ui:1.4.6"
compile 'de.codecentric:spring-boot-admin-starter-client:1.4.6'
// Thymeleaf
compile('org.springframework.boot:spring-boot-starter-thymeleaf')
// Lombok & logging(@SLf4j)
compile "org.projectlombok:lombok:${versions.lombok}"
// Swagger
compile "io.springfox:springfox-swagger2:${versions.springfox}"
compile "io.springfox:springfox-swagger-ui:${versions.springfox}"
// datasource - H2
compile "com.h2database:h2:$versions.h2"
// datasource - JDBC
compile "org.springframework.boot:spring-boot-starter-jdbc:${springBootVersion}"
compile "mysql:mysql-connector-java:5.1.38"
// datasource - JPA
compile "org.springframework.boot:spring-boot-starter-data-jpa:${springBootVersion}"
}
// datasource - QueryDSL
apply from: "$gradleScriptDir/querydsl.gradle"
def projectVersion = "1.0.0-SNAPSHOT"
task printVersion {
doLast {
println projectVersion
}
}