Elffuss BraidHub

kikocis/EDC public

main · 8.5 KiBRenderedRawPermalink
1<h1 align="center">
2 <br/>
3 EDC Connector
4 <br/>
5</h1>
6
7<div align="center">
8 <a href="https://github.com/eclipse-edc/Connector/actions/workflows/verify.yaml?query=branch%3Amain">
9 <img src="https://img.shields.io/github/actions/workflow/status/eclipse-edc/Connector/verify.yaml?branch=main&logo=GitHub&style=flat-square"
10 alt="Tests status" />
11 </a>
12 <a href="https://app.codecov.io/gh/eclipse-edc/Connector">
13 <img src="https://img.shields.io/codecov/c/github/eclipse-edc/Connector?style=flat-square"
14 alt="Coverage" />
15 </a>
16 <a href="https://discord.gg/n4sD9qtjMQ">
17 <img src="https://img.shields.io/badge/discord-chat-brightgreen.svg?style=flat-square&logo=discord"
18 alt="Discord chat" />
19 </a>
20 <a href="https://search.maven.org/artifact/org.eclipse.edc/boot">
21 <img src="https://img.shields.io/maven-central/v/org.eclipse.edc/boot?logo=apache-maven&style=flat-square&label=latest%20version"
22 alt="Version" />
23 </a>
24 <a href="https://www.apache.org/licenses/LICENSE-2.0">
25 <img src="https://img.shields.io/github/license/eclipse-edc/Connector?style=flat-square&logo=apache"
26 alt="License" />
27 </a>
28</div>
29<div align="center">
30 <a href="https://ci.eclipse.org/edc/job/Build-Component">
31 <img src="https://img.shields.io/jenkins/build?jobUrl=https%3A%2F%2Fci.eclipse.org%2Fedc%2Fjob%2FPublish-Component%2F&label=snapshot-build&style=flat-square"
32 alt="License" />
33 </a>
34 <a href="https://ci.eclipse.org/edc/job/Build-Components-Nightly">
35 <img src="https://img.shields.io/jenkins/build?jobUrl=https%3A%2F%2Fci.eclipse.org%2Fedc%2Fjob%2FPublish-Components-Nightly%2F&label=nightly-build&style=flat-square"
36 alt="License" />
37 </a>
38</div>
39
40
41### Built with
42
43One of the guiding principles in developing the connector is simplicity and keeping the core small and efficient with as
44little external dependencies as possible to avoid version conflicts. We do not want to force any third-party
45dependencies onto our users, so we aim to avoid any of the big frameworks. Of course, if you want to use them, you still
46can add them to your extensions (see: [TBW]). The connector is a plain Java application built with Gradle, but it can be
47embedded into any form of application deployment.
48
49### Documentation
50
51Developer documentation can be found under [docs/developer](docs/developer/README.md),
52where the main concepts and decisions are captured as [decision records](docs/developer/decision-records/README.md).
53
54Some more documentation can be found at [extensions](extensions/README.md), [launchers](launchers/README.md) and
55[the samples repository](https://github.com/eclipse-edc/Samples).
56
57For detailed information about the whole project, please take a look at
58our [GitHub pages](https://eclipse-edc.github.io/docs).
59
60## Getting Started
61
62### Onboarding and first steps
63
64If you are not yet familiar with the EDC nomenclature, we strongly advise reading the
65[documentation](https://eclipse-edc.github.io/docs/#/) and/or watching the
66[introductory videos](https://www.youtube.com/@eclipsedataspaceconnector9622/featured).
67
68#### Samples
69
70The [Samples repository](https://github.com/eclipse-edc/Samples) provides a set of examples for getting familiar with
71the EDC framework and learning how to set up and use a connector. The samples begin with the very basics (e.g. learning
72how to write an extension or use a configuration file) and then move on to more complex scenarios (e.g. performing
73different data transfers). More samples will be added in the future, so be sure to check back regularly.
74
75### Add Maven dependencies
76
77Official versions are available through [MavenCentral](https://search.maven.org/search?q=org.eclipse.edc)
78.
79Please add the following instructions in your `build.gradle[.kts]` file (if not already present):
80
81```kotlin
82repositories {
83 mavenCentral()
84 // ... other maven repos
85}
86```
87
88We **strongly** recommend to use official versions and only switch to snapshots if there is a clear need to do so, or
89you've been instructed to do so, e.g. to verify a bugfix.
90
91All artifacts are under the `org.eclipse.edc` group id, for example:
92
93```kotlin
94dependencies {
95 implementation("org.eclipse.edc:spi:core-spi:<<version>>")
96 // any other dependencies
97}
98```
99
100#### Using `SNAPSHOT` versions
101
102In addition, EDC regularly publishes snapshot versions, which are available at Sonatype's snapshot
103repository. In
104order to add them to your build configuration, simply add this:
105
106```kotlin
107repositories {
108 mavenCentral()
109 maven {
110 url = uri("https://oss.sonatype.org/content/repositories/snapshots/")
111 }
112 // any other repos
113}
114```
115
116Then you can add snapshot dependencies by simply using the `-SNAPSHOT` version suffix:
117
118```kotlin
119dependencies {
120 implementation("org.eclipse.edc:spi:core-spi:0.10.0-SNAPSHOT")
121 // any other dependencies
122}
123```
124
125You may check MavenCentral for a comprehensive list of all official versions.
126
127Please be aware of the following pitfalls:
128
129- snapshots are by definition unstable - every new snapshot replaces an old one
130- this may cause unrepeatable builds
131- snapshots are created irregularly, we do not have any fixed publish schedule
132
133#### Using release versions
134
135_We plan to have actual release versions starting some time mid 2022. Please check back soon._
136
137
138> For more information about versioning please refer to the [release documentation](https://github.com/eclipse-edc/.github/blob/main/docs/developer/releases.md)
139
140### Checkout and build from source
141
142The project requires JDK 11+. To get started:
143
144``` shell
145git clone git@github.com:eclipse-edc/Connector.git
146
147cd Connector
148
149./gradlew clean build
150```
151
152That will build the connector and run unit tests.
153
154### [Optional] Setup your IDE
155
156If you wish to configure your IDE/editor to automatically apply the EDC code style, please
157follow [this guide](https://github.com/eclipse-edc/.github/blob/main/contributing/styleguide.md).
158
159_Note: the style guide will be checked/enforced in GitHub Actions._
160
161### Generate the OpenApi specification
162
163Please refer to [this document](docs/developer/openapi.md).
164
165## Directory structure
166
167### `spi`
168
169This is the primary extension point for the connector. It contains all necessary interfaces that need to be implemented
170as well as essential model classes and enums. Basically, the `spi` modules defines the extent to what users can
171customize and extend the code.
172
173### `core`
174
175Contains all absolutely essential building that is necessary to run a connector such as `TransferProcessManager`,
176`ProvisionManager`, `DataFlowManager`, various model classes, the protocol engine and the policy piece. While it is
177possible to build a connector with just the code from the `core` module, it will have very limited capabilities to
178communicate and to interact with a data space.
179
180### `extensions`
181
182This contains code that extends the connector's core functionality with technology- or cloud-provider-specific code. For
183example a transfer process store based on Azure CosmosDB, a secure vault based on Azure KeyVault, etc. This is where
184technology- and cloud-specific implementations should go.
185
186If someone were to create a configuration service based on Postgres, then the implementation should go into
187the `extensions/database/configuration-postgres` module.
188
189### `launchers`
190
191Launchers are essentially connector packages that are runnable. What modules get included in the build (and thus: what
192capabilities a connector has) is defined by the `build.gradle.kts` file inside the launcher subdirectory. That's also
193where a Java class containing a `main` method should go. We will call that class a "runtime" and in order for the
194connector to become operational the `runtime` needs to perform several important tasks (="bootstrapping"). For an
195example take a look at
196[this runtime](https://github.com/eclipse-edc/Samples/blob/main/other/custom-runtime/src/main/java/org/eclipse/edc/sample/runtime/CustomRuntime.java)
197
198### `data-protocols`
199
200Contains implementations for communication protocols a connector might use, such as DSP.
201
202## Releases
203
204GitHub releases are listed [here](https://github.com/eclipse-edc/Connector/releases).
205Please find more information about releases in our [release approach](https://github.com/eclipse-edc/docs/blob/main/developer/releases.md).
206
207### Roadmap
208
209See [here](https://github.com/eclipse-edc/.github/blob/main/CONTRIBUTING.md#project-and-milestone-planning) for more information about project and
210milestone planning. Scheduled and ongoing milestones are listed
211[here](https://github.com/eclipse-edc/Connector/milestones).
212
213### Tags
214
215Available tags can be found [here](https://github.com/eclipse-edc/Connector/tags).
216
217## Contributing
218
219See [how to contribute](https://github.com/eclipse-edc/.github/blob/main/CONTRIBUTING.md).