mirror of
https://github.com/tursom/TursomServer.git
synced 2025-04-26 13:01:22 +08:00
update dependence
This commit is contained in:
parent
6f4d4fe5b9
commit
d8696e30fb
build.gradle.kts
ts-core
build.gradle.kts
src/test/kotlin
ts-async-http
ts-buffer
ts-coroutine
ts-delegation
ts-json
ts-log
ts-mail
ts-ws-client
ts-yaml
ts-database
ts-socket
ts-web
@ -129,9 +129,9 @@ allprojects {
|
||||
(rootProject.ext["excludeTest"] as (Project, TaskContainer) -> Unit)(project, tasks)
|
||||
|
||||
dependencies {
|
||||
api(kotlin("stdlib-jdk8"))
|
||||
api(kotlin("reflect"))
|
||||
testImplementation(group = "junit", name = "junit", version = "4.12")
|
||||
api("org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.5.21")
|
||||
api("org.jetbrains.kotlin:kotlin-reflect:1.5.21")
|
||||
testImplementation(group = "junit", name = "junit", version = "4.13.2")
|
||||
}
|
||||
|
||||
artifacts {
|
||||
|
@ -5,11 +5,11 @@ plugins {
|
||||
|
||||
dependencies {
|
||||
api(project(":"))
|
||||
api(group = "org.slf4j", name = "slf4j-api", version = "1.7.29")
|
||||
compileOnly("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.0")
|
||||
compileOnly(group = "com.google.code.gson", name = "gson", version = "2.8.6")
|
||||
compileOnly(group = "io.netty", name = "netty-all", version = "4.1.43.Final")
|
||||
testImplementation(group = "junit", name = "junit", version = "4.12")
|
||||
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")
|
||||
}
|
||||
|
||||
@kotlin.Suppress("UNCHECKED_CAST")
|
||||
|
@ -185,6 +185,22 @@ class Graphic(
|
||||
}
|
||||
|
||||
class FlowExample {
|
||||
init {
|
||||
val graphic = getTestGraphic()
|
||||
|
||||
// 热车
|
||||
graphic.precision = 30
|
||||
repeat(10000) {
|
||||
graphic.clear()
|
||||
var changed = true
|
||||
while (changed) {
|
||||
graphic.calc()
|
||||
changed = graphic.changed()
|
||||
graphic.finishCalc()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
fun test() {
|
||||
val graphic = getTestGraphic()
|
||||
@ -209,20 +225,8 @@ class FlowExample {
|
||||
fun testPerformance() {
|
||||
val graphic = getTestGraphic()
|
||||
|
||||
// 热车
|
||||
graphic.precision = 30
|
||||
repeat(1000) {
|
||||
graphic.clear()
|
||||
var changed = true
|
||||
while (changed) {
|
||||
graphic.calc()
|
||||
changed = graphic.changed()
|
||||
graphic.finishCalc()
|
||||
}
|
||||
}
|
||||
|
||||
// 测试
|
||||
repeat(5) {
|
||||
repeat(10000) {
|
||||
intArrayOf(8, 12, 16, 20, 24, 28).forEach { precision ->
|
||||
graphic.clear()
|
||||
graphic.precision = precision
|
||||
|
@ -8,13 +8,13 @@ dependencies {
|
||||
api(project(":ts-core"))
|
||||
api(project(":ts-core:ts-buffer"))
|
||||
implementation(project(":ts-core:ts-xml"))
|
||||
api("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.0")
|
||||
api("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.1")
|
||||
api(group = "com.squareup.retrofit2", name = "converter-gson", version = "2.9.0")
|
||||
// https://mvnrepository.com/artifact/com.squareup.retrofit2/retrofit
|
||||
api(group = "com.squareup.retrofit2", name = "retrofit", version = "2.9.0")
|
||||
|
||||
// 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.14.2")
|
||||
|
||||
|
||||
testImplementation(project(":ts-core:ts-coroutine"))
|
||||
|
@ -6,7 +6,7 @@ plugins {
|
||||
dependencies {
|
||||
implementation(project(":ts-core:ts-log"))
|
||||
implementation(project(":ts-core"))
|
||||
compileOnly(group = "io.netty", name = "netty-all", version = "4.1.43.Final")
|
||||
compileOnly(group = "io.netty", name = "netty-all", version = "4.1.67.Final")
|
||||
}
|
||||
|
||||
@kotlin.Suppress("UNCHECKED_CAST")
|
||||
|
@ -5,7 +5,7 @@ plugins {
|
||||
|
||||
dependencies {
|
||||
implementation(project(":ts-core"))
|
||||
api("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.0")
|
||||
api("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.1")
|
||||
}
|
||||
|
||||
@kotlin.Suppress("UNCHECKED_CAST")
|
||||
|
@ -5,7 +5,7 @@ plugins {
|
||||
|
||||
dependencies {
|
||||
implementation(project(":ts-core"))
|
||||
api("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.0")
|
||||
api("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.1")
|
||||
}
|
||||
|
||||
@kotlin.Suppress("UNCHECKED_CAST")
|
||||
|
@ -5,7 +5,7 @@ plugins {
|
||||
|
||||
dependencies {
|
||||
api(project(":ts-core"))
|
||||
compileOnly(group = "io.netty", name = "netty-all", version = "4.1.43.Final")
|
||||
compileOnly(group = "io.netty", name = "netty-all", version = "4.1.67.Final")
|
||||
}
|
||||
|
||||
@kotlin.Suppress("UNCHECKED_CAST")
|
||||
|
@ -5,9 +5,9 @@ plugins {
|
||||
|
||||
dependencies {
|
||||
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")
|
||||
compileOnly(group = "com.google.code.gson", name = "gson", version = "2.8.7")
|
||||
compileOnly(group = "com.fasterxml.jackson.core", name = "jackson-core", version = "2.12.4")
|
||||
compileOnly(group = "com.fasterxml.jackson.core", name = "jackson-databind", version = "2.12.4")
|
||||
}
|
||||
|
||||
@kotlin.Suppress("UNCHECKED_CAST")
|
||||
|
@ -6,11 +6,11 @@ plugins {
|
||||
dependencies {
|
||||
implementation(project(":ts-core"))
|
||||
implementation(project(":ts-core:ts-delegation"))
|
||||
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")
|
||||
api(group = "org.slf4j", name = "slf4j-api", version = "1.7.32")
|
||||
api(group = "ch.qos.logback", name = "logback-core", version = "1.2.5")
|
||||
api(group = "ch.qos.logback", name = "logback-classic", version = "1.2.5")
|
||||
|
||||
compileOnly(group = "com.google.code.gson", name = "gson", version = "2.8.6")
|
||||
compileOnly(group = "com.google.code.gson", name = "gson", version = "2.8.7")
|
||||
}
|
||||
|
||||
@kotlin.Suppress("UNCHECKED_CAST")
|
||||
|
@ -5,7 +5,7 @@ plugins {
|
||||
|
||||
dependencies {
|
||||
implementation(project(":"))
|
||||
implementation(group = "com.sun.mail", name = "javax.mail", version = "1.5.1")
|
||||
implementation(group = "com.sun.mail", name = "javax.mail", version = "1.6.2")
|
||||
}
|
||||
|
||||
@kotlin.Suppress("UNCHECKED_CAST")
|
||||
|
@ -8,7 +8,7 @@ dependencies {
|
||||
api(project(":ts-core:ts-buffer"))
|
||||
api(project(":ts-core:ts-log"))
|
||||
compileOnly(project(":ts-socket"))
|
||||
api(group = "io.netty", name = "netty-all", version = "4.1.43.Final")
|
||||
api(group = "io.netty", name = "netty-all", version = "4.1.67.Final")
|
||||
}
|
||||
|
||||
@kotlin.Suppress("UNCHECKED_CAST")
|
||||
|
@ -6,7 +6,7 @@ plugins {
|
||||
dependencies {
|
||||
implementation(project(":ts-core"))
|
||||
// 解析YAML
|
||||
implementation(group = "org.yaml", name = "snakeyaml", version = "1.28")
|
||||
implementation(group = "org.yaml", name = "snakeyaml", version = "1.29")
|
||||
}
|
||||
|
||||
@kotlin.Suppress("UNCHECKED_CAST")
|
||||
|
@ -9,8 +9,8 @@ dependencies {
|
||||
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.2")
|
||||
compileOnly(group = "com.google.code.gson", name = "gson", version = "2.8.6")
|
||||
compileOnly(group = "com.baomidou", name = "mybatis-plus", version = "3.4.3.1")
|
||||
compileOnly(group = "com.google.code.gson", name = "gson", version = "2.8.7")
|
||||
}
|
||||
|
||||
@kotlin.Suppress("UNCHECKED_CAST")
|
||||
|
@ -8,8 +8,8 @@ dependencies {
|
||||
implementation(project(":ts-core"))
|
||||
implementation(project(":ts-core:ts-datastruct"))
|
||||
implementation(project(":ts-core:ts-log"))
|
||||
api("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.0")
|
||||
api(group = "org.mongodb", name = "mongodb-driver-reactivestreams", version = "4.0.5")
|
||||
api("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.1")
|
||||
api(group = "org.mongodb", name = "mongodb-driver-reactivestreams", version = "4.3.0")
|
||||
}
|
||||
|
||||
@kotlin.Suppress("UNCHECKED_CAST")
|
||||
|
@ -6,7 +6,7 @@ plugins {
|
||||
dependencies {
|
||||
api(project(":"))
|
||||
implementation(project(":ts-core"))
|
||||
compileOnly(group = "org.springframework.data", name = "spring-data-mongodb", version = "3.1.7")
|
||||
compileOnly(group = "org.springframework.data", name = "spring-data-mongodb", version = "3.2.4")
|
||||
}
|
||||
|
||||
@kotlin.Suppress("UNCHECKED_CAST")
|
||||
|
@ -7,7 +7,7 @@ dependencies {
|
||||
api(project(":"))
|
||||
implementation(project(":ts-core"))
|
||||
implementation(project(":ts-core:ts-log"))
|
||||
api(group = "redis.clients", name = "jedis", version = "3.3.0")
|
||||
api(group = "redis.clients", name = "jedis", version = "3.6.3")
|
||||
}
|
||||
|
||||
@kotlin.Suppress("UNCHECKED_CAST")
|
||||
|
@ -9,7 +9,7 @@ dependencies {
|
||||
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.5.0")
|
||||
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.1")
|
||||
}
|
||||
|
||||
@kotlin.Suppress("UNCHECKED_CAST")
|
||||
|
@ -8,7 +8,7 @@ dependencies {
|
||||
implementation(project(":ts-core:ts-buffer"))
|
||||
implementation(project(":ts-core:ts-datastruct"))
|
||||
compileOnly(project(":ts-core:ts-json"))
|
||||
implementation(group = "org.slf4j", name = "slf4j-api", version = "1.7.29")
|
||||
implementation(group = "org.slf4j", name = "slf4j-api", version = "1.7.32")
|
||||
}
|
||||
|
||||
@kotlin.Suppress("UNCHECKED_CAST")
|
||||
|
@ -8,8 +8,8 @@ dependencies {
|
||||
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.5.0")
|
||||
implementation(group = "org.slf4j", name = "slf4j-api", version = "1.7.32")
|
||||
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.1")
|
||||
}
|
||||
|
||||
@kotlin.Suppress("UNCHECKED_CAST")
|
||||
|
@ -8,8 +8,8 @@ dependencies {
|
||||
api(project(":ts-core:ts-buffer"))
|
||||
api(project(":ts-core:ts-log"))
|
||||
api(project(":ts-web"))
|
||||
api(group = "io.netty", name = "netty-all", version = "4.1.43.Final")
|
||||
api(group = "org.slf4j", name = "slf4j-api", version = "1.7.29")
|
||||
api(group = "io.netty", name = "netty-all", version = "4.1.67.Final")
|
||||
api(group = "org.slf4j", name = "slf4j-api", version = "1.7.32")
|
||||
}
|
||||
|
||||
@kotlin.Suppress("UNCHECKED_CAST")
|
||||
|
Loading…
Reference in New Issue
Block a user