-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
39 lines (32 loc) · 1.08 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
plugins {
id 'org.jetbrains.kotlin.jvm' version '1.3.71'
id 'java'
id 'com.github.johnrengelman.shadow' version '5.2.0'
}
group = 'me.cunzai'
version = '1.0'
repositories {
maven { url 'https://dl.bintray.com/kotlin/kotlin-eap' }
maven { url 'https://mirrors.huaweicloud.com/repository/maven' }
mavenCentral()
jcenter()
}
def miraiCoreVersion = "+" // 1.0.2
def miraiConsoleVersion = "+" // 0.5.2
dependencies {
compileOnly 'org.jetbrains.kotlin:kotlin-stdlib-jdk8'
compileOnly "net.mamoe:mirai-core:$miraiCoreVersion"
compileOnly "net.mamoe:mirai-console:$miraiConsoleVersion"
testImplementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk8'
testImplementation "net.mamoe:mirai-core:$miraiCoreVersion"
testImplementation "net.mamoe:mirai-core-qqandroid:$miraiCoreVersion"
testImplementation "net.mamoe:mirai-console:$miraiConsoleVersion"
}
compileKotlin {
kotlinOptions.jvmTarget = '1.8'
}
compileTestKotlin {
kotlinOptions.jvmTarget = '1.8'
}
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8