This commit is contained in:
tursom 2021-04-11 23:38:28 +08:00
parent 024b0b4bc8
commit 914f6502c3
21 changed files with 87 additions and 53 deletions

View File

@ -17,6 +17,7 @@ include("ts-core:ts-json")
include("ts-socket")
include("ts-web")
include("ts-web:ts-web-netty")
include("ts-web:ts-web-coroutine")
//include("web", "aop", "database", "utils", "utils:xml", "utils:async-http", "web:netty-web")
//include("socket", "socket:socket-async")
//include("AsyncSocket")

View File

@ -4,7 +4,7 @@ plugins {
}
dependencies {
api(project(":"))
implementation(project(":"))
compileOnly(group = "com.google.code.gson", name = "gson", version = "2.8.6")
compileOnly(group = "io.netty", name = "netty-all", version = "4.1.43.Final")
}

View File

@ -4,7 +4,7 @@ plugins {
}
dependencies {
api(project(":ts-core"))
implementation(project(":ts-core"))
compileOnly(group = "io.netty", name = "netty-all", version = "4.1.43.Final")
}

View File

@ -4,8 +4,9 @@ plugins {
}
dependencies {
api(project(":ts-core"))
api(project(":ts-core:ts-datastruct"))
implementation(project(":"))
implementation(project(":ts-core"))
implementation(project(":ts-core:ts-datastruct"))
}
@kotlin.Suppress("UNCHECKED_CAST")

View File

@ -4,7 +4,7 @@ plugins {
}
dependencies {
api(project(":ts-core"))
implementation(project(":ts-core"))
api("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.4.2")
}

View File

@ -4,7 +4,7 @@ plugins {
}
dependencies {
api(project(":ts-core"))
implementation(project(":ts-core"))
}
@kotlin.Suppress("UNCHECKED_CAST")

View File

@ -4,8 +4,10 @@ plugins {
}
dependencies {
api(project(":ts-core:ts-buffer"))
api(project(":ts-core:ts-hash"))
implementation(project(":"))
implementation(project(":ts-core"))
implementation(project(":ts-core:ts-buffer"))
implementation(project(":ts-core:ts-hash"))
}
@kotlin.Suppress("UNCHECKED_CAST")

View File

@ -4,7 +4,7 @@ plugins {
}
dependencies {
api(project(":ts-core"))
implementation(project(":ts-core"))
}
@kotlin.Suppress("UNCHECKED_CAST")

View File

@ -4,10 +4,10 @@ plugins {
}
dependencies {
api(project(":ts-core"))
api(project(":ts-core:ts-buffer"))
api(project(":ts-core:ts-pool"))
api(project(":ts-core:ts-datastruct"))
implementation(project(":ts-core"))
implementation(project(":ts-core:ts-buffer"))
implementation(project(":ts-core:ts-pool"))
implementation(project(":ts-core:ts-datastruct"))
}
@kotlin.Suppress("UNCHECKED_CAST")

View File

@ -4,8 +4,8 @@ plugins {
}
dependencies {
api(project(":ts-core"))
api(project(":ts-core:ts-buffer"))
implementation(project(":ts-core"))
implementation(project(":ts-core:ts-buffer"))
}
@kotlin.Suppress("UNCHECKED_CAST")

View File

@ -4,7 +4,7 @@ plugins {
}
dependencies {
api(project(":"))
implementation(project(":"))
compileOnly(group = "com.google.code.gson", name = "gson", version = "2.8.6")
compileOnly(group = "com.fasterxml.jackson.core", name = "jackson-core", version = "2.10.1")
compileOnly(group = "com.fasterxml.jackson.core", name = "jackson-databind", version = "2.10.1")

View File

@ -4,10 +4,10 @@ plugins {
}
dependencies {
api(project(":"))
api(group = "org.slf4j", name = "slf4j-api", version = "1.7.29")
api(group = "ch.qos.logback", name = "logback-core", version = "1.2.3")
api(group = "ch.qos.logback", name = "logback-classic", version = "1.2.3")
implementation(project(":"))
implementation(group = "org.slf4j", name = "slf4j-api", version = "1.7.29")
implementation(group = "ch.qos.logback", name = "logback-core", version = "1.2.3")
implementation(group = "ch.qos.logback", name = "logback-classic", version = "1.2.3")
}
@kotlin.Suppress("UNCHECKED_CAST")

View File

@ -4,11 +4,8 @@ plugins {
}
dependencies {
compile(project(":"))
// https://mvnrepository.com/artifact/javax.mail/mail
//compile group: "javax.mail", name: "mail", version: "1.4"
// https://mvnrepository.com/artifact/com.sun.mail/javax.mail
compile(group = "com.sun.mail", name = "javax.mail", version = "1.5.1")
implementation(project(":"))
implementation(group = "com.sun.mail", name = "javax.mail", version = "1.5.1")
}
@kotlin.Suppress("UNCHECKED_CAST")

View File

@ -4,8 +4,9 @@ plugins {
}
dependencies {
api(project(":ts-core:ts-buffer"))
api(project(":ts-core:ts-datastruct"))
implementation(project(":"))
implementation(project(":ts-core:ts-buffer"))
implementation(project(":ts-core:ts-datastruct"))
}
@kotlin.Suppress("UNCHECKED_CAST")

View File

@ -4,10 +4,10 @@ plugins {
}
dependencies {
api(project(":ts-core"))
api(project(":ts-core:ts-buffer"))
api(project(":ts-core:ts-log"))
api(group = "io.netty", name = "netty-all", version = "4.1.43.Final")
implementation(project(":ts-core"))
implementation(project(":ts-core:ts-buffer"))
implementation(project(":ts-core:ts-log"))
implementation(group = "io.netty", name = "netty-all", version = "4.1.43.Final")
}
@kotlin.Suppress("UNCHECKED_CAST")

View File

@ -4,9 +4,9 @@ plugins {
}
dependencies {
api(project(":ts-core"))
implementation(project(":ts-core"))
// 解析YAML
api(group = "org.yaml", name = "snakeyaml", version = "1.28")
implementation(group = "org.yaml", name = "snakeyaml", version = "1.28")
}
@kotlin.Suppress("UNCHECKED_CAST")

View File

@ -4,11 +4,12 @@ plugins {
}
dependencies {
api(project(":ts-core"))
api(project(":ts-core:ts-encrypt"))
api(project(":ts-core:ts-buffer"))
api(project(":ts-core:ts-pool"))
api(project(":ts-core:ts-log"))
implementation(project(":ts-core"))
implementation(project(":ts-core:ts-encrypt"))
implementation(project(":ts-core:ts-buffer"))
implementation(project(":ts-core:ts-pool"))
implementation(project(":ts-core:ts-log"))
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.4.2")
}
@kotlin.Suppress("UNCHECKED_CAST")

View File

@ -4,11 +4,11 @@ plugins {
}
dependencies {
api(project(":ts-core"))
api(project(":ts-core:ts-buffer"))
api(project(":ts-core:ts-datastruct"))
implementation(project(":ts-core"))
implementation(project(":ts-core:ts-buffer"))
implementation(project(":ts-core:ts-datastruct"))
compileOnly(project(":ts-core:ts-json"))
api(group = "org.slf4j", name = "slf4j-api", version = "1.7.29")
implementation(group = "org.slf4j", name = "slf4j-api", version = "1.7.29")
}
@kotlin.Suppress("UNCHECKED_CAST")

View File

@ -1,7 +0,0 @@
dependencies {
implementation project(":web")
api project(":json")
api group: 'org.slf4j', name: 'slf4j-api', version: '1.7.29'
compile 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.4.2'
compile group: 'org.jetbrains.kotlin', name: 'kotlin-reflect', version: kotlinVersion
}

View File

@ -0,0 +1,36 @@
plugins {
kotlin("jvm")
`maven-publish`
}
dependencies {
implementation(project(":"))
implementation(project(":ts-web"))
implementation(project(":ts-core:ts-buffer"))
implementation(project(":ts-core:ts-json"))
implementation(group = "org.slf4j", name = "slf4j-api", version = "1.7.29")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.4.2")
}
@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) {
}
}
}
}

View File

@ -4,10 +4,12 @@ plugins {
}
dependencies {
api(project(":ts-core"))
api(project(":ts-core:ts-log"))
api(project(":ts-web"))
api(group = "io.netty", name = "netty-all", version = "4.1.43.Final")
implementation(project(":ts-core"))
implementation(project(":ts-core:ts-buffer"))
implementation(project(":ts-core:ts-log"))
implementation(project(":ts-web"))
implementation(group = "io.netty", name = "netty-all", version = "4.1.43.Final")
implementation(group = "org.slf4j", name = "slf4j-api", version = "1.7.29")
}
@kotlin.Suppress("UNCHECKED_CAST")