mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-08 17:20:11 +08:00
fix Vcs
This commit is contained in:
parent
d97179068f
commit
eb1a15de76
@ -11,8 +11,8 @@ buildscript {
|
|||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
classpath 'com.github.jengelman.gradle.plugins:shadow:5.2.0'
|
classpath 'com.github.jengelman.gradle.plugins:shadow:5.2.0'
|
||||||
classpath "org.jetbrains.kotlin:kotlin-serialization:$kotlinVersion"
|
classpath "org.jetbrains.kotlin:kotlin-serialization:1.4-M1"
|
||||||
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
|
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.4-M1"
|
||||||
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.4' // don't use any other.
|
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.4' // don't use any other.
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -11,9 +11,10 @@ import org.gradle.kotlin.dsl.DependencyHandlerScope
|
|||||||
|
|
||||||
object Versions {
|
object Versions {
|
||||||
object Mirai {
|
object Mirai {
|
||||||
const val core = "0.30.0"
|
const val core = "0.31.0"
|
||||||
const val console = "0.3.6"
|
const val console = "0.3.7"
|
||||||
const val consoleWrapper = "0.1.3"
|
const val consoleGraphical = "0.0.2"
|
||||||
|
const val consoleWrapper = "0.2.0"
|
||||||
}
|
}
|
||||||
|
|
||||||
object Kotlin {
|
object Kotlin {
|
||||||
|
@ -1,22 +1,2 @@
|
|||||||
# style guide
|
# style guide
|
||||||
kotlin.code.style=official
|
kotlin.code.style=official
|
||||||
# config
|
|
||||||
miraiVersion=0.31.0
|
|
||||||
miraiConsoleVersion=0.3.8
|
|
||||||
miraiConsoleWrapperVersion=0.1.4
|
|
||||||
miraiConsoleGraphicalVersion = 0.0.2
|
|
||||||
kotlin.incremental.multiplatform=true
|
|
||||||
kotlin.parallel.tasks.in.project=true
|
|
||||||
# kotlin
|
|
||||||
kotlinVersion=1.4-M1
|
|
||||||
# kotlin libraries
|
|
||||||
serializationVersion=0.20.0-1.4-M1
|
|
||||||
coroutinesVersion=1.3.5-1.4-M1
|
|
||||||
atomicFuVersion=0.14.2-1.4-M1
|
|
||||||
kotlinXIoVersion=0.1.16
|
|
||||||
coroutinesIoVersion=0.1.16
|
|
||||||
# utility
|
|
||||||
ktorVersion=1.3.2-1.4-M1
|
|
||||||
klockVersion=1.7.0
|
|
||||||
# gradle plugin
|
|
||||||
protobufJavaVersion=3.10.0
|
|
||||||
|
@ -18,7 +18,6 @@ javafx {
|
|||||||
|
|
||||||
apply(plugin = "com.github.johnrengelman.shadow")
|
apply(plugin = "com.github.johnrengelman.shadow")
|
||||||
|
|
||||||
version = Versions.Mirai.console
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
tasks.withType<com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar>() {
|
tasks.withType<com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar>() {
|
||||||
@ -28,8 +27,7 @@ tasks.withType<com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar>() {
|
|||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
val miraiConsoleGraphicalVersion: String by project.ext
|
version = Versions.Mirai.console
|
||||||
version = miraiConsoleGraphicalVersion
|
|
||||||
|
|
||||||
description = "Console Graphical Version with plugin support for mirai"
|
description = "Console Graphical Version with plugin support for mirai"
|
||||||
bintray {
|
bintray {
|
||||||
@ -67,7 +65,7 @@ fun kotlinx(id: String, version: String) = "org.jetbrains.kotlinx:kotlinx-$id:$v
|
|||||||
|
|
||||||
fun ktor(id: String, version: String) = "io.ktor:ktor-$id:$version"
|
fun ktor(id: String, version: String) = "io.ktor:ktor-$id:$version"
|
||||||
|
|
||||||
val miraiVersion: String by rootProject.ext
|
val miraiVersion = Versions.Mirai.core
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation("net.mamoe:mirai-core-jvm:$miraiVersion")
|
implementation("net.mamoe:mirai-core-jvm:$miraiVersion")
|
||||||
@ -91,6 +89,7 @@ val sourcesJar by tasks.registering(Jar::class) {
|
|||||||
from(sourceSets.main.get().allSource)
|
from(sourceSets.main.get().allSource)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
publishing {
|
publishing {
|
||||||
/*
|
/*
|
||||||
repositories {
|
repositories {
|
||||||
@ -105,7 +104,7 @@ publishing {
|
|||||||
|
|
||||||
groupId = rootProject.group.toString()
|
groupId = rootProject.group.toString()
|
||||||
artifactId = "mirai-console-graphical"
|
artifactId = "mirai-console-graphical"
|
||||||
version = miraiConsoleGraphicalVersion
|
version = Versions.Mirai.consoleGraphical
|
||||||
|
|
||||||
pom.withXml {
|
pom.withXml {
|
||||||
val root = asNode()
|
val root = asNode()
|
||||||
|
@ -31,7 +31,7 @@ fun kotlinx(id: String, version: String) = "org.jetbrains.kotlinx:kotlinx-$id:$v
|
|||||||
fun ktor(id: String, version: String) = "io.ktor:ktor-$id:$version"
|
fun ktor(id: String, version: String) = "io.ktor:ktor-$id:$version"
|
||||||
|
|
||||||
|
|
||||||
val miraiVersion: String by rootProject.ext
|
val miraiVersion = Versions.Mirai.core
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation("net.mamoe:mirai-core-jvm:$miraiVersion")
|
implementation("net.mamoe:mirai-core-jvm:$miraiVersion")
|
||||||
|
@ -38,7 +38,14 @@ internal object ConsoleUpdater {
|
|||||||
if (file.name.contains("mirai-console")) {
|
if (file.name.contains("mirai-console")) {
|
||||||
when (consoleType) {
|
when (consoleType) {
|
||||||
CONSOLE_PURE -> {
|
CONSOLE_PURE -> {
|
||||||
return file
|
if(!file.name.contains("graphical")) {
|
||||||
|
return file
|
||||||
|
}
|
||||||
|
}
|
||||||
|
CONSOLE_GRAPHICAL -> {
|
||||||
|
if(file.name.contains("graphical")) {
|
||||||
|
return file
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -108,7 +115,7 @@ internal object ConsoleUpdater {
|
|||||||
return if (consoleType == CONSOLE_PURE) {
|
return if (consoleType == CONSOLE_PURE) {
|
||||||
"mirai-console"
|
"mirai-console"
|
||||||
} else {
|
} else {
|
||||||
"mirai-console-$consoleType"
|
"mirai-console-${consoleType.toLowerCase()}"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -38,8 +38,7 @@ dependencies {
|
|||||||
testApi("org.jsoup:jsoup:1.12.1")
|
testApi("org.jsoup:jsoup:1.12.1")
|
||||||
}
|
}
|
||||||
|
|
||||||
val miraiConsoleVersion: String by project.ext
|
version = Versions.Mirai.console
|
||||||
version = miraiConsoleVersion
|
|
||||||
|
|
||||||
description = "Console with plugin support for mirai"
|
description = "Console with plugin support for mirai"
|
||||||
bintray {
|
bintray {
|
||||||
@ -82,7 +81,7 @@ publishing {
|
|||||||
|
|
||||||
groupId = rootProject.group.toString()
|
groupId = rootProject.group.toString()
|
||||||
artifactId = "mirai-console"
|
artifactId = "mirai-console"
|
||||||
version = miraiConsoleVersion
|
version = version
|
||||||
|
|
||||||
pom.withXml {
|
pom.withXml {
|
||||||
val root = asNode()
|
val root = asNode()
|
||||||
|
Loading…
Reference in New Issue
Block a user