mirror of
https://github.com/tursom/TursomServer.git
synced 2025-04-02 15:41:23 +08:00
update
This commit is contained in:
parent
1294fcba16
commit
f53f5dfd94
@ -44,6 +44,12 @@ allprojects {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
tasks.withType<KotlinCompile>().configureEach {
|
||||||
|
kotlinOptions.jvmTarget = "1.8"
|
||||||
|
kotlinOptions.freeCompilerArgs += "-Xopt-in=kotlin.RequiresOptIn"
|
||||||
|
//kotlinOptions.useIR = true
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@kotlin.Suppress("UNCHECKED_CAST")
|
@kotlin.Suppress("UNCHECKED_CAST")
|
||||||
@ -55,6 +61,10 @@ dependencies {
|
|||||||
testImplementation(group = "junit", name = "junit", version = "4.12")
|
testImplementation(group = "junit", name = "junit", version = "4.12")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
artifacts {
|
||||||
|
archives(tasks["kotlinSourcesJar"])
|
||||||
|
}
|
||||||
|
|
||||||
tasks.register("install") {
|
tasks.register("install") {
|
||||||
finalizedBy(tasks["publishToMavenLocal"])
|
finalizedBy(tasks["publishToMavenLocal"])
|
||||||
}
|
}
|
||||||
@ -68,7 +78,7 @@ publishing {
|
|||||||
|
|
||||||
from(components["java"])
|
from(components["java"])
|
||||||
try {
|
try {
|
||||||
artifact(tasks["sourcesJar"])
|
artifact(tasks["kotlinSourcesJar"])
|
||||||
} catch (e: Exception) {
|
} catch (e: Exception) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -25,7 +25,7 @@ publishing {
|
|||||||
|
|
||||||
from(components["java"])
|
from(components["java"])
|
||||||
try {
|
try {
|
||||||
artifact(tasks["sourcesJar"])
|
artifact(tasks["kotlinSourcesJar"])
|
||||||
} catch (e: Exception) {
|
} catch (e: Exception) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -27,6 +27,10 @@ tasks.register("install") {
|
|||||||
finalizedBy(tasks["publishToMavenLocal"])
|
finalizedBy(tasks["publishToMavenLocal"])
|
||||||
}
|
}
|
||||||
|
|
||||||
|
artifacts {
|
||||||
|
archives(tasks["kotlinSourcesJar"])
|
||||||
|
}
|
||||||
|
|
||||||
publishing {
|
publishing {
|
||||||
publications {
|
publications {
|
||||||
create<MavenPublication>("maven") {
|
create<MavenPublication>("maven") {
|
||||||
@ -36,7 +40,7 @@ publishing {
|
|||||||
|
|
||||||
from(components["java"])
|
from(components["java"])
|
||||||
try {
|
try {
|
||||||
artifact(tasks["sourcesJar"])
|
artifact(tasks["kotlinSourcesJar"])
|
||||||
} catch (e: Exception) {
|
} catch (e: Exception) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -15,6 +15,10 @@ tasks.register("install") {
|
|||||||
finalizedBy(tasks["publishToMavenLocal"])
|
finalizedBy(tasks["publishToMavenLocal"])
|
||||||
}
|
}
|
||||||
|
|
||||||
|
artifacts {
|
||||||
|
archives(tasks["kotlinSourcesJar"])
|
||||||
|
}
|
||||||
|
|
||||||
publishing {
|
publishing {
|
||||||
publications {
|
publications {
|
||||||
create<MavenPublication>("maven") {
|
create<MavenPublication>("maven") {
|
||||||
@ -24,7 +28,7 @@ publishing {
|
|||||||
|
|
||||||
from(components["java"])
|
from(components["java"])
|
||||||
try {
|
try {
|
||||||
artifact(tasks["sourcesJar"])
|
artifact(tasks["kotlinSourcesJar"])
|
||||||
} catch (e: Exception) {
|
} catch (e: Exception) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -26,7 +26,7 @@ publishing {
|
|||||||
|
|
||||||
from(components["java"])
|
from(components["java"])
|
||||||
try {
|
try {
|
||||||
artifact(tasks["sourcesJar"])
|
artifact(tasks["kotlinSourcesJar"])
|
||||||
} catch (e: Exception) {
|
} catch (e: Exception) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -24,7 +24,7 @@ publishing {
|
|||||||
|
|
||||||
from(components["java"])
|
from(components["java"])
|
||||||
try {
|
try {
|
||||||
artifact(tasks["sourcesJar"])
|
artifact(tasks["kotlinSourcesJar"])
|
||||||
} catch (e: Exception) {
|
} catch (e: Exception) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -24,7 +24,7 @@ publishing {
|
|||||||
|
|
||||||
from(components["java"])
|
from(components["java"])
|
||||||
try {
|
try {
|
||||||
artifact(tasks["sourcesJar"])
|
artifact(tasks["kotlinSourcesJar"])
|
||||||
} catch (e: Exception) {
|
} catch (e: Exception) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -26,7 +26,7 @@ publishing {
|
|||||||
|
|
||||||
from(components["java"])
|
from(components["java"])
|
||||||
try {
|
try {
|
||||||
artifact(tasks["sourcesJar"])
|
artifact(tasks["kotlinSourcesJar"])
|
||||||
} catch (e: Exception) {
|
} catch (e: Exception) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -23,7 +23,7 @@ publishing {
|
|||||||
|
|
||||||
from(components["java"])
|
from(components["java"])
|
||||||
try {
|
try {
|
||||||
artifact(tasks["sourcesJar"])
|
artifact(tasks["kotlinSourcesJar"])
|
||||||
} catch (e: Exception) {
|
} catch (e: Exception) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -24,7 +24,7 @@ publishing {
|
|||||||
|
|
||||||
from(components["java"])
|
from(components["java"])
|
||||||
try {
|
try {
|
||||||
artifact(tasks["sourcesJar"])
|
artifact(tasks["kotlinSourcesJar"])
|
||||||
} catch (e: Exception) {
|
} catch (e: Exception) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -26,7 +26,7 @@ publishing {
|
|||||||
|
|
||||||
from(components["java"])
|
from(components["java"])
|
||||||
try {
|
try {
|
||||||
artifact(tasks["sourcesJar"])
|
artifact(tasks["kotlinSourcesJar"])
|
||||||
} catch (e: Exception) {
|
} catch (e: Exception) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -24,7 +24,7 @@ publishing {
|
|||||||
|
|
||||||
from(components["java"])
|
from(components["java"])
|
||||||
try {
|
try {
|
||||||
artifact(tasks["sourcesJar"])
|
artifact(tasks["kotlinSourcesJar"])
|
||||||
} catch (e: Exception) {
|
} catch (e: Exception) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -26,7 +26,7 @@ publishing {
|
|||||||
|
|
||||||
from(components["java"])
|
from(components["java"])
|
||||||
try {
|
try {
|
||||||
artifact(tasks["sourcesJar"])
|
artifact(tasks["kotlinSourcesJar"])
|
||||||
} catch (e: Exception) {
|
} catch (e: Exception) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -26,7 +26,7 @@ publishing {
|
|||||||
|
|
||||||
from(components["java"])
|
from(components["java"])
|
||||||
try {
|
try {
|
||||||
artifact(tasks["sourcesJar"])
|
artifact(tasks["kotlinSourcesJar"])
|
||||||
} catch (e: Exception) {
|
} catch (e: Exception) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -24,7 +24,7 @@ publishing {
|
|||||||
|
|
||||||
from(components["java"])
|
from(components["java"])
|
||||||
try {
|
try {
|
||||||
artifact(tasks["sourcesJar"])
|
artifact(tasks["kotlinSourcesJar"])
|
||||||
} catch (e: Exception) {
|
} catch (e: Exception) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -25,7 +25,7 @@ publishing {
|
|||||||
|
|
||||||
from(components["java"])
|
from(components["java"])
|
||||||
try {
|
try {
|
||||||
artifact(tasks["sourcesJar"])
|
artifact(tasks["kotlinSourcesJar"])
|
||||||
} catch (e: Exception) {
|
} catch (e: Exception) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -17,6 +17,10 @@ tasks.register("install") {
|
|||||||
finalizedBy(tasks["publishToMavenLocal"])
|
finalizedBy(tasks["publishToMavenLocal"])
|
||||||
}
|
}
|
||||||
|
|
||||||
|
artifacts {
|
||||||
|
archives(tasks["kotlinSourcesJar"])
|
||||||
|
}
|
||||||
|
|
||||||
publishing {
|
publishing {
|
||||||
publications {
|
publications {
|
||||||
create<MavenPublication>("maven") {
|
create<MavenPublication>("maven") {
|
||||||
@ -26,7 +30,7 @@ publishing {
|
|||||||
|
|
||||||
from(components["java"])
|
from(components["java"])
|
||||||
try {
|
try {
|
||||||
artifact(tasks["sourcesJar"])
|
artifact(tasks["kotlinSourcesJar"])
|
||||||
} catch (e: Exception) {
|
} catch (e: Exception) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -27,8 +27,8 @@ class WebSocketClientHandshakerAdapter(
|
|||||||
if (!handshaker.isHandshakeComplete) {
|
if (!handshaker.isHandshakeComplete) {
|
||||||
handshaker.finishHandshake(ctx.channel(), msg)
|
handshaker.finishHandshake(ctx.channel(), msg)
|
||||||
handshakeFuture!!.setSuccess()
|
handshakeFuture!!.setSuccess()
|
||||||
msg.retain()
|
//msg.retain()
|
||||||
ctx.fireChannelRead(msg)
|
//ctx.fireChannelRead(msg)
|
||||||
handler.onOpen(client)
|
handler.onOpen(client)
|
||||||
return
|
return
|
||||||
} else {
|
} else {
|
||||||
|
@ -25,7 +25,7 @@ publishing {
|
|||||||
|
|
||||||
from(components["java"])
|
from(components["java"])
|
||||||
try {
|
try {
|
||||||
artifact(tasks["sourcesJar"])
|
artifact(tasks["kotlinSourcesJar"])
|
||||||
} catch (e: Exception) {
|
} catch (e: Exception) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -25,7 +25,7 @@ publishing {
|
|||||||
|
|
||||||
from(components["java"])
|
from(components["java"])
|
||||||
try {
|
try {
|
||||||
artifact(tasks["sourcesJar"])
|
artifact(tasks["kotlinSourcesJar"])
|
||||||
} catch (e: Exception) {
|
} catch (e: Exception) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -29,7 +29,7 @@ publishing {
|
|||||||
|
|
||||||
from(components["java"])
|
from(components["java"])
|
||||||
try {
|
try {
|
||||||
artifact(tasks["sourcesJar"])
|
artifact(tasks["kotlinSourcesJar"])
|
||||||
} catch (e: Exception) {
|
} catch (e: Exception) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -28,7 +28,7 @@ publishing {
|
|||||||
|
|
||||||
from(components["java"])
|
from(components["java"])
|
||||||
try {
|
try {
|
||||||
artifact(tasks["sourcesJar"])
|
artifact(tasks["kotlinSourcesJar"])
|
||||||
} catch (e: Exception) {
|
} catch (e: Exception) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -25,7 +25,7 @@ publishing {
|
|||||||
|
|
||||||
from(components["java"])
|
from(components["java"])
|
||||||
try {
|
try {
|
||||||
artifact(tasks["sourcesJar"])
|
artifact(tasks["kotlinSourcesJar"])
|
||||||
} catch (e: Exception) {
|
} catch (e: Exception) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -26,7 +26,7 @@ publishing {
|
|||||||
|
|
||||||
from(components["java"])
|
from(components["java"])
|
||||||
try {
|
try {
|
||||||
artifact(tasks["sourcesJar"])
|
artifact(tasks["kotlinSourcesJar"])
|
||||||
} catch (e: Exception) {
|
} catch (e: Exception) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -28,7 +28,7 @@ publishing {
|
|||||||
|
|
||||||
from(components["java"])
|
from(components["java"])
|
||||||
try {
|
try {
|
||||||
artifact(tasks["sourcesJar"])
|
artifact(tasks["kotlinSourcesJar"])
|
||||||
} catch (e: Exception) {
|
} catch (e: Exception) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -27,7 +27,7 @@ publishing {
|
|||||||
|
|
||||||
from(components["java"])
|
from(components["java"])
|
||||||
try {
|
try {
|
||||||
artifact(tasks["sourcesJar"])
|
artifact(tasks["kotlinSourcesJar"])
|
||||||
} catch (e: Exception) {
|
} catch (e: Exception) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -28,7 +28,7 @@ publishing {
|
|||||||
|
|
||||||
from(components["java"])
|
from(components["java"])
|
||||||
try {
|
try {
|
||||||
artifact(tasks["sourcesJar"])
|
artifact(tasks["kotlinSourcesJar"])
|
||||||
} catch (e: Exception) {
|
} catch (e: Exception) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -28,7 +28,7 @@ publishing {
|
|||||||
|
|
||||||
from(components["java"])
|
from(components["java"])
|
||||||
try {
|
try {
|
||||||
artifact(tasks["sourcesJar"])
|
artifact(tasks["kotlinSourcesJar"])
|
||||||
} catch (e: Exception) {
|
} catch (e: Exception) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user