Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
plugins {
kotlin("jvm") version "2.0.20"
id("org.jetbrains.kotlinx.kover") version "0.8.3"
`maven-publish`
}

subprojects {
apply(plugin = "org.jetbrains.kotlin.jvm")
apply(plugin = "org.jetbrains.kotlinx.kover")
apply(plugin = "maven-publish")

group = "ai.ancf.lmos"
version = "1.0-SNAPSHOT"
Expand All @@ -16,6 +18,19 @@ subprojects {
testImplementation("io.mockk:mockk:1.13.13")
}

publishing {
publications {
create<MavenPublication>("mavenKotlin") {
from(components["java"])
artifactId = project.name
}
}
repositories {
mavenLocal()
}
}


tasks.test {
useJUnitPlatform()

Expand Down
5 changes: 1 addition & 4 deletions kotlin-wot-binding-http/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
plugins {
id("io.ktor.plugin") version "3.0.0"
}

dependencies {
implementation(platform("io.ktor:ktor-bom:3.0.3"))
api(project(":kotlin-wot"))
implementation("org.slf4j:slf4j-api")
implementation("io.ktor:ktor-server-core")
Expand Down
5 changes: 1 addition & 4 deletions kotlin-wot-binding-websocket/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
plugins {
id("io.ktor.plugin") version "3.0.0"
}

dependencies {
implementation(platform("io.ktor:ktor-bom:3.0.3"))
api(project(":kotlin-wot"))
api(project(":kotlin-wot-lmos-protocol"))
implementation("org.slf4j:slf4j-api")
Expand Down
8 changes: 7 additions & 1 deletion kotlin-wot-integration-tests/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import org.springframework.boot.gradle.tasks.bundling.BootJar

plugins {
kotlin("plugin.spring") version "1.9.10"
id("org.springframework.boot") version "3.1.5" // Use the latest compatible version
Expand All @@ -18,4 +20,8 @@ dependencies {
testImplementation("org.springframework.boot:spring-boot-starter-test")
testImplementation("com.hivemq:hivemq-mqtt-client:1.3.3")
implementation("org.testcontainers:testcontainers:1.20.3")
}
}

tasks.withType<BootJar> {
mainClass.set("integration.AgentApplication")
}
5 changes: 1 addition & 4 deletions kotlin-wot-lmos-protocol/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
plugins {
id("io.ktor.plugin") version "3.0.0"
}

dependencies {
implementation(platform("io.ktor:ktor-bom:3.0.3"))
implementation("io.ktor:ktor-serialization-jackson")
}
10 changes: 10 additions & 0 deletions kotlin-wot-spring-boot-starter/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import org.springframework.boot.gradle.tasks.bundling.BootJar

plugins {
kotlin("plugin.spring") version "1.9.10"
id("org.springframework.boot") version "3.1.5" // Use the latest compatible version
Expand All @@ -15,4 +17,12 @@ dependencies {
testImplementation("org.springframework.boot:spring-boot-starter-test")
testImplementation(project(":kotlin-wot-binding-http"))
testImplementation(project(":kotlin-wot-binding-websocket"))
}

tasks.getByName<BootJar>("bootJar") {
enabled = false
}

tasks.getByName<Jar>("jar") {
enabled = true
}
Loading