File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
src/main/kotlin/me/lightless/izumi/config Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
22
33plugins {
44 java
5- kotlin(" jvm" ) version " 1.4.21 "
5+ kotlin(" jvm" ) version " 1.4.31 "
66 id(" com.github.johnrengelman.shadow" ) version " 5.2.0"
77}
88
@@ -15,9 +15,12 @@ repositories {
1515 jcenter()
1616}
1717
18+ val compileKotlin: KotlinCompile by tasks
19+ compileKotlin.kotlinOptions.useIR = true
20+
1821dependencies {
1922
20- api(" net.mamoe" , " mirai-core" , " 2.1.0 " )
23+ api(" net.mamoe" , " mirai-core" , " 2.4.1 " )
2124
2225 implementation(" org.yaml:snakeyaml:1.27" )
2326 implementation(" org.slf4j:slf4j-api:1.7.30" )
Original file line number Diff line number Diff line change @@ -31,4 +31,7 @@ class BotConfig {
3131 var useProxy by Delegates .notNull<Boolean >()
3232 lateinit var proxyIp: String
3333 var proxyPort by Delegates .notNull<Int >()
34+
35+ // 天气预报的 key
36+ lateinit var weatherKey: String
3437}
You can’t perform that action at this time.
0 commit comments