-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
87 lines (61 loc) · 2.22 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
//apply plugin: 'java'
apply plugin: 'war'
apply plugin: 'spring-boot'
apply plugin: 'idea'
idea {
module {
inheritOutputDirs = false
outputDir = file("$buildDir/classes/main/")
}
}
buildscript {
repositories { mavenCentral() }
dependencies {
classpath "org.springframework.boot:spring-boot-gradle-plugin:1.1.9.RELEASE"
classpath 'org.springframework:springloaded:1.2.0.RELEASE'
}
}
sourceCompatibility = 1.8
war {
baseName = 'myproject'
version = '0.0.1-SNAPSHOT'
}
repositories {
mavenCentral()
maven {
url 'http://repo.spring.io/milestone'
}
}
configurations {
providedRuntime
}
//processResources {
// filter org.apache.tools.ant.filters.ReplaceTokens, tokens: [
// activeProfiles: activeProfiles
// ]
//}
bootRun { systemProperties = System.properties }
dependencies {
testCompile group: 'junit', name: 'junit', version: '4.11'
// compile("org.springframework.boot:spring-boot-starter")
compile("org.springframework.boot:spring-boot-starter-data-jpa")
compile("org.springframework.boot:spring-boot-starter-web")
compile("org.springframework.boot:spring-boot-starter-data-rest")
compile("org.springframework.boot:spring-boot-starter-security")
compile 'org.springframework.data:spring-data-rest-webmvc:2.2.1.RELEASE',
'com.fasterxml.jackson.core:jackson-databind:2.4.4',
'com.fasterxml.jackson.core:jackson-annotations:2.4.4',
'org.springframework:spring-webmvc:4.1.2.RELEASE',
'org.springframework:spring-jdbc:4.1.2.RELEASE',
'org.springframework:spring-tx:4.1.2.RELEASE',
'org.springframework:spring-orm:4.1.2.RELEASE'
testCompile("com.h2database:h2")
testCompile("org.springframework.boot:spring-boot-starter-test")
testCompile 'org.springframework:spring-test:4.1.2.RELEASE'
compile("org.springframework.boot:spring-boot-starter-actuator")
compile 'org.flywaydb:flyway-core:3.1',
'mysql:mysql-connector-java:5.1.34',
'org.jolokia:jolokia-core:1.2.3'
compile 'org.springframework.data:spring-data-jpa:1.7.1.RELEASE'
providedRuntime("org.springframework.boot:spring-boot-starter-tomcat")
}