add ts-proxy

This commit is contained in:
tursom 2021-08-25 15:26:58 +08:00
parent eb66444e23
commit 2e09ce8f26
4 changed files with 16 additions and 4 deletions

View File

@ -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")
}

View File

@ -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"
}

View File

@ -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,

View File

@ -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")
}