-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
74 lines (67 loc) · 2.56 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
group 'com.thoughtworks'
version '1.0.0'
description 'petstore inventory-service'
buildscript {
ext {
springBootVersion = '1.5.3.RELEASE'
}
repositories {
mavenLocal()
maven { url "http://maven.aliyun.com/nexus/content/repositories/central/" }
maven { url "http://maven.aliyun.com/nexus/content/repositories/gradleplugins/" }
maven { url "http://maven.aliyun.com/nexus/content/repositories/jcenter/" }
maven { url "https://repo.spring.io/plugins-snapshot"}
jcenter()
maven { url 'http://repo.spring.io/plugins-release' }
}
dependencies {
classpath "org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}"
classpath 'io.spring.gradle:dependency-management-plugin:1.0.2.RELEASE'
classpath 'org.springframework.build.gradle:propdeps-plugin:0.0.7'
}
}
repositories {
mavenLocal()
maven { url "http://maven.aliyun.com/nexus/content/repositories/central/" }
maven { url "http://maven.aliyun.com/nexus/content/repositories/gradleplugins/" }
maven { url "http://maven.aliyun.com/nexus/content/repositories/jcenter/" }
maven { url "https://repo.spring.io/plugins-snapshot"}
jcenter()
maven { url 'http://repo.spring.io/plugins-release' }
}
apply plugin: 'idea'
apply plugin: 'groovy'
apply plugin: 'org.springframework.boot'
jar{
baseName='inventory-service'
}
sourceCompatibility = 1.8
targetCompatibility = 1.8
dependencyManagement {
imports {
mavenBom 'org.springframework.cloud:spring-cloud-dependencies:Dalston.RELEASE'
}
}
dependencies {
compile('org.codehaus.groovy:groovy')
compile 'org.springframework.boot:spring-boot-starter-web'
compile 'org.springframework.boot:spring-boot-starter-actuator'
compile 'org.springframework.boot:spring-boot-starter-data-jpa'
compile 'org.springframework.cloud:spring-cloud-starter-eureka'
compile 'io.springfox:springfox-swagger2:2.5.0'
compile 'io.springfox:springfox-swagger-ui:2.5.0'
compile 'org.codehaus.groovy:groovy-all:2.4.11'
compile 'com.google.guava:guava:21.0'
compile 'joda-time:joda-time:2.9.9'
runtime 'mysql:mysql-connector-java'
runtime 'org.mariadb.jdbc:mariadb-java-client'
testCompile(
'org.springframework.boot:spring-boot-starter-test',
'org.spockframework:spock-core:1.1-groovy-2.4-rc-2',
'org.spockframework:spock-spring:1.1-groovy-2.4-rc-2',
'org.mock-server:mockserver-netty:3.10.4'
)
}
springBoot {
mainClass = 'com.thoughtworks.petstore.inventory.Application'
}