-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.gradle
60 lines (51 loc) · 1.44 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
group 'nbsaw'
version '0.0.3'
buildscript {
ext.kotlin_version = '1.1.1'
ext.spring_boot_version = '1.5.3.RELEASE'
repositories {
jcenter()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "org.springframework.boot:spring-boot-gradle-plugin:$spring_boot_version"
classpath "org.jetbrains.kotlin:kotlin-noarg:$kotlin_version"
}
}
apply plugin: 'idea'
apply plugin: 'kotlin'
apply plugin: 'org.springframework.boot'
apply plugin: 'application'
apply plugin: 'kotlin-kapt'
apply plugin: 'kotlin-jpa'
kapt {
generateStubs = true
}
jar {
baseName = 'kotlin_spider'
version = version
}
repositories {
jcenter()
}
dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib-jre8:$kotlin_version"
// jieba analysis
compile group: 'com.huaban', name: 'jieba-analysis', version: '1.0.2'
// spring boot
compile 'org.springframework.boot:spring-boot-starter-web'
// spring boot jpa
compile (group: 'org.springframework.boot', name: 'spring-boot-starter-data-jpa')
// mysql
compile (group: 'mysql', name: 'mysql-connector-java')
// jsoup
compile group: 'org.jsoup', name: 'jsoup', version: '1.10.2'
// gson support
compile group: 'com.google.code.gson', name: 'gson', version: '2.8.0'
}
task wrapper(type: Wrapper) {
gradleVersion = '2.9'
}
springBoot {
mainClass = 'kotlin_spider.ApplicationKt'
}