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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
50 changes: 27 additions & 23 deletions examples/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: 2025 Lucimber UG
* SPDX-FileCopyrightText: 2025-2026 Lucimber UG
* SPDX-License-Identifier: Apache-2.0
*/

Expand All @@ -9,7 +9,7 @@ plugins {
id("application")
id("checkstyle")
id("pmd")
id("com.diffplug.spotless") version "8.0.0"
id("com.diffplug.spotless") version "8.1.0"
}

dependencies {
Expand Down Expand Up @@ -74,7 +74,7 @@ spotless {
// Also format Kotlin/Gradle files
kotlin {
// Use ktlint for Kotlin formatting
ktlint("0.50.0")
ktlint()

// License header for Kotlin files
licenseHeaderFile("$rootDir/config/license-header.txt", "(^(?![\\/ ]\\*).*$)")
Expand Down Expand Up @@ -102,11 +102,12 @@ tasks.register<JavaExec>("runBasicClient") {
systemProperties = System.getProperties().toMap() as Map<String, Any>

// Allow passing command line arguments
args = if (project.hasProperty("args")) {
(project.property("args") as String).split(" ")
} else {
emptyList()
}
args =
if (project.hasProperty("args")) {
(project.property("args") as String).split(" ")
} else {
emptyList()
}
}

tasks.register<JavaExec>("runSignalHandling") {
Expand All @@ -119,11 +120,12 @@ tasks.register<JavaExec>("runSignalHandling") {
systemProperties = System.getProperties().toMap() as Map<String, Any>

// Allow passing command line arguments
args = if (project.hasProperty("args")) {
(project.property("args") as String).split(" ")
} else {
emptyList()
}
args =
if (project.hasProperty("args")) {
(project.property("args") as String).split(" ")
} else {
emptyList()
}
}

tasks.register<JavaExec>("runServiceDiscovery") {
Expand All @@ -136,11 +138,12 @@ tasks.register<JavaExec>("runServiceDiscovery") {
systemProperties = System.getProperties().toMap() as Map<String, Any>

// Allow passing command line arguments
args = if (project.hasProperty("args")) {
(project.property("args") as String).split(" ")
} else {
emptyList()
}
args =
if (project.hasProperty("args")) {
(project.property("args") as String).split(" ")
} else {
emptyList()
}
}

tasks.register<JavaExec>("runAuthentication") {
Expand All @@ -153,11 +156,12 @@ tasks.register<JavaExec>("runAuthentication") {
systemProperties = System.getProperties().toMap() as Map<String, Any>

// Allow passing command line arguments
args = if (project.hasProperty("args")) {
(project.property("args") as String).split(" ")
} else {
emptyList()
}
args =
if (project.hasProperty("args")) {
(project.property("args") as String).split(" ")
} else {
emptyList()
}
}

// Create a task to list all available examples
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: 2023-2025 Lucimber UG
* SPDX-FileCopyrightText: 2023-2026 Lucimber UG
* SPDX-License-Identifier: Apache-2.0
*/

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: 2023-2025 Lucimber UG
* SPDX-FileCopyrightText: 2023-2026 Lucimber UG
* SPDX-License-Identifier: Apache-2.0
*/

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: 2025 Lucimber UG
* SPDX-FileCopyrightText: 2025-2026 Lucimber UG
* SPDX-License-Identifier: Apache-2.0
*/

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: 2025 Lucimber UG
* SPDX-FileCopyrightText: 2025-2026 Lucimber UG
* SPDX-License-Identifier: Apache-2.0
*/

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: 2025 Lucimber UG
* SPDX-FileCopyrightText: 2025-2026 Lucimber UG
* SPDX-License-Identifier: Apache-2.0
*/

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: 2023-2025 Lucimber UG
* SPDX-FileCopyrightText: 2023-2026 Lucimber UG
* SPDX-License-Identifier: Apache-2.0
*/

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: 2023-2025 Lucimber UG
* SPDX-FileCopyrightText: 2023-2026 Lucimber UG
* SPDX-License-Identifier: Apache-2.0
*/

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: 2025 Lucimber UG
* SPDX-FileCopyrightText: 2025-2026 Lucimber UG
* SPDX-License-Identifier: Apache-2.0
*/

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: 2025 Lucimber UG
* SPDX-FileCopyrightText: 2025-2026 Lucimber UG
* SPDX-License-Identifier: Apache-2.0
*/

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: 2025 Lucimber UG
* SPDX-FileCopyrightText: 2025-2026 Lucimber UG
* SPDX-License-Identifier: Apache-2.0
*/

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: 2025 Lucimber UG
* SPDX-FileCopyrightText: 2025-2026 Lucimber UG
* SPDX-License-Identifier: Apache-2.0
*/

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: 2025 Lucimber UG
* SPDX-FileCopyrightText: 2025-2026 Lucimber UG
* SPDX-License-Identifier: Apache-2.0
*/

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: 2025 Lucimber UG
* SPDX-FileCopyrightText: 2025-2026 Lucimber UG
* SPDX-License-Identifier: Apache-2.0
*/

Expand Down
80 changes: 44 additions & 36 deletions lib/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: 2025 Lucimber UG
* SPDX-FileCopyrightText: 2025-2026 Lucimber UG
* SPDX-License-Identifier: Apache-2.0
*/

Expand All @@ -9,7 +9,7 @@ plugins {
id("checkstyle")
id("jacoco")
id("pmd")
id("com.diffplug.spotless") version "8.0.0"
id("com.diffplug.spotless") version "8.1.0"
id("com.vanniktech.maven.publish") version "0.35.0"
id("signing")
}
Expand Down Expand Up @@ -98,7 +98,7 @@ spotless {
// Also format Kotlin/Gradle files
kotlin {
// Use ktlint for Kotlin formatting
ktlint("0.50.0")
ktlint()

// License header for Kotlin files
licenseHeaderFile("$rootDir/config/license-header.txt", "(^(?![\\/ ]\\*).*$)")
Expand Down Expand Up @@ -315,46 +315,54 @@ tasks.register<Exec>("integrationTest") {
}

// Add volume mount to copy test results back
val testResultsMount = listOf(
"-v",
"${project.projectDir}/build/test-results:/app/lib/build/test-results",
"-v",
"${project.projectDir}/build/reports:/app/lib/build/reports",
)
val testResultsMount =
listOf(
"-v",
"${project.projectDir}/build/test-results:/app/lib/build/test-results",
"-v",
"${project.projectDir}/build/reports:/app/lib/build/reports",
)

// Run the container and execute tests
@Suppress("DEPRECATION")
val result = if (showFullOutput) {
// Use direct exec with complete output shown
project.exec {
commandLine = listOf(
"docker", "run", "--rm",
"--name", "dbus-integration-test-run",
) +
testResultsMount +
containerEnvVars +
listOf("dbus-integration-test")
standardOutput = System.out
errorOutput = System.err
isIgnoreExitValue = true
}
} else {
// Use exec with limited output filtering
project.exec {
commandLine = listOf(
"docker", "run", "--rm",
"--name", "dbus-integration-test-run",
) +
testResultsMount +
containerEnvVars +
listOf("dbus-integration-test")
if (showDebugLogs) {
val result =
if (showFullOutput) {
// Use direct exec with complete output shown
project.exec {
commandLine = listOf(
"docker",
"run",
"--rm",
"--name",
"dbus-integration-test-run",
) +
testResultsMount +
containerEnvVars +
listOf("dbus-integration-test")
standardOutput = System.out
errorOutput = System.err
isIgnoreExitValue = true
}
} else {
// Use exec with limited output filtering
project.exec {
commandLine = listOf(
"docker",
"run",
"--rm",
"--name",
"dbus-integration-test-run",
) +
testResultsMount +
containerEnvVars +
listOf("dbus-integration-test")
if (showDebugLogs) {
standardOutput = System.out
errorOutput = System.err
}
isIgnoreExitValue = true
}
isIgnoreExitValue = true
}
}

println("=".repeat(80))
println("📊 INTEGRATION TEST - RESULTS SUMMARY")
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: 2025 Lucimber UG
* SPDX-FileCopyrightText: 2025-2026 Lucimber UG
* SPDX-License-Identifier: Apache-2.0
*/

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: 2025 Lucimber UG
* SPDX-FileCopyrightText: 2025-2026 Lucimber UG
* SPDX-License-Identifier: Apache-2.0
*/

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: 2025 Lucimber UG
* SPDX-FileCopyrightText: 2025-2026 Lucimber UG
* SPDX-License-Identifier: Apache-2.0
*/

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: 2025 Lucimber UG
* SPDX-FileCopyrightText: 2025-2026 Lucimber UG
* SPDX-License-Identifier: Apache-2.0
*/

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: 2025 Lucimber UG
* SPDX-FileCopyrightText: 2025-2026 Lucimber UG
* SPDX-License-Identifier: Apache-2.0
*/

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: 2023-2025 Lucimber UG
* SPDX-FileCopyrightText: 2023-2026 Lucimber UG
* SPDX-License-Identifier: Apache-2.0
*/

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: 2023-2025 Lucimber UG
* SPDX-FileCopyrightText: 2023-2026 Lucimber UG
* SPDX-License-Identifier: Apache-2.0
*/

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: 2023-2025 Lucimber UG
* SPDX-FileCopyrightText: 2023-2026 Lucimber UG
* SPDX-License-Identifier: Apache-2.0
*/

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: 2023-2025 Lucimber UG
* SPDX-FileCopyrightText: 2023-2026 Lucimber UG
* SPDX-License-Identifier: Apache-2.0
*/

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: 2023-2025 Lucimber UG
* SPDX-FileCopyrightText: 2023-2026 Lucimber UG
* SPDX-License-Identifier: Apache-2.0
*/

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: 2025 Lucimber UG
* SPDX-FileCopyrightText: 2025-2026 Lucimber UG
* SPDX-License-Identifier: Apache-2.0
*/

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: 2023-2025 Lucimber UG
* SPDX-FileCopyrightText: 2023-2026 Lucimber UG
* SPDX-License-Identifier: Apache-2.0
*/

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: 2023-2025 Lucimber UG
* SPDX-FileCopyrightText: 2023-2026 Lucimber UG
* SPDX-License-Identifier: Apache-2.0
*/

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: 2023-2025 Lucimber UG
* SPDX-FileCopyrightText: 2023-2026 Lucimber UG
* SPDX-License-Identifier: Apache-2.0
*/

Expand Down
Loading
Loading