forked from iTXTech/mirai-native
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
42 lines (35 loc) · 1.13 KB
/
build.gradle.kts
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
plugins {
kotlin("jvm") version "1.3.72"
id("org.jetbrains.kotlin.plugin.serialization") version "1.3.72"
}
group = "org.itxtech"
version = "1.7.0"
kotlin {
sourceSets {
all {
languageSettings.enableLanguageFeature("InlineClasses")
languageSettings.useExperimentalAnnotation("kotlin.Experimental")
}
}
}
repositories {
maven("https://mirrors.huaweicloud.com/repository/maven")
maven("https://dl.bintray.com/him188moe/mirai")
maven("https://dl.bintray.com/kotlin/kotlin-eap")
}
dependencies {
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.6")
implementation("net.mamoe:mirai-core:1.0.2")
implementation("net.mamoe:mirai-console:0.5.2")
}
tasks.named<Jar>("jar") {
manifest {
attributes["Name"] = "iTXTech MiraiNative"
attributes["Revision"] = Runtime.getRuntime().exec("git rev-parse --short HEAD")
.inputStream.bufferedReader().readText().trim()
}
}
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
kotlinOptions.jvmTarget = "1.8"
}