Skip to content

Commit 5da4d01

Browse files
committed
Merge branch 'master' of https://github.com/eclipse-thingweb/kotlin-wot into master
2 parents eb54838 + 57a32ad commit 5da4d01

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
@@ -41,6 +41,31 @@ dependencies {
4141
}
4242
```
4343

44+
## Adding kotlin-wot to your Gradle project
45+
46+
To use **kotlin-wot** in your project, you need to add the required dependencies and configure the repository in your `build.gradle.kts` file.
47+
48+
```kotlin
49+
plugins {
50+
kotlin("jvm") version "1.9.10"
51+
id("org.springframework.boot") version "3.1.5"
52+
id("io.spring.dependency-management") version "1.1.3"
53+
}
54+
55+
repositories {
56+
mavenCentral()
57+
maven {
58+
url = uri("https://oss.sonatype.org/content/repositories/snapshots/")
59+
}
60+
}
61+
62+
dependencies {
63+
implementation("org.eclipse.thingweb:kotlin-wot-spring-boot-starter:0.1.0-SNAPSHOT")
64+
implementation("org.eclipse.thingweb:kotlin-wot-binding-http:0.1.0-SNAPSHOT")
65+
implementation("org.eclipse.thingweb:kotlin-wot-binding-websocket:0.1.0-SNAPSHOT")
66+
}
67+
```
68+
4469
## Thing Description (TD)
4570

4671
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)