-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
57 lines (50 loc) · 1.47 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
buildscript {
ext {
springBootVersion = '1.5.12.RELEASE'
}
repositories {
mavenLocal()
maven{ url "http://maven.aliyun.com/nexus/content/groups/public/"}
mavenCentral()
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
}
}
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'org.springframework.boot'
group = 'com.hgp'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = 1.8
repositories {
mavenLocal()
maven{ url "http://maven.aliyun.com/nexus/content/groups/public/"}
mavenCentral()
}
dependencies {
compile('org.springframework.boot:spring-boot-starter')
compile('us.codecraft:webmagic-core:0.7.3') {
exclude module: 'httpclient'
exclude module: 'fastjson'
}
compile('us.codecraft:webmagic-extension:0.7.3')
compile('org.apache.httpcomponents:httpclient:4.5.10')
compile('com.alibaba:fastjson:1.2.62')
testCompile('org.springframework.boot:spring-boot-starter-test')
}
configurations {
all*.exclude group: "org.slf4j", module: "slf4j-log4j12"
}
/**
或者去掉springboot的log4j依赖
dependencies {
compile('org.springframework.boot:spring-boot-starter') {
exclude module: 'slf4j-log4j12'
exclude module: 'log4j'
}
compile('us.codecraft:webmagic-core:0.7.3')
compile('us.codecraft:webmagic-extension:0.7.3')
testCompile('org.springframework.boot:spring-boot-starter-test')
}
*/