git » jacl.git » commit bbcc08e

wip jacl client stuff

author Alan Dipert
2020-06-20 16:18:26 UTC
committer Alan Dipert
2020-06-20 16:18:26 UTC
parent 6cfd15c9ec346c6306d478a867688939646cf4cb

wip jacl client stuff

jacl-client/pom.xml +25 -0
jacl-client/src/main/abcl/client.lisp +6 -1

diff --git a/jacl-client/pom.xml b/jacl-client/pom.xml
index a463e85..1481bd7 100644
--- a/jacl-client/pom.xml
+++ b/jacl-client/pom.xml
@@ -6,6 +6,8 @@
 
   <properties>
     <abcl.version>1.6.1</abcl.version>
+    <maven.compiler.source>1.8</maven.compiler.source>
+    <maven.compiler.target>1.8</maven.compiler.target>
   </properties>
 
   <dependencies>
@@ -29,6 +31,29 @@
         <version>1.0.0-SNAPSHOT</version>
         <extensions>true</extensions>
       </plugin>
+    <plugin>
+        <artifactId>maven-assembly-plugin</artifactId>
+        <configuration>
+            <archive>
+            <manifest>
+                <mainClass>org.dipert.JACLClientMain</mainClass>
+            </manifest>
+            </archive>
+            <descriptors>
+              <descriptor>assembly-descriptor.xml</descriptor>
+            </descriptors>
+        </configuration>
+        <executions>
+            <execution>
+            <id>make-assembly</id> <!-- this is used for inheritance merges -->
+            <phase>package</phase> <!-- bind to the packaging phase -->
+            <goals>
+                <goal>single</goal>
+            </goals>
+            </execution>
+        </executions>
+    </plugin>
+      
     </plugins>
   </build>
 </project>
diff --git a/jacl-client/src/main/abcl/client.lisp b/jacl-client/src/main/abcl/client.lisp
index 3691819..cd30d55 100644
--- a/jacl-client/src/main/abcl/client.lisp
+++ b/jacl-client/src/main/abcl/client.lisp
@@ -1,6 +1,12 @@
 (require :abcl-contrib)
 (require :jss)
 
+(defpackage #:jacl-client
+  (:use :cl)
+  (:import-from #:java jinterface-implementation))
+
+(in-package #:jacl-client)
+
 (defun make-listener ()
   (jinterface-implementation
    "java.net.http.WebSocket$Listener"
@@ -32,4 +38,3 @@
          (uri (#"create" 'java.net.URI url))
          (listener (make-listener)))
     (#"buildAsync" ws-builder uri listener)))
-