Skip to content

Commit 3dbd2ce

Browse files
committed
Make "gradle build" run successfully
1 parent f850d1a commit 3dbd2ce

File tree

5 files changed

+20
-13
lines changed

5 files changed

+20
-13
lines changed

kotlin-wot-binding-http/build.gradle.kts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
1-
plugins {
2-
id("io.ktor.plugin") version "3.0.0"
3-
}
4-
51
dependencies {
2+
implementation(platform("io.ktor:ktor-bom:3.0.3"))
63
api(project(":kotlin-wot"))
74
implementation("org.slf4j:slf4j-api")
85
implementation("io.ktor:ktor-server-core")

kotlin-wot-binding-websocket/build.gradle.kts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
1-
plugins {
2-
id("io.ktor.plugin") version "3.0.0"
3-
}
4-
51
dependencies {
2+
implementation(platform("io.ktor:ktor-bom:3.0.3"))
63
api(project(":kotlin-wot"))
74
api(project(":kotlin-wot-lmos-protocol"))
85
implementation("org.slf4j:slf4j-api")

kotlin-wot-integration-tests/build.gradle.kts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import org.springframework.boot.gradle.tasks.bundling.BootJar
2+
13
plugins {
24
kotlin("plugin.spring") version "1.9.10"
35
id("org.springframework.boot") version "3.1.5" // Use the latest compatible version
@@ -18,4 +20,8 @@ dependencies {
1820
testImplementation("org.springframework.boot:spring-boot-starter-test")
1921
testImplementation("com.hivemq:hivemq-mqtt-client:1.3.3")
2022
implementation("org.testcontainers:testcontainers:1.20.3")
21-
}
23+
}
24+
25+
tasks.withType<BootJar> {
26+
mainClass.set("integration.AgentApplication")
27+
}
Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
plugins {
2-
id("io.ktor.plugin") version "3.0.0"
3-
}
4-
51
dependencies {
2+
implementation(platform("io.ktor:ktor-bom:3.0.3"))
63
implementation("io.ktor:ktor-serialization-jackson")
74
}

kotlin-wot-spring-boot-starter/build.gradle.kts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import org.springframework.boot.gradle.tasks.bundling.BootJar
2+
13
plugins {
24
kotlin("plugin.spring") version "1.9.10"
35
id("org.springframework.boot") version "3.1.5" // Use the latest compatible version
@@ -15,4 +17,12 @@ dependencies {
1517
testImplementation("org.springframework.boot:spring-boot-starter-test")
1618
testImplementation(project(":kotlin-wot-binding-http"))
1719
testImplementation(project(":kotlin-wot-binding-websocket"))
20+
}
21+
22+
tasks.getByName<BootJar>("bootJar") {
23+
enabled = false
24+
}
25+
26+
tasks.getByName<Jar>("jar") {
27+
enabled = true
1828
}

0 commit comments

Comments
 (0)