Skip to content

Commit

Permalink
build: mirai 2.10.0-RC2
Browse files Browse the repository at this point in the history
  • Loading branch information
cssxsh committed Jan 28, 2022
1 parent 2e23700 commit 03c3c2c
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 60 deletions.
27 changes: 10 additions & 17 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
plugins {
kotlin("jvm") version Versions.kotlin
kotlin("plugin.serialization") version Versions.kotlin
kotlin("jvm") version "1.6.0"
kotlin("plugin.serialization") version "1.6.0"

id("net.mamoe.mirai-console") version Versions.mirai
id("net.mamoe.mirai-console") version "2.10.0-RC2"
id("net.mamoe.maven-central-publish") version "0.7.1"
}

Expand Down Expand Up @@ -36,30 +36,23 @@ kotlin {

dependencies {
// implementation(ktor("client-serialization", Versions.ktor))
implementation(ktor("client-encoding", Versions.ktor)) {
implementation("io.ktor:ktor-client-encoding:1.6.5") {
exclude(group = "org.jetbrains.kotlin")
exclude(group = "org.jetbrains.kotlinx")
exclude(group = "org.slf4j")
exclude(group = "io.ktor", module = "ktor-client-core")
}
implementation("org.jclarion:image4j:0.7")
implementation("org.apache.commons:commons-text:1.9")
compileOnly("net.mamoe:mirai-core-utils:${mirai.coreVersion}")

testImplementation("net.mamoe.yamlkt:yamlkt-jvm:0.10.2")
testImplementation(kotlin("test", "1.5.31"))
testImplementation(kotlin("test", "1.6.0"))
}

mirai {
configureShadow {
exclude {
it.path.startsWith("kotlin")
}
exclude {
it.path.startsWith("org/intellij")
}
exclude {
it.path.startsWith("org/jetbrains")
}
exclude {
it.path.startsWith("org/slf4j")
}
exclude("module-info.class")
}
}

Expand Down
15 changes: 0 additions & 15 deletions buildSrc/build.gradle.kts

This file was deleted.

11 changes: 0 additions & 11 deletions buildSrc/src/main/kotlin/Dependency.kt

This file was deleted.

9 changes: 0 additions & 9 deletions buildSrc/src/main/kotlin/Versions.kt

This file was deleted.

5 changes: 0 additions & 5 deletions src/main/kotlin/xyz/cssxsh/mirai/plugin/WeiboHelperPlugin.kt
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@ package xyz.cssxsh.mirai.plugin
import kotlinx.coroutines.*
import net.mamoe.mirai.console.command.CommandManager.INSTANCE.register
import net.mamoe.mirai.console.command.CommandManager.INSTANCE.unregister
import net.mamoe.mirai.console.data.*
import net.mamoe.mirai.console.plugin.jvm.*
import net.mamoe.mirai.console.util.*
import net.mamoe.mirai.event.events.*
import net.mamoe.mirai.event.*
import net.mamoe.mirai.utils.*
Expand All @@ -22,9 +20,6 @@ object WeiboHelperPlugin : KotlinPlugin(

private var restore: Job? = null

@OptIn(ConsoleExperimentalApi::class)
private fun <T : PluginConfig> T.save() = loader.configStorage.store(this@WeiboHelperPlugin, this)

override fun onEnable() {
WeiboTaskData.reload()
WeiboHelperSettings.reload()
Expand Down
3 changes: 0 additions & 3 deletions src/main/kotlin/xyz/cssxsh/mirai/plugin/WeiboSubscriber.kt
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ package xyz.cssxsh.mirai.plugin

import kotlinx.coroutines.*
import kotlinx.serialization.*
import net.mamoe.mirai.console.util.*
import net.mamoe.mirai.console.util.CoroutineScopeUtils.childScope
import net.mamoe.mirai.contact.*
import net.mamoe.mirai.message.data.*
import net.mamoe.mirai.utils.*
Expand All @@ -14,7 +12,6 @@ import xyz.cssxsh.weibo.api.*
import java.net.UnknownHostException
import java.time.*

@OptIn(ConsoleExperimentalApi::class)
abstract class WeiboSubscriber<K : Comparable<K>>(val type: String) :
CoroutineScope by WeiboHelperPlugin.childScope("WeiboListener-$type") {

Expand Down

0 comments on commit 03c3c2c

Please sign in to comment.