-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
50 lines (38 loc) · 983 Bytes
/
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
import org.apache.tools.ant.taskdefs.condition.Os
apply plugin: 'java'
apply plugin: 'spring-boot'
apply plugin: 'eclipse'
sourceCompatibility = 1.8
targetCompatibility = 1.8
buildscript {
repositories{
mavenLocal()
mavenCentral();
}
dependencies {
classpath "org.springframework.boot:spring-boot-gradle-plugin:1.2.5.RELEASE"
}
}
repositories {
mavenCentral()
}
dependencies {
compile "org.springframework.boot:spring-boot-starter-web:1.2.8.RELEASE"
compile "com.google.guava:guava:18.0"
compile "com.netflix.feign:feign-core:8.14.4"
compile "com.netflix.feign:feign-gson:8.14.4"
compile "org.springframework.boot:spring-boot-starter-test:1.2.8.RELEASE"
}
sourceSets {
main {
resources {
srcDir 'build/bower/'
}
}
}
task bowerInstall(type: Exec) {
String bowerExecutable = Os.isFamily(Os.FAMILY_WINDOWS) ? "bower.cmd" : "/usr/local/bin/bower";
executable = bowerExecutable
args = ["install"]
}
processResources.dependsOn bowerInstall