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