-
Notifications
You must be signed in to change notification settings - Fork 140
/
build.gradle.kts
47 lines (40 loc) · 1.21 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
43
44
45
46
47
plugins {
kotlin("jvm") version "1.7.20"
kotlin("plugin.serialization") version "1.7.20"
id("me.him188.maven-central-publish") version "1.0.0-dev-3"
id("net.mamoe.mirai-console") version "2.13.0-RC2"
}
group = "org.itxtech"
version = "2.0.1"
description = "强大的 mirai 原生插件加载器。"
repositories {
mavenCentral()
}
dependencies {
compileOnly("org.jetbrains.kotlinx:atomicfu:0.18.4")
implementation("io.ktor:ktor-client-okhttp:2.1.3") {
exclude(group = "org.jetbrains.kotlin")
exclude(group = "org.jetbrains.kotlinx")
exclude(group = "org.slf4j")
}
implementation("com.squareup.okhttp3:okhttp:4.10.0") {
exclude(group = "org.jetbrains.kotlin")
exclude(group = "org.jetbrains.kotlinx")
exclude(group = "org.slf4j")
}
}
mavenCentralPublish {
singleDevGithubProject("iTXTech", "mirai-native")
licenseAGplV3()
useCentralS01()
}
tasks.named<Jar>("jar") {
manifest {
attributes["Name"] = "iTXTech MiraiNative"
attributes["Revision"] = Runtime.getRuntime().exec("git rev-parse --short HEAD")
.inputStream.bufferedReader().readText().trim()
}
}
mirai {
jvmTarget = JavaVersion.VERSION_11
}