-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
70 lines (59 loc) · 1.9 KB
/
build.gradle
File metadata and controls
70 lines (59 loc) · 1.9 KB
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
buildscript {
ext {
springBootVersion = '1.3.2.RELEASE'
}
repositories {
mavenCentral()
maven { url 'http://repo.spring.io/plugins-release' }
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
classpath("org.springframework.build.gradle:propdeps-plugin:0.0.7")
}
}
apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'spring-boot'
apply plugin: 'propdeps'
apply plugin: 'propdeps-idea'
jar {
baseName = 'credential-decoder'
version = '0.0.1-SNAPSHOT'
}
repositories {
mavenCentral()
}
task sqlStartup(type: Exec) {
commandLine 'mysql.server', 'start'
}
task sqlStop(type: Exec) {
commandLine 'mysql.server', 'stop'
}
dependencies {
optional "org.springframework.boot:spring-boot-configuration-processor"
}
compileJava.dependsOn(processResources)
//project.tasks.testClasses.dependsOn project.tasks.sqlStartup
//project.tasks.build.finalizedBy project.tasks.sqlStop
dependencies {
compile('org.springframework.boot:spring-boot-starter')
compile("org.springframework.boot:spring-boot-starter-actuator")
compile("org.springframework.boot:spring-boot-starter-web")
compile('org.mariadb.jdbc:mariadb-java-client:1.3.4')
compile('org.springframework.boot:spring-boot-starter-jdbc')
compile('org.springframework:spring-jdbc')
compile("com.fasterxml.jackson.core:jackson-databind")
compile('org.json:json:20151123')
compile("org.springframework:spring-web")
compile('org.apache.httpcomponents:httpclient:4.5.1')
compile("com.h2database:h2")
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile('org.springframework.boot:spring-boot-starter-test')
testCompile('com.googlecode.junit-toolbox:junit-toolbox:2.2')
testCompile('junit:junit:4.12')
testCompile('org.hamcrest:hamcrest-all:1.3')
testCompile('org.mockito:mockito-all:1.10.19')
}
task wrapper(type: Wrapper) {
gradleVersion = '2.9'
}