mirror of
https://github.com/jie65535/mirai-console-jcf-plugin.git
synced 2026-09-15 03:36:09 +08:00
更新依赖到最新版本
更新插件版本号到v1.2.1
This commit is contained in:
+4
-6
@@ -1,23 +1,21 @@
|
|||||||
plugins {
|
plugins {
|
||||||
val kotlinVersion = "1.7.10"
|
val kotlinVersion = "2.0.20"
|
||||||
kotlin("jvm") version kotlinVersion
|
kotlin("jvm") version kotlinVersion
|
||||||
kotlin("plugin.serialization") version kotlinVersion
|
kotlin("plugin.serialization") version kotlinVersion
|
||||||
|
|
||||||
id("net.mamoe.mirai-console") version "2.13.2"
|
id("net.mamoe.mirai-console") version "2.16.0"
|
||||||
}
|
}
|
||||||
|
|
||||||
group = "top.jie65535.jcf"
|
group = "top.jie65535.jcf"
|
||||||
version = "1.2.0"
|
version = "1.2.1"
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
maven("https://maven.aliyun.com/repository/public")
|
maven("https://maven.aliyun.com/repository/public")
|
||||||
mavenCentral()
|
mavenCentral()
|
||||||
}
|
}
|
||||||
val ktorVersion = "2.2.2"
|
val ktorVersion = "3.0.3"
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
// implementation("io.ktor:ktor-client-core:$ktorVersion")
|
|
||||||
implementation("io.ktor:ktor-client-core-jvm:$ktorVersion")
|
|
||||||
implementation("io.ktor:ktor-client-okhttp:$ktorVersion")
|
implementation("io.ktor:ktor-client-okhttp:$ktorVersion")
|
||||||
|
|
||||||
testImplementation(kotlin("test"))
|
testImplementation(kotlin("test"))
|
||||||
|
|||||||
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
distributionBase=GRADLE_USER_HOME
|
distributionBase=GRADLE_USER_HOME
|
||||||
distributionPath=wrapper/dists
|
distributionPath=wrapper/dists
|
||||||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-bin.zip
|
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.3-bin.zip
|
||||||
zipStoreBase=GRADLE_USER_HOME
|
zipStoreBase=GRADLE_USER_HOME
|
||||||
zipStorePath=wrapper/dists
|
zipStorePath=wrapper/dists
|
||||||
|
|||||||
@@ -32,6 +32,11 @@ class CurseforgeApi(apiKey: String) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private val http = HttpClient(OkHttp) {
|
private val http = HttpClient(OkHttp) {
|
||||||
|
// engine {
|
||||||
|
// config {
|
||||||
|
// protocols(listOf(okhttp3.Protocol.HTTP_1_1))
|
||||||
|
// }
|
||||||
|
// }
|
||||||
install(HttpTimeout) {
|
install(HttpTimeout) {
|
||||||
this.requestTimeoutMillis = 60_000
|
this.requestTimeoutMillis = 60_000
|
||||||
this.connectTimeoutMillis = 60_000
|
this.connectTimeoutMillis = 60_000
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ object PluginMain: KotlinPlugin(
|
|||||||
JvmPluginDescription(
|
JvmPluginDescription(
|
||||||
id = "top.jie65535.jcf",
|
id = "top.jie65535.jcf",
|
||||||
name = "J Curseforge Util",
|
name = "J Curseforge Util",
|
||||||
version = "1.2.0",
|
version = "1.2.1",
|
||||||
) {
|
) {
|
||||||
author("jie65535")
|
author("jie65535")
|
||||||
info("MC Curseforge & Modrinth Util\n" +
|
info("MC Curseforge & Modrinth Util\n" +
|
||||||
|
|||||||
Reference in New Issue
Block a user