From 9084dfe68420fd4d0c931779e3cee69f79bdb028 Mon Sep 17 00:00:00 2001 From: alexander-yevsyukov Date: Sat, 17 Oct 2026 02:42:37 +0100 Subject: [PATCH] Drop the dead `unused` suppressions from `Spine` and `DokkaTools` These two are the only catalogues in `io.spine.dependency.local` whose every declared member is referenced, so their object-level `unused` entry has nothing left to suppress. `Spine` declares `group` and `toolsGroup` alone, with 11 and 17 references from outside the file. All of them live in `buildSrc`, which `migrate` copies wholesale, so the referencing files always travel with `Spine.kt`. `DokkaTools` declares `group`, `version` and `extensions`. `extensions` is used by `useDokkaWithSpineExtensions()` in `DokkaExts.kt`, and `group` and `version` are used by the `extensions` template. That chain ends at `dokka-setup.gradle.kts`, applied by id from `jvm-module.gradle.kts` and `kmp-publish.gradle.kts`. `Reflect` already has this exact shape without an `unused` entry. The other nine catalogues in the package keep theirs: their constants are genuinely unreferenced here, because downstream repos consume them. The `ConstPropertyName` entry stays in both files: the constant names are lowerCamelCase by the catalogue's own convention. Co-Authored-By: Claude Opus 5 --- buildSrc/src/main/kotlin/io/spine/dependency/local/DokkaTools.kt | 1 - buildSrc/src/main/kotlin/io/spine/dependency/local/Spine.kt | 1 - 2 files changed, 2 deletions(-) diff --git a/buildSrc/src/main/kotlin/io/spine/dependency/local/DokkaTools.kt b/buildSrc/src/main/kotlin/io/spine/dependency/local/DokkaTools.kt index 5a64607c..6026d49f 100644 --- a/buildSrc/src/main/kotlin/io/spine/dependency/local/DokkaTools.kt +++ b/buildSrc/src/main/kotlin/io/spine/dependency/local/DokkaTools.kt @@ -21,7 +21,6 @@ package io.spine.dependency.local * See [`SpineEventEngine/dokka-tools`](https://github.com/SpineEventEngine/dokka-tools/). */ @Suppress( - "unused" /* Some subprojects do not use the Dokka tools directly. */, "ConstPropertyName" /* We use a custom convention for artifact properties. */, ) object DokkaTools { diff --git a/buildSrc/src/main/kotlin/io/spine/dependency/local/Spine.kt b/buildSrc/src/main/kotlin/io/spine/dependency/local/Spine.kt index e18bbdc4..c4e6c2d9 100644 --- a/buildSrc/src/main/kotlin/io/spine/dependency/local/Spine.kt +++ b/buildSrc/src/main/kotlin/io/spine/dependency/local/Spine.kt @@ -18,7 +18,6 @@ package io.spine.dependency.local * Defines Maven groups for the Spine SDK artifacts. */ @Suppress( - "unused" /* Some subprojects do not use all the declared groups. */, "ConstPropertyName" /* We use a custom convention for artifact properties. */, ) object Spine {