Skip to content

Commit 57a32ad

Browse files
authored
Merge pull request #52 from eclipse-thingweb/RobWin-patch-2
Update README.md
2 parents 3109408 + 6d4ab54 commit 57a32ad

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

README.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,31 @@ Designed for flexibility, WoT is applicable across a broad spectrum of domains,
1818

1919
<img src="https://github.com/user-attachments/assets/5a1a4fc4-0cca-4290-b4b7-96309f723b0c" width="80%">
2020

21+
## Adding kotlin-wot to your Gradle project
22+
23+
To use **kotlin-wot** in your project, you need to add the required dependencies and configure the repository in your `build.gradle.kts` file.
24+
25+
```kotlin
26+
plugins {
27+
kotlin("jvm") version "1.9.10"
28+
id("org.springframework.boot") version "3.1.5"
29+
id("io.spring.dependency-management") version "1.1.3"
30+
}
31+
32+
repositories {
33+
mavenCentral()
34+
maven {
35+
url = uri("https://oss.sonatype.org/content/repositories/snapshots/")
36+
}
37+
}
38+
39+
dependencies {
40+
implementation("org.eclipse.thingweb:kotlin-wot-spring-boot-starter:0.1.0-SNAPSHOT")
41+
implementation("org.eclipse.thingweb:kotlin-wot-binding-http:0.1.0-SNAPSHOT")
42+
implementation("org.eclipse.thingweb:kotlin-wot-binding-websocket:0.1.0-SNAPSHOT")
43+
}
44+
```
45+
2146
## Thing Description (TD)
2247

2348
WoT defines an **information model** for describing Things and Services, including how to interact with them. This model is encapsulated in the **Thing Description (TD)**, a JSON-LD document that outlines the following:

0 commit comments

Comments
 (0)