mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-08 09:10:11 +08:00
23 lines
979 B
Groovy
23 lines
979 B
Groovy
apply plugin: "kotlin"
|
|
apply plugin: "java"
|
|
apply plugin: "application"
|
|
|
|
dependencies {
|
|
api project(":mirai-core")
|
|
runtime files("../../mirai-core/build/classes/kotlin/jvm/main") // classpath is not set correctly by IDE
|
|
//runtime files("../../mirai-core/build/classes/atomicfu/jvm/main") // classpath is not set correctly by IDE
|
|
implementation group: 'org.jetbrains.kotlin', name: 'kotlin-stdlib-jdk8', version: kotlinVersion
|
|
implementation group: 'org.jetbrains.kotlinx', name: 'kotlinx-coroutines-core', version: coroutinesVersion
|
|
|
|
implementation("org.jetbrains.kotlinx:kotlinx-io:$kotlinXIoVersion")
|
|
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-io:$coroutinesIoVersion")
|
|
implementation group: 'com.alibaba', name: 'fastjson', version: '1.2.62'
|
|
implementation 'org.jsoup:jsoup:1.12.1'
|
|
}
|
|
|
|
mainClassName = "demo.gentleman.MainKt"
|
|
compileKotlin {
|
|
kotlinOptions {
|
|
freeCompilerArgs = ["-XXLanguage:+InlineClasses"]
|
|
}
|
|
} |