This commit is contained in:
tursom 2021-04-19 16:19:35 +08:00
parent 1294fcba16
commit f53f5dfd94
28 changed files with 51 additions and 29 deletions

View File

@ -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")
@ -55,6 +61,10 @@ dependencies {
testImplementation(group = "junit", name = "junit", version = "4.12")
}
artifacts {
archives(tasks["kotlinSourcesJar"])
}
tasks.register("install") {
finalizedBy(tasks["publishToMavenLocal"])
}
@ -68,7 +78,7 @@ publishing {
from(components["java"])
try {
artifact(tasks["sourcesJar"])
artifact(tasks["kotlinSourcesJar"])
} catch (e: Exception) {
}
}

View File

@ -25,7 +25,7 @@ publishing {
from(components["java"])
try {
artifact(tasks["sourcesJar"])
artifact(tasks["kotlinSourcesJar"])
} catch (e: Exception) {
}
}

View File

@ -27,6 +27,10 @@ tasks.register("install") {
finalizedBy(tasks["publishToMavenLocal"])
}
artifacts {
archives(tasks["kotlinSourcesJar"])
}
publishing {
publications {
create<MavenPublication>("maven") {
@ -36,7 +40,7 @@ publishing {
from(components["java"])
try {
artifact(tasks["sourcesJar"])
artifact(tasks["kotlinSourcesJar"])
} catch (e: Exception) {
}
}

View File

@ -15,6 +15,10 @@ tasks.register("install") {
finalizedBy(tasks["publishToMavenLocal"])
}
artifacts {
archives(tasks["kotlinSourcesJar"])
}
publishing {
publications {
create<MavenPublication>("maven") {
@ -24,7 +28,7 @@ publishing {
from(components["java"])
try {
artifact(tasks["sourcesJar"])
artifact(tasks["kotlinSourcesJar"])
} catch (e: Exception) {
}
}

View File

@ -26,7 +26,7 @@ publishing {
from(components["java"])
try {
artifact(tasks["sourcesJar"])
artifact(tasks["kotlinSourcesJar"])
} catch (e: Exception) {
}
}

View File

@ -24,7 +24,7 @@ publishing {
from(components["java"])
try {
artifact(tasks["sourcesJar"])
artifact(tasks["kotlinSourcesJar"])
} catch (e: Exception) {
}
}

View File

@ -24,7 +24,7 @@ publishing {
from(components["java"])
try {
artifact(tasks["sourcesJar"])
artifact(tasks["kotlinSourcesJar"])
} catch (e: Exception) {
}
}

View File

@ -26,7 +26,7 @@ publishing {
from(components["java"])
try {
artifact(tasks["sourcesJar"])
artifact(tasks["kotlinSourcesJar"])
} catch (e: Exception) {
}
}

View File

@ -23,7 +23,7 @@ publishing {
from(components["java"])
try {
artifact(tasks["sourcesJar"])
artifact(tasks["kotlinSourcesJar"])
} catch (e: Exception) {
}
}

View File

@ -24,7 +24,7 @@ publishing {
from(components["java"])
try {
artifact(tasks["sourcesJar"])
artifact(tasks["kotlinSourcesJar"])
} catch (e: Exception) {
}
}

View File

@ -26,7 +26,7 @@ publishing {
from(components["java"])
try {
artifact(tasks["sourcesJar"])
artifact(tasks["kotlinSourcesJar"])
} catch (e: Exception) {
}
}

View File

@ -24,7 +24,7 @@ publishing {
from(components["java"])
try {
artifact(tasks["sourcesJar"])
artifact(tasks["kotlinSourcesJar"])
} catch (e: Exception) {
}
}

View File

@ -26,7 +26,7 @@ publishing {
from(components["java"])
try {
artifact(tasks["sourcesJar"])
artifact(tasks["kotlinSourcesJar"])
} catch (e: Exception) {
}
}

View File

@ -26,7 +26,7 @@ publishing {
from(components["java"])
try {
artifact(tasks["sourcesJar"])
artifact(tasks["kotlinSourcesJar"])
} catch (e: Exception) {
}
}

View File

@ -24,7 +24,7 @@ publishing {
from(components["java"])
try {
artifact(tasks["sourcesJar"])
artifact(tasks["kotlinSourcesJar"])
} catch (e: Exception) {
}
}

View File

@ -25,7 +25,7 @@ publishing {
from(components["java"])
try {
artifact(tasks["sourcesJar"])
artifact(tasks["kotlinSourcesJar"])
} catch (e: Exception) {
}
}

View File

@ -17,6 +17,10 @@ tasks.register("install") {
finalizedBy(tasks["publishToMavenLocal"])
}
artifacts {
archives(tasks["kotlinSourcesJar"])
}
publishing {
publications {
create<MavenPublication>("maven") {
@ -26,7 +30,7 @@ publishing {
from(components["java"])
try {
artifact(tasks["sourcesJar"])
artifact(tasks["kotlinSourcesJar"])
} catch (e: Exception) {
}
}

View File

@ -27,8 +27,8 @@ class WebSocketClientHandshakerAdapter(
if (!handshaker.isHandshakeComplete) {
handshaker.finishHandshake(ctx.channel(), msg)
handshakeFuture!!.setSuccess()
msg.retain()
ctx.fireChannelRead(msg)
//msg.retain()
//ctx.fireChannelRead(msg)
handler.onOpen(client)
return
} else {

View File

@ -25,7 +25,7 @@ publishing {
from(components["java"])
try {
artifact(tasks["sourcesJar"])
artifact(tasks["kotlinSourcesJar"])
} catch (e: Exception) {
}
}

View File

@ -25,7 +25,7 @@ publishing {
from(components["java"])
try {
artifact(tasks["sourcesJar"])
artifact(tasks["kotlinSourcesJar"])
} catch (e: Exception) {
}
}

View File

@ -29,7 +29,7 @@ publishing {
from(components["java"])
try {
artifact(tasks["sourcesJar"])
artifact(tasks["kotlinSourcesJar"])
} catch (e: Exception) {
}
}

View File

@ -28,7 +28,7 @@ publishing {
from(components["java"])
try {
artifact(tasks["sourcesJar"])
artifact(tasks["kotlinSourcesJar"])
} catch (e: Exception) {
}
}

View File

@ -25,7 +25,7 @@ publishing {
from(components["java"])
try {
artifact(tasks["sourcesJar"])
artifact(tasks["kotlinSourcesJar"])
} catch (e: Exception) {
}
}

View File

@ -26,7 +26,7 @@ publishing {
from(components["java"])
try {
artifact(tasks["sourcesJar"])
artifact(tasks["kotlinSourcesJar"])
} catch (e: Exception) {
}
}

View File

@ -28,7 +28,7 @@ publishing {
from(components["java"])
try {
artifact(tasks["sourcesJar"])
artifact(tasks["kotlinSourcesJar"])
} catch (e: Exception) {
}
}

View File

@ -27,7 +27,7 @@ publishing {
from(components["java"])
try {
artifact(tasks["sourcesJar"])
artifact(tasks["kotlinSourcesJar"])
} catch (e: Exception) {
}
}

View File

@ -28,7 +28,7 @@ publishing {
from(components["java"])
try {
artifact(tasks["sourcesJar"])
artifact(tasks["kotlinSourcesJar"])
} catch (e: Exception) {
}
}

View File

@ -28,7 +28,7 @@ publishing {
from(components["java"])
try {
artifact(tasks["sourcesJar"])
artifact(tasks["kotlinSourcesJar"])
} catch (e: Exception) {
}
}