-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathbuild.gradle
47 lines (36 loc) · 1.08 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
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:1.5.8.RELEASE")
}
}
apply plugin: 'java'
apply plugin: 'org.springframework.boot'
apply plugin: 'war'
version = '1.2.1'
war {
baseName = project.name
version = project.version + '-' + new Date().format('yyyyMMdd-HHmmss')
ant.propertyfile(
file: "src/main/resources/version.properties") {
entry(key: "project.version", value: baseName + "-" + version)
}
}
repositories {
mavenCentral()
}
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
dependencies {
compile("org.springframework.boot:spring-boot-starter-web")
compile("org.springframework.security.oauth:spring-security-oauth2:2.2.0.RELEASE")
compile("org.apache.httpcomponents:httpclient:4.5.3")
compile("com.google.guava:guava:23.0")
compileOnly("org.projectlombok:lombok:1.16.18")
testCompile("junit:junit:4.12")
}
task wrapper(type: Wrapper) {
gradleVersion = '4.2.1'
}