-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
120 lines (93 loc) · 3.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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
buildscript {
ext.kotlinVersion = "1.2.40"
ext.powermockVersion = "1.7.4"
ext.springBootVersion = "1.5.12.RELEASE"
repositories {
mavenCentral()
jcenter()
maven { url "https://jitpack.io" }
}
dependencies {
classpath "org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:${kotlinVersion}"
classpath "org.jetbrains.kotlin:kotlin-allopen:${kotlinVersion}"
}
}
apply plugin: "java"
apply plugin: "kotlin"
apply plugin: "eclipse"
apply plugin: "idea"
apply plugin: "org.springframework.boot"
/*
* Makes all beans annotated with @Component, @Async,
* @Transactional, @Cacheable non-final
*/
apply plugin: "kotlin-spring"
jar {
version = "0.1.0"
}
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
mavenCentral()
maven { url "https://jitpack.io" }
}
dependencies {
// MySQL
compile "mysql:mysql-connector-java"
testCompile "mysql:mysql-connector-java"
runtime "mysql:mysql-connector-java"
compile "com.zaxxer:HikariCP:3.1.0"
// Other
compile "org.springframework.boot:spring-boot-starter-web"
compile "org.springframework.boot:spring-boot-starter-security"
compile "org.springframework.boot:spring-boot-starter-data-jpa"
compile "org.springframework.boot:spring-boot-starter-cache"
compile "org.springframework.security.oauth:spring-security-oauth2:2.3.2.RELEASE"
compile "org.springframework:spring-web"
compile "org.springframework:spring-context-support:5.0.5.RELEASE"
compile "io.springfox:springfox-swagger2:2.4.0"
compile "io.springfox:springfox-swagger-ui:2.4.0"
compile "org.jsoup:jsoup:1.10.2"
compile "org.jetbrains.kotlin:kotlin-stdlib-jdk8:${kotlinVersion}"
compile "org.jetbrains.kotlin:kotlin-reflect:${kotlinVersion}"
//compile "com.google.guava:guava:19.0"
compile "com.google.maps:google-maps-services:0.1.12"
compile "org.javamoney:moneta:1.2.1"
compile "commons-validator:commons-validator:1.5.0"
compile "com.github.grumlimited:geocalc:v0.5.1"
compile "com.fasterxml.jackson.module:jackson-module-kotlin:2.9.5"
compile "org.flywaydb:flyway-core:5.0.7"
compile "com.cloudinary:cloudinary-http44:1.17.0"
testCompile "org.powermock:powermock-module-junit4:${powermockVersion}"
testCompile "org.powermock:powermock-api-mockito:${powermockVersion}"
testCompile "org.jetbrains.kotlin:kotlin-test:${kotlinVersion}"
testCompile "org.mockito:mockito-core:1.10.19"
testCompile "com.jayway.jsonpath:json-path:2.4.0"
testCompile "org.springframework.boot:spring-boot-starter-test"
testCompile "junit:junit"
}
task wrapper(type: Wrapper) {
gradleVersion = "3.5.1"
}
// See: http://stackoverflow.com/questions/26389679/running-spring-app-built-with-gradle-on-heroku
task stage(type: Copy, dependsOn: [clean, assemble]) {
from jar.archivePath
into project.rootDir
rename {
"app.jar"
}
}
stage.mustRunAfter(clean)
clean << {
project.file("app.jar").delete()
}
sourceSets {
main.java.srcDirs += "src/main/kotlin"
}
test {
testLogging {
events "passed", "skipped", "failed"
exceptionFormat = "full"
}
}