Skip to content

Commit ba231cf

Browse files
committed
update kotlin to 1.4.31
update mirai to 2.4.1
1 parent d67c8ab commit ba231cf

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

build.gradle.kts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
22

33
plugins {
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+
1821
dependencies {
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")

src/main/kotlin/me/lightless/izumi/config/BotConfig.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)