Skip to content

Commit

Permalink
feat: edc autosetup (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilczaja authored Dec 5, 2024
1 parent 1f1f3dd commit 76c7265
Show file tree
Hide file tree
Showing 9 changed files with 382 additions and 148 deletions.
14 changes: 13 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Chat App

Chat app serving as a developer tutorial how to develop EDC apps and as a demo app for EDCs
Chat app serving as a developer tutorial how to develop EDC apps and as a demo app for EDCs

## Why

Expand All @@ -9,3 +9,15 @@ Onboarding of use case developers follows a steep learning curve, since EDCs fol
## Architecture

The planning of the application can be found [here](docs/planning/README.md)

## Pre-requisites

### Backend

You need to provide a GitHub access token with the `packages:read` scope to access Maven repositories for dependencies.
To add the token, create a file named `gradle.properties` in `HOME_DIRECTORY/.gradle/` with the following content:

```
gpr.user=your-github-username
gpr.key=your-github-access-token
```
12 changes: 12 additions & 0 deletions backend/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,22 @@ plugins {
repositories {
mavenCentral()
mavenLocal()
maven {
name = "maven.pkg.github.com/sovity/edc-ce"
url = uri("https://maven.pkg.github.com/sovity/edc-ce")
credentials {
username = project.findProperty("gpr.user") as String? ?: System.getenv("GPR_USER")
password = project.findProperty("gpr.key") as String? ?: System.getenv("GPR_KEY")
}
}
}

val quarkusPlatformGroupId: String by project
val quarkusPlatformArtifactId: String by project
val quarkusPlatformVersion: String by project

val sovityEdcCeVersion = "0.0.1-20241101-2408-alpha8"

dependencies {
implementation(enforcedPlatform("${quarkusPlatformGroupId}:${quarkusPlatformArtifactId}:${quarkusPlatformVersion}"))
implementation("io.quarkus:quarkus-kotlin")
Expand All @@ -21,6 +31,8 @@ dependencies {
implementation("io.quarkus:quarkus-resteasy-jackson")
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
implementation("io.quarkus:quarkus-arc")
implementation("de.sovity.edc:client:${sovityEdcCeVersion}")
implementation("de.sovity.edc:json-and-jsonld-utils:${sovityEdcCeVersion}")
testImplementation("io.quarkus:quarkus-junit5")
}

Expand Down
4 changes: 3 additions & 1 deletion backend/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Loading

0 comments on commit 76c7265

Please sign in to comment.