Skip to content

Commit

Permalink
Merge pull request #22 from SEPIA-Framework/dev
Browse files Browse the repository at this point in the history
v0.9.24; Support SEPIA-Home v2.6.0
  • Loading branch information
fquirin authored Oct 15, 2021
2 parents 96e0107 + 7c265f4 commit 666c19c
Show file tree
Hide file tree
Showing 11 changed files with 137 additions and 139 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# sepia-sdk-java
# SEPIA Java SDK
A set of tools and classes to develop services for SEPIA in Java.

## Credentials
Expand All @@ -14,11 +14,11 @@ You can use the 'Code-UI' page of the Control-HUB to edit and upload services cr

## Quickstart
- Import the maven project into the IDE of your choice (tested with Eclipse).
- Make sure you've installed a JAVA JDK on the S.E.P.I.A. server (e.g.: sudo apt-get install -y openjdk-11-jdk-headless). This is required to compile new classes during runtime.
- Make sure you've installed a JAVA JDK on the S.E.P.I.A. server (e.g.: `sudo apt-get install -y openjdk-11-jdk-headless`). This is required to compile new classes during runtime.
- Create a package for your developer account ID under 'net.b07z.sepia.sdk.services' (e.g. "uid1010" -> net.b07z.sepia.sdk.services.uid1010).
- Open 'Settings/sdk.properties' and put in your credentials (ID + password of your SEPIA account with 'developer' role) and the endpoint URL of your SEPIA-Assist server.
- Modify and run the various '[.main.Test***.java](https://github.com/SEPIA-Framework/sepia-sdk-java/tree/dev/src/main/java/net/b07z/sepia/sdk/main)' classes to test the upload of one of the demo services. Check the result for errors.
- Check-out the examples under '[.services.uid1007.*](https://github.com/SEPIA-Framework/sepia-sdk-java/tree/dev/src/main/java/net/b07z/sepia/sdk/services/uid1007)' to get an idea of how a SDK custom service works (until a real documentation is ready ^^).
- Check-out the examples under '[.services.uid1007.*](https://github.com/SEPIA-Framework/sepia-sdk-java/tree/dev/src/main/java/net/b07z/sepia/sdk/services/uid1007)' to get an idea of how a SDK custom service works. You can find more examples inside the 'SEPIA Extensions' repository.
- Open your SEPIA client, login with the same user ID you used for development and make a real test of your custom service.

### How to load Javadoc
Expand Down
Binary file removed libs/sepia-assist-v2.5.1-javadoc.jar
Binary file not shown.
Binary file added libs/sepia-assist-v2.5.2-javadoc.jar
Binary file not shown.
Binary file not shown.
Binary file removed libs/sepia-chat-v1.3.1-javadoc.jar
Binary file not shown.
Binary file added libs/sepia-chat-v1.3.2-javadoc.jar
Binary file not shown.
Binary file not shown.
Binary file removed libs/sepia-core-tools-v2.2.7-javadoc.jar
Binary file not shown.
Binary file added libs/sepia-core-tools-v2.2.9-javadoc.jar
Binary file not shown.
Binary file not shown.
270 changes: 134 additions & 136 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -1,123 +1,120 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<groupId>net.b07z.sepia.sdk</groupId>
<artifactId>sepia-sdk-java</artifactId>
<version>0.9.23</version>
<name>SEPIA SDK</name>
<description>Tools to develop services for the SEPIA framework</description>
<url>https://sepia-framework.github.io</url>
<packaging>jar</packaging>

<licenses>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<groupId>net.b07z.sepia.sdk</groupId>
<artifactId>sepia-sdk-java</artifactId>
<version>0.9.24</version>
<name>SEPIA SDK</name>
<description>Tools to develop services for the SEPIA framework</description>
<url>https://sepia-framework.github.io</url>
<packaging>jar</packaging>

<licenses>
<license>
<name>MIT License</name>
<url>http://www.opensource.org/licenses/mit-license.php</url>
</license>
</licenses>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>1.8</maven.compiler.source>
</licenses>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<java.version>1.8</java.version>
<kotlin.version>1.3.71</kotlin.version>
</properties>

<dependencies>
<!-- THIS IS WHAT WE USE WHEN THE REPOS ARE ON OSSH OR LOCALLY INSTALLED ...
<dependency>
<groupId>net.b07z.sepia.server.assist</groupId>
<artifactId>sepia-assist-API</artifactId>
<version>2.5.1</version>
</dependency>
-->

<!-- ... THIS IS WHAT WE USE FOR NOW -->
<dependency>
<groupId>com.sparkjava</groupId>
<artifactId>spark-core</artifactId>
<version>2.9.1</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-simple</artifactId>
<version>1.7.21</version>
</dependency>
<dependency>
<groupId>com.googlecode.json-simple</groupId>
<artifactId>json-simple</artifactId>
<version>1.1.1</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>2.10.4</version>
</dependency>
<dependency>
<groupId>commons-lang</groupId>
<artifactId>commons-lang</artifactId>
<version>2.6</version>
</dependency>
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<version>2.6</version>
</dependency>
<dependency>
<groupId>commons-codec</groupId>
<artifactId>commons-codec</artifactId>
<version>1.10</version>
</dependency>
<dependency>
<groupId>com.googlecode.soundlibs</groupId>
<artifactId>mp3spi</artifactId>
<version>1.9.5.4</version>
</dependency>
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>19.0</version>
</dependency>
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId>
<version>4.5.3</version>
</dependency>
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpmime</artifactId>
<version>4.5.3</version>
</dependency>
<dependency>
<groupId>org.owasp.encoder</groupId>
<artifactId>encoder</artifactId>
<version>1.2.2</version>
</dependency>
<dependency>
<groupId>net.b07z.sepia.server.core</groupId>
<artifactId>sepia-core-tools</artifactId>
<version>2.2.7</version>
<scope>system</scope>
<systemPath>${basedir}/libs/sepia-core-tools-v2.2.7.jar</systemPath>
</dependency>
</properties>

<dependencies>
<!-- THIS IS WHAT WE USE WHEN THE REPOS ARE ON OSSH OR LOCALLY INSTALLED ...
<dependency>
<groupId>net.b07z.sepia.server.assist</groupId>
<artifactId>sepia-assist-API</artifactId>
<version>2.5.2</version>
</dependency>
-->

<!-- ... THIS IS WHAT WE USE FOR NOW -->
<dependency>
<groupId>com.sparkjava</groupId>
<artifactId>spark-core</artifactId>
<version>2.9.3</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-simple</artifactId>
<version>1.7.21</version>
</dependency>
<dependency>
<groupId>com.googlecode.json-simple</groupId>
<artifactId>json-simple</artifactId>
<version>1.1.1</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>[2.10.5,2.10.6)</version>
</dependency>
<dependency>
<groupId>commons-lang</groupId>
<artifactId>commons-lang</artifactId>
<version>2.6</version>
</dependency>
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<version>2.8.0</version>
</dependency>
<dependency>
<groupId>commons-codec</groupId>
<artifactId>commons-codec</artifactId>
<version>1.10</version>
</dependency>
<dependency>
<groupId>com.j2html</groupId>
<artifactId>j2html</artifactId>
<version>0.88</version>
</dependency>
<dependency>
<groupId>org.eclipse.paho</groupId>
<artifactId>org.eclipse.paho.client.mqttv3</artifactId>
<version>1.2.0</version> <!-- NOTE: we can't use 1.2.2 due to: https://github.com/eclipse/paho.mqtt.java/issues/572 -->
<groupId>com.googlecode.soundlibs</groupId>
<artifactId>mp3spi</artifactId>
<version>1.9.5.4</version>
</dependency>
<dependency>
<groupId>net.b07z.sepia.websockets</groupId>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId>
<version>[4.5.13,4.6.0)</version>
</dependency>
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpmime</artifactId>
<version>[4.5.13,4.6.0)</version>
</dependency>
<dependency>
<groupId>org.owasp.encoder</groupId>
<artifactId>encoder</artifactId>
<version>1.2.2</version>
</dependency>
<dependency>
<groupId>net.b07z.sepia.server.core</groupId>
<artifactId>sepia-core-tools</artifactId>
<version>2.2.9</version>
<scope>system</scope>
<systemPath>${basedir}/libs/sepia-core-tools-v2.2.9.jar</systemPath>
</dependency>

<dependency>
<groupId>com.j2html</groupId>
<artifactId>j2html</artifactId>
<version>0.88</version>
</dependency>
<dependency>
<groupId>org.eclipse.paho</groupId>
<artifactId>org.eclipse.paho.client.mqttv3</artifactId>
<version>1.2.0</version> <!-- NOTE: we can't use 1.2.2 due to: https://github.com/eclipse/paho.mqtt.java/issues/572 -->
</dependency>
<dependency>
<groupId>net.b07z.sepia.websockets</groupId>
<artifactId>sepia-websockets</artifactId>
<version>1.3.1</version>
<scope>system</scope>
<systemPath>${basedir}/libs/sepia-chat-v1.3.1.jar</systemPath>
<version>1.3.2</version>
<scope>system</scope>
<systemPath>${basedir}/libs/sepia-chat-v1.3.2.jar</systemPath>
</dependency>

<dependency>
Expand All @@ -128,42 +125,43 @@
<dependency>
<groupId>com.rometools</groupId>
<artifactId>rome</artifactId>
<version>1.12.0</version>
<version>1.12.2</version>
</dependency>
<dependency>
<groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-stdlib-jdk8</artifactId>
<version>${kotlin.version}</version>
</dependency>
<dependency>
<groupId>net.b07z.sepia.server.assist</groupId>
<groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-stdlib-jdk8</artifactId>
<version>${kotlin.version}</version>
</dependency>
<dependency>
<groupId>net.b07z.sepia.server.assist</groupId>
<artifactId>sepia-assist-API</artifactId>
<version>2.5.1</version>
<scope>system</scope>
<systemPath>${basedir}/libs/sepia-assist-v2.5.1.jar</systemPath>
<version>2.5.2</version>
<scope>system</scope>
<systemPath>${basedir}/libs/sepia-assist-v2.5.2.jar</systemPath>
</dependency>
<!-- -->

<!-- NOTE: Java Docs for the SDK can be loaded via IDE (Java build path -> Libraries -> Maven dep. -> ... Javadoc location) -->


<!-- NOTE: Java Docs for the SDK can be loaded via IDE (Java build path
-> Libraries -> Maven dep. -> ... Javadoc location) -->

<!-- JUnit -->
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.13.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-test</artifactId>
<version>${kotlin.version}</version>
<scope>test</scope>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.13.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-test</artifactId>
<version>${kotlin.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-test-junit</artifactId>
<version>${kotlin.version}</version>
<scope>test</scope>
<groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-test-junit</artifactId>
<version>${kotlin.version}</version>
<scope>test</scope>
</dependency>
</dependencies>
</dependencies>
</project>

0 comments on commit 666c19c

Please sign in to comment.