mirror of
https://github.com/tursom/TursomServer.git
synced 2025-03-13 11:20:10 +08:00
add ts-proxy
This commit is contained in:
parent
eb66444e23
commit
2e09ce8f26
@ -5,12 +5,14 @@ plugins {
|
||||
}
|
||||
|
||||
dependencies {
|
||||
api(project(":"))
|
||||
api(kotlin("stdlib-jdk8"))
|
||||
api(kotlin("reflect"))
|
||||
api(group = "org.slf4j", name = "slf4j-api", version = "1.7.32")
|
||||
compileOnly("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.1")
|
||||
compileOnly(group = "com.google.code.gson", name = "gson", version = "2.8.7")
|
||||
compileOnly(group = "io.netty", name = "netty-all", version = "4.1.67.Final")
|
||||
testImplementation(group = "junit", name = "junit", version = "4.13.2")
|
||||
|
||||
testApi(group = "junit", name = "junit", version = "4.13.2")
|
||||
}
|
||||
|
||||
|
||||
|
@ -1,3 +1,5 @@
|
||||
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
||||
|
||||
plugins {
|
||||
kotlin("jvm")
|
||||
`maven-publish`
|
||||
@ -15,3 +17,7 @@ dependencies {
|
||||
artifacts {
|
||||
archives(tasks["kotlinSourcesJar"])
|
||||
}
|
||||
|
||||
tasks.withType<KotlinCompile>().configureEach {
|
||||
kotlinOptions.freeCompilerArgs += "-Xjvm-default=all"
|
||||
}
|
||||
|
@ -2,7 +2,7 @@ package cn.tursom.proxy
|
||||
|
||||
import cn.tursom.core.uncheckedCast
|
||||
|
||||
interface Proxy<T : ProxyMethod> : Iterable<T> {
|
||||
interface Proxy<out T : ProxyMethod> : Iterable<T> {
|
||||
data class Result<out R>(
|
||||
val result: R,
|
||||
val success: Boolean = false,
|
||||
|
@ -5,13 +5,17 @@ plugins {
|
||||
}
|
||||
|
||||
dependencies {
|
||||
api(project(":"))
|
||||
api(kotlin("stdlib-jdk8"))
|
||||
api(kotlin("reflect"))
|
||||
|
||||
implementation(project(":ts-core"))
|
||||
implementation(project(":ts-core:ts-clone"))
|
||||
implementation(project(":ts-core:ts-log"))
|
||||
api(group = "org.ktorm", name = "ktorm-core", version = "3.4.1")
|
||||
compileOnly(group = "com.baomidou", name = "mybatis-plus", version = "3.4.3.1")
|
||||
compileOnly(group = "com.google.code.gson", name = "gson", version = "2.8.7")
|
||||
|
||||
testApi(group = "junit", name = "junit", version = "4.13.2")
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user