-
Notifications
You must be signed in to change notification settings - Fork 69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
APP-2813/APP-2812 - BDK2.0 modules setup #166
Merged
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
accbbd8
APP-2873 BDK2.0 project setup
thibauult a4afb21
APP-2873 A lot of things...
thibauult 80b4f45
APP-2873 Fix mockito version
thibauult eea2307
APP-2873 Applied @symphony-elias review comments
thibauult 655cc41
APP-2873 Applied review comments
thibauult File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,35 @@ | ||
# Symphony SDK for Java | ||
# Symphony Java BDK [![CircleCI](https://circleci.com/gh/SymphonyPlatformSolutions/symphony-api-client-java.svg?style=shield)](https://circleci.com/gh/SymphonyPlatformSolutions/symphony-api-client-java) [![License: MIT](https://img.shields.io/badge/License-MIT-purple.svg)](https://opensource.org/licenses/MIT) [![Email](https://img.shields.io/static/v1?label=contact&message=email&color=darkgoldenrod)](mailto:platformsolutions@symphony.com?subject=Java%20SDK) | ||
|
||
[![License: MIT](https://img.shields.io/badge/License-MIT-purple.svg)](https://opensource.org/licenses/MIT) [![Email](https://img.shields.io/static/v1?label=contact&message=email&color=darkgoldenrod)](mailto:platformsolutions@symphony.com?subject=Java%20SDK) | ||
The Symphony Java BDK helps you to create Bots and Applications on top of the [Symphony REST APIs](https://developers.symphony.com/restapi/reference). | ||
|
||
Documentation about BDK features and usage is available under [docs](./docs/index.md) folder. | ||
|
||
## How to Build | ||
|
||
As this project contains modules for the legacy SDK/BDK as well as for the 2.0 ones, some | ||
Maven are defined to make the build faster depending on which version you are working on. | ||
|
||
The BDK can be built and published to your local Maven cache using the [Maven Wrapper](https://github.com/takari/maven-wrapper). | ||
|
||
**Build Legacy Modules** | ||
|
||
The `legacy` profile is activated by default so there is no specific argument to define to have | ||
it part of the build. However, it is also possible to skip legacy modules to be built using argument `-P -legacy`: | ||
|
||
```shell script | ||
# build the legacy modules | ||
./mvnw clean install | ||
|
||
# skip building legacy modules | ||
./mvnw clean install -P -legacy | ||
``` | ||
|
||
**Build BDK 2.0 Modules** | ||
|
||
Still in construction, the 2.0 modules are deactivated by default but can be activated through the Maven profile `2.0` : | ||
|
||
```shell script | ||
# build the 2.0 modules only, skip the legacy ones | ||
./mvnw clean install -P2.0,-legacy | ||
``` | ||
|
||
This repository aggregates these java libraries: | ||
* [legacy](legacy/README.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# Symphony BDK Reference Documentation |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# BDK Project Architecture | ||
|
||
The BDK project is composed in a set of different Maven modules. The approach consists in having one module per BDK | ||
"layer". | ||
|
||
## The layers | ||
|
||
The BDK is divided in 3 different layers: | ||
- `core` that contains the minimal set of classes to configure, authenticate and use | ||
the main APIs | ||
- `advanced` that contains additional features on top of the core module such as the | ||
command API, the template API or even an NLP integration | ||
- `framework` that provides connectors (or starters) for the main Java frameworks | ||
such as [SpringBoot](https://spring.io/projects/spring-boot), | ||
[MicroProfile](https://projects.eclipse.org/projects/technology.microprofile), | ||
[Micronaut](https://micronaut.io/) or [Quarkus](https://quarkus.io/) | ||
|
||
### Core |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<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> | ||
<parent> | ||
<artifactId>symphony-api-client-java-parent</artifactId> | ||
<groupId>com.symphony.platformsolutions</groupId> | ||
<version>1.2.0-SNAPSHOT</version> | ||
</parent> | ||
|
||
<artifactId>symphony-bdk-core-invokers</artifactId> | ||
<name>Symphony Java BDK Core Invokers</name> | ||
<description>Symphony Java BDK Core Invokers Module</description> | ||
<packaging>pom</packaging> | ||
|
||
<modules> | ||
<module>symphony-bdk-core-invoker-api</module> | ||
<module>symphony-bdk-core-invoker-jersey2</module> | ||
</modules> | ||
|
||
</project> |
41 changes: 41 additions & 0 deletions
41
symphony-bdk-core-invokers/symphony-bdk-core-invoker-api/pom.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<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> | ||
<parent> | ||
<artifactId>symphony-bdk-core-invokers</artifactId> | ||
<groupId>com.symphony.platformsolutions</groupId> | ||
<version>1.2.0-SNAPSHOT</version> | ||
</parent> | ||
|
||
<artifactId>symphony-bdk-core-invoker-api</artifactId> | ||
<name>Symphony Java BDK Core Invoker API</name> | ||
<description>Symphony Java BDK Core Invoker API Module</description> | ||
|
||
<properties> | ||
<jersey.version>2.29.1</jersey.version> | ||
</properties> | ||
|
||
<dependencies> | ||
<!-- FIXME: the invoker API should not depend on any HTTP library, the solution here is to fix the OpenAPI generator --> | ||
<dependency> | ||
<groupId>org.glassfish.jersey.core</groupId> | ||
<artifactId>jersey-client</artifactId> | ||
<version>${jersey.version}</version> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>org.projectlombok</groupId> | ||
<artifactId>lombok</artifactId> | ||
<scope>provided</scope> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>org.apiguardian</groupId> | ||
<artifactId>apiguardian-api</artifactId> | ||
</dependency> | ||
|
||
</dependencies> | ||
|
||
</project> |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
how will we decide if something is main or advanced?