mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-10 18:40:15 +08:00
Fix tests
This commit is contained in:
parent
3eb5a0a4cf
commit
89ac4e863c
@ -3,7 +3,7 @@ import upload.Bintray
|
||||
import java.util.*
|
||||
|
||||
plugins {
|
||||
kotlin("jvm")
|
||||
id("kotlin")
|
||||
kotlin("plugin.serialization")
|
||||
id("java")
|
||||
`maven-publish`
|
||||
@ -27,9 +27,10 @@ kotlin {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
compileOnly("net.mamoe:mirai-core:${Versions.Mirai.core}")
|
||||
compileOnly(kotlin("stdlib")) // embedded by core
|
||||
compileAndRuntime("net.mamoe:mirai-core:${Versions.Mirai.core}")
|
||||
compileAndRuntime(kotlin("stdlib"))
|
||||
|
||||
api("com.google.code.gson:gson:2.8.6")
|
||||
api(group = "org.yaml", name = "snakeyaml", version = "1.25")
|
||||
|
@ -1,3 +1,4 @@
|
||||
import org.gradle.api.artifacts.dsl.DependencyHandler
|
||||
import org.gradle.kotlin.dsl.DependencyHandlerScope
|
||||
|
||||
/*
|
||||
@ -31,3 +32,9 @@ fun DependencyHandlerScope.kotlinx(id: String, version: String) = "org.jetbrains
|
||||
|
||||
@Suppress("unused")
|
||||
fun DependencyHandlerScope.ktor(id: String, version: String = Versions.Kotlin.ktor) = "io.ktor:ktor-$id:$version"
|
||||
|
||||
@Suppress("unused")
|
||||
fun DependencyHandler.compileAndRuntime(any: Any) {
|
||||
add("compileOnly", any)
|
||||
add("runtimeOnly", any)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user