-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
63 lines (53 loc) · 1.58 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
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.github.jengelman.gradle.plugins:shadow:5.2.0'
}
}
plugins {
id 'java'
id 'org.jetbrains.kotlin.jvm' version '1.4.10'
id 'com.github.johnrengelman.shadow' version '5.2.0'
}
apply plugin: 'com.github.johnrengelman.shadow'
apply plugin: 'java'
group 'xyz.vonxxghost'
version '0.1.5'
repositories {
jcenter()
maven { url 'https://dl.bintray.com/kotlin/kotlin-eap' }
mavenCentral()
}
dependencies {
implementation 'net.mamoe:mirai-core-all:2.7.0'//此处版本应替换为当前最新
testCompile group: 'junit', name: 'junit', version: '4.12'
compile 'io.javalin:javalin:3.10.1'
compile 'io.github.microutils:kotlin-logging:1.7.9'
compile 'org.apache.logging.log4j:log4j-slf4j-impl:2.13.2'
compile 'com.uchuhimo:konf:0.22.1'
compile group: 'org.apache.commons', name: 'commons-email', version: '1.5'
def ktor_version = "1.5.1"
implementation "io.ktor:ktor-client-apache:$ktor_version"
implementation "io.ktor:ktor-client-gson:$ktor_version"
implementation "io.ktor:ktor-client-logging:$ktor_version"
}
compileKotlin {
kotlinOptions.jvmTarget = "1.8"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "1.8"
}
shadowJar {
// 生成包的命名规则: baseName-version-classifier.jar
manifest {
attributes(
'Main-Class': 'xyz.vonxxghost.SakugaBotKt'//入口点
)
}
// 将 build.gradle 打入到 jar 中, 方便查看依赖包版本
from("./"){
include 'build.gradle'
}
}