-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
65 lines (55 loc) · 1.59 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
buildscript {
ext {
springBootVersion = '1.4.2.RELEASE'
}
repositories {
jcenter()
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
classpath("org.springframework:springloaded:1.2.4.RELEASE")
}
}
apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'war'
apply plugin: 'org.springframework.boot'
idea {
module {
inheritOutputDirs = false
outputDir = file("$buildDir/classes/main/")
}
}
war {
baseName = 'spga'
version = '0.1'
}
//jar {
// baseName = 'demo'
// version = '0.0.1-SNAPSHOT'
//}
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
mavenCentral()
}
dependencies {
compile("org.springframework.boot:spring-boot-starter-freemarker")
compile("org.springframework.boot:spring-boot-starter-web")
compile("org.springframework.boot:spring-boot-starter-jdbc")
compile("org.springframework.boot:spring-boot-starter-redis")
compile("redis.clients:jedis:2.9.0")
compile("org.springframework.boot:spring-boot-configuration-processor")
compile("org.apache.commons:commons-lang3:3.4")
compile("com.fasterxml.jackson.core:jackson-databind:2.8.3")
compile("org.mybatis.spring.boot:mybatis-spring-boot-starter:1.1.1")
compile("org.slf4j:slf4j-api:1.7.7")
compile("ch.qos.logback:logback-classic:1.1.5")
compileOnly("org.projectlombok:lombok:1.16.10")
compile files("src/main/resources/libs/ojdbc14-10.2.0.4.0.jar")
testCompile("org.springframework.boot:spring-boot-starter-test")
}
bootRun{
environment SPRING_PROFILES_ACTIVE: environment.SPRING_PROFILES_ACTIVE ?: "local"
}
compileJava.dependsOn(processResources);