2 Commits
Author SHA1 Message Date
selimaj-dev 1ba5cd8159 HOWWWW 2026-02-20 02:22:58 +01:00
selimaj-dev 34d86a23ab Fixed build artifacts 2026-02-20 02:06:05 +01:00
3 changed files with 12 additions and 4 deletions
+1 -1
View File
@@ -33,7 +33,7 @@ repositories {
#### Add the dependency #### Add the dependency
```groovy ```groovy
dependencies { dependencies {
implementation 'com.github.selimaj-dev:session-java:v0.1.3' implementation 'com.github.selimaj-dev:session-java:0.1.3'
} }
``` ```
+9 -1
View File
@@ -4,7 +4,7 @@ plugins {
} }
group = "dev.selimaj.session" group = "dev.selimaj.session"
version = "0.1.2" version = "0.1.3"
java { java {
toolchain { toolchain {
@@ -34,3 +34,11 @@ dependencies {
test { test {
useJUnitPlatform() useJUnitPlatform()
} }
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
}
}
}
@@ -63,12 +63,12 @@ public final class Session {
listener.notify(ws, method, data); listener.notify(ws, method, data);
} }
<Req, Res, Err> CompletableFuture<Res> request( public <Req, Res, Err> CompletableFuture<Res> request(
Method<Req, Res, Err> method, Req req) throws Exception { Method<Req, Res, Err> method, Req req) throws Exception {
return listener.request(ws, method.getName(), req, method.getResClass()); return listener.request(ws, method.getName(), req, method.getResClass());
} }
<Req, Res, Err> void onRequest(Method<Req, Res, Err> method, public <Req, Res, Err> void onRequest(Method<Req, Res, Err> method,
MethodHandler<Req> handler) { MethodHandler<Req> handler) {
MethodHandler<JsonNode> wrapper = (id, value) -> { MethodHandler<JsonNode> wrapper = (id, value) -> {
try { try {