-
Notifications
You must be signed in to change notification settings - Fork 7
/
build.gradle.kts
47 lines (38 loc) · 1.38 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 {
val kotlinVersion = "1.9.0"
kotlin("jvm") version kotlinVersion
kotlin("plugin.serialization") version kotlinVersion
id("net.mamoe.mirai-console") version "2.14.0"
}
group = "org.laolittle.plugin.draw"
version = "1.4.0"
repositories {
mavenCentral()
maven("https://maven.aliyun.com/repository/central")
maven("https://maven.pkg.jetbrains.space/public/p/compose/dev")
maven("https://jitpack.io")
}
dependencies {
val ktorVersion = "2.3.2"
implementation("io.ktor:ktor-client-core-jvm:$ktorVersion")
implementation("io.ktor:ktor-client-okhttp:$ktorVersion")
val smVer = "1.1.3"
compileOnly("com.github.LaoLittle:SkikoMirai:$smVer")
testImplementation("com.github.LaoLittle:SkikoMirai:$smVer")
testImplementation(kotlin("test"))
val osName = System.getProperty("os.name")
val targetOs = when {
osName == "Mac OS X" -> "macos"
osName.startsWith("Win") -> "windows"
osName.startsWith("Linux") -> "linux"
else -> error("Unsupported OS: $osName")
}
val targetArch = when (val osArch = System.getProperty("os.arch")) {
"x86_64", "amd64" -> "x64"
"aarch64" -> "arm64"
else -> error("Unsupported arch: $osArch")
}
val version = "0.7.68"
val target = "${targetOs}-${targetArch}"
testImplementation("org.jetbrains.skiko:skiko-awt-runtime-$target:$version")
}