From d9400fa2e49beeb464508d6c37df652ada78bb62 Mon Sep 17 00:00:00 2001 From: Raman Gupta Date: Fri, 9 Oct 2026 15:04:52 -0400 Subject: [PATCH] deps: update konture to 1.0.2, move rules to the 1.x filter names Konture 1.0.2 removed the deprecated file-filter names the architecture rules were written against, so the bump alone fails to compile: notResideInAPackage -> notInPackage notHaveName -> notNamed haveName -> named No rule changes meaning. Signed-off-by: Raman Gupta --- gradle/libs.versions.toml | 2 +- .../src/test/kotlin/com/gitvantage/ArchitectureTest.kt | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index b28a7c9..062c7fb 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -4,7 +4,7 @@ detekt = "2.0.0-alpha.6" dbusJava = "5.2.2" fileKit = "0.16.0" humanReadable = "2.0.0" -konture = "0.8.1" +konture = "1.0.2" kotlin = "2.4.10" kotlinxSerialization = "1.11.0" nucleus = "2.5.18" diff --git a/konture-test/src/test/kotlin/com/gitvantage/ArchitectureTest.kt b/konture-test/src/test/kotlin/com/gitvantage/ArchitectureTest.kt index 47b8bc7..7a74393 100644 --- a/konture-test/src/test/kotlin/com/gitvantage/ArchitectureTest.kt +++ b/konture-test/src/test/kotlin/com/gitvantage/ArchitectureTest.kt @@ -56,8 +56,8 @@ val Architecture by testSuite { test("only the state layer reaches the git runner") { architecture { files { - that().notResideInAPackage("com.gitvantage.git") - .and().notHaveName { it in setOf("AppState.kt", "Registry.kt") } + that().notInPackage("com.gitvantage.git") + .and().notNamed { it in setOf("AppState.kt", "Registry.kt") } should().notReferenceClass("com.gitvantage.git.Git") } } @@ -265,7 +265,7 @@ val Architecture by testSuite { test("process spawning is confined to Git and the three non-git callers") { architecture { files { - that().notHaveName { it in setOf("Git.kt", "Actions.kt", "GitHub.kt", "Theme.kt") } + that().notNamed { it in setOf("Git.kt", "Actions.kt", "GitHub.kt", "Theme.kt") } should().notReferenceClass("java.lang.ProcessBuilder") } } @@ -294,7 +294,7 @@ val Architecture by testSuite { */ test("the process-spawning rule can see an unimported ProcessBuilder") { val rule = FilesRuleBuilder(Konture.projectGraph, SourceSets.production()).apply { - that().haveName("Git.kt") + that().named("Git.kt") should().notReferenceClass("java.lang.ProcessBuilder") } val failure = runCatching { rule.check() }.exceptionOrNull()