mirror of
https://github.com/tursom/TursomServer.git
synced 2025-04-02 15:41:23 +08:00
update
This commit is contained in:
parent
68d2ed2975
commit
a8ce78e176
@ -16,6 +16,7 @@ include("ts-core:ts-ws-client")
|
|||||||
include("ts-core:ts-yaml")
|
include("ts-core:ts-yaml")
|
||||||
include("ts-core:ts-json")
|
include("ts-core:ts-json")
|
||||||
include("ts-core:ts-xml")
|
include("ts-core:ts-xml")
|
||||||
|
include("ts-core:ts-async-http")
|
||||||
include("ts-socket")
|
include("ts-socket")
|
||||||
include("ts-web")
|
include("ts-web")
|
||||||
include("ts-web:ts-web-netty")
|
include("ts-web:ts-web-netty")
|
||||||
|
@ -1,20 +1,40 @@
|
|||||||
dependencies {
|
plugins {
|
||||||
implementation(project(":"))
|
kotlin("jvm")
|
||||||
implementation(project(":utils"))
|
`maven-publish`
|
||||||
api project (":utils:xml")
|
}
|
||||||
|
|
||||||
// kotlin 协程
|
dependencies {
|
||||||
compile 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.4.2'
|
api(project(":"))
|
||||||
// kotlin 反射
|
api(project(":ts-core"))
|
||||||
//implementation "org.jetbrains.kotlin:kotlin-reflect:$kotlinVersion"
|
implementation(project(":ts-core:ts-xml"))
|
||||||
// OkHttp
|
api("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.4.2")
|
||||||
//implementation("com.squareup.okhttp3:okhttp:3.14.1")
|
api(group = "com.squareup.retrofit2", name = "converter-gson", version = "2.9.0")
|
||||||
//implementation group: 'cglib', name: 'cglib', version: '3.3.0'
|
|
||||||
// https://mvnrepository.com/artifact/com.squareup.retrofit2/converter-gson
|
|
||||||
api group : 'com.squareup.retrofit2', name: 'converter-gson', version: '2.9.0'
|
|
||||||
// https://mvnrepository.com/artifact/com.squareup.retrofit2/retrofit
|
// https://mvnrepository.com/artifact/com.squareup.retrofit2/retrofit
|
||||||
compile group : 'com.squareup.retrofit2', name: 'retrofit', version: '2.9.0'
|
api(group = "com.squareup.retrofit2", name = "retrofit", version = "2.9.0")
|
||||||
|
|
||||||
// https://mvnrepository.com/artifact/org.jsoup/jsoup
|
// https://mvnrepository.com/artifact/org.jsoup/jsoup
|
||||||
api group : 'org.jsoup', name: 'jsoup', version: '1.13.1'
|
api(group = "org.jsoup", name = "jsoup", version = "1.13.1")
|
||||||
|
}
|
||||||
|
|
||||||
|
@kotlin.Suppress("UNCHECKED_CAST")
|
||||||
|
(rootProject.ext["excludeTest"] as (Project, TaskContainer) -> Unit)(project, tasks)
|
||||||
|
|
||||||
|
tasks.register("install") {
|
||||||
|
finalizedBy(tasks["publishToMavenLocal"])
|
||||||
|
}
|
||||||
|
|
||||||
|
publishing {
|
||||||
|
publications {
|
||||||
|
create<MavenPublication>("maven") {
|
||||||
|
groupId = project.group.toString()
|
||||||
|
artifactId = project.name
|
||||||
|
version = project.version.toString()
|
||||||
|
|
||||||
|
from(components["java"])
|
||||||
|
try {
|
||||||
|
artifact(tasks["sourcesJar"])
|
||||||
|
} catch (e: Exception) {
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
package cn.tursom.http
|
package cn.tursom.http
|
||||||
|
|
||||||
import cn.tursom.core.isInheritanceFrom
|
import cn.tursom.core.isInheritanceFrom
|
||||||
import cn.tursom.utils.xml.Xml
|
import cn.tursom.core.xml.Xml
|
||||||
import okhttp3.MediaType
|
import okhttp3.MediaType
|
||||||
import okhttp3.RequestBody
|
import okhttp3.RequestBody
|
||||||
import okhttp3.ResponseBody
|
import okhttp3.ResponseBody
|
||||||
|
Loading…
Reference in New Issue
Block a user