-
Notifications
You must be signed in to change notification settings - Fork 8
/
build.gradle
85 lines (64 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
buildscript {
repositories {
jcenter()
mavenCentral()
maven { url "https://repo.spring.io/libs-snapshot" }
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:2.2.6.RELEASE")
}
}
group "com.gingeleski"
version "2020.04.09"
apply plugin: "java"
apply plugin: "idea"
apply plugin: "org.springframework.boot"
apply plugin: "io.spring.dependency-management"
// START show deprecation warnings so we can continually fix/improve our code
compileJava {
options.compilerArgs << "-Xlint:deprecation"
}
compileTestJava {
options.compilerArgs << "-Xlint:deprecation"
}
// END show deprecation warnings so we can continually fix/improve our code
jar {
archiveBaseName = "sample-spring-boot-api"
archiveVersion = "2020.04.09"
}
repositories {
mavenCentral()
jcenter()
maven { url "https://repo.spring.io/libs-snapshot" }
}
sourceCompatibility = 1.13
targetCompatibility = 1.13
ext {
// START VERSION VARIABLES
springVersion = "5.2.5.RELEASE"
springBootVersion = "2.2.6.RELEASE"
// END VERSION VARIABLES
}
dependencies {
// START CORE DEPENDENCIES
implementation group: "org.springframework", name: "spring-core", version: "$springVersion"
implementation group: "org.springframework.boot", name: "spring-boot-starter-web", version: "$springBootVersion"
implementation group: "org.springframework.boot", name: "spring-boot-starter-actuator", version: "$springBootVersion"
implementation group: "org.springframework.boot", name: "spring-boot-starter-data-jpa", version: "$springBootVersion"
implementation group: "org.springframework.boot", name: "spring-boot-starter-data-rest", version: "$springBootVersion"
implementation group: "org.springframework.boot", name: "spring-boot-starter-security", version: "$springBootVersion"
implementation group: "org.springframework.boot", name: "spring-boot-devtools", version: "$springBootVersion"
runtimeOnly group: "com.h2database", name: "h2", version: "1.4.200"
implementation group: "io.jsonwebtoken", name: "jjwt-api", version: "0.11.1"
implementation group: "io.jsonwebtoken", name: "jjwt-impl", version: "0.11.1"
implementation group: "io.jsonwebtoken", name: "jjwt-jackson", version: "0.11.1"
// END CORE DEPENDENCIES
// START TEST DEPENDENCIES
testImplementation group: "io.cucumber", name: "cucumber-core", version: "5.6.0"
testImplementation group: "io.cucumber", name: "cucumber-java", version: "5.6.0"
testImplementation group: "io.cucumber", name: "cucumber-junit", version: "5.6.0"
testImplementation group: "junit", name: "junit", version: "4.13"
testImplementation group: "org.apache.httpcomponents", name: "httpclient", version: "4.5.12"
testImplementation group: "org.springframework.boot", name: "spring-boot-starter-test", version: "$springBootVersion"
// END TEST DEPENDENCIES
}