Skip to content

Commit

Permalink
mirai: migrate to console 1.0-RC-dev-29
Browse files Browse the repository at this point in the history
  • Loading branch information
PeratX committed Sep 28, 2020
1 parent cbeb3f5 commit 5f5c936
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
10 changes: 5 additions & 5 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,16 @@ kotlin {
}

repositories {
maven("https://mirrors.huaweicloud.com/repository/maven")
maven("https://maven.aliyun.com/repository/public")
maven("https://dl.bintray.com/him188moe/mirai")
maven("https://dl.bintray.com/kotlin/kotlin-eap")
}

dependencies {
api("org.jetbrains.kotlinx:atomicfu:0.14.4")

implementation("net.mamoe:mirai-core:1.3.0")
implementation("net.mamoe:mirai-console:1.0-M4")
implementation("net.mamoe:mirai-core:1.3.1")
implementation("net.mamoe:mirai-console:1.0-RC-dev-29")
}

tasks.named<Jar>("jar") {
Expand All @@ -45,8 +45,8 @@ tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
}

bintray {
user = property("buser") as String?
key = property("bkey") as String?
user = findProperty("buser") as String?
key = findProperty("bkey") as String?
setPublications("mavenJava")
setConfigurations("archives")
pkg.apply {
Expand Down
2 changes: 1 addition & 1 deletion src/main/kotlin/org/itxtech/mirainative/MiraiNative.kt
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ object MiraiNative : KotlinPlugin(
fun launchEvent(b: suspend CoroutineScope.() -> Unit) = launch(context = eventDispatcher, block = b)

fun getVersion(): String {
var version = description.version.value
var version = description.version.toString()
val mf = javaClass.classLoader.getResources("META-INF/MANIFEST.MF")
while (mf.hasMoreElements()) {
val manifest = Manifest(mf.nextElement().openStream())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ import kotlinx.serialization.json.Json
import net.mamoe.mirai.console.command.CommandManager.INSTANCE.register
import net.mamoe.mirai.console.command.CommandSender
import net.mamoe.mirai.console.command.CompositeCommand
import net.mamoe.mirai.console.util.ConsoleExperimentalApi
import org.itxtech.mirainative.Bridge
import org.itxtech.mirainative.MiraiNative
import org.itxtech.mirainative.bridge.NativeBridge
Expand Down Expand Up @@ -205,6 +206,7 @@ object PluginManager {
}
}

@OptIn(ConsoleExperimentalApi::class)
object NpmCommand : CompositeCommand(
MiraiNative, "npm",
description = "Mirai Native 插件管理器"
Expand Down

0 comments on commit 5f5c936

Please sign in to comment.