-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
87 lines (65 loc) · 2.06 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
buildscript {
ext.kotlin_version = '1.3.41'
repositories {
jcenter()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "org.jetbrains.kotlin:kotlin-serialization:$kotlin_version"
}
}
group 'tursom'
version '1.0-SNAPSHOT'
apply plugin: 'java'
apply plugin: 'kotlin'
apply plugin: 'kotlinx-serialization'
sourceCompatibility = 1.8
repositories {
jcenter()
}
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
implementation "com.google.code.gson:gson:2.8.2"
// implementation 'org.apache.commons:commons-lang3:3.5'
// spring
implementation 'org.springframework:spring-context:5.1.10.RELEASE'
implementation 'commons-dbutils:commons-dbutils:1.7'
// 数据库与序列化部分可选
implementation group: 'org.jetbrains.kotlin', name: 'kotlin-reflect', version: kotlin_version
implementation("org.jetbrains.kotlinx:kotlinx-serialization-runtime:0.11.1")
// 解析XML
implementation group: 'dom4j', name: 'dom4j', version: '1.6.1'
// database.sqlite 依赖的库
implementation 'org.xerial:sqlite-jdbc:3.21.0.1'
// database.mysql 依赖的库
implementation group: 'mysql', name: 'mysql-connector-java', version: '+'
// socket.server.nio 需要的netty
implementation group: "io.netty", name: "netty-all", version: "4.1.33.Final"
// mongodb
implementation "org.mongodb:mongo-java-driver:+"
// kotlin 协程
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.2.1'
// OkHttp
implementation("com.squareup.okhttp3:okhttp:3.14.1")
// vert.x-jdbc-client
implementation 'io.vertx:vertx-jdbc-client:3.7.0'
// vert.x-web
implementation "io.vertx:vertx-web:3.7.0"
// 计算对象大小
compile 'org.apache.lucene:lucene-core:4.0.0'
testImplementation group: 'junit', name: 'junit', version: '4.12'
}
compileKotlin {
kotlinOptions.jvmTarget = "1.8"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "1.8"
}
//打包源代码
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
artifacts {
archives sourcesJar
}