dependency-conflict-resolver
Skill18 starsChanged 9 months agoMITView on GitHub
Diagnose and resolve Gradle and Spring classpath conflicts, version drift, and binary incompatibilities in Kotlin applications. Use when `NoSuchMethodError`, `ClassNotFoundException`, linkage errors, duplicate logging bindings, Jackson or Hibernate mismatches, or BOM-versus-explicit-version conflicts appear, and the fix must respect the repository's real version authorities.
2 other projects use a version of this, 1 of them edited.
Adopted by
Most recently taken up by
- JetBrains/skillsedited, first seen Apr 28, 2026
- marcusgoll/Spec-Flowtheir own version, first seen Apr 23, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 1
- JetBrains/skills★ 36096% same
Wrote their own version · 1
- marcusgoll/Spec-Flow★ 94same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository24 other files it gives its agents.
- ci-cd-containerization-advisorSkill
- configuration-properties-profiles-kotlin-safeSkill
- domain-decomposition-api-design-advisorSkill
- error-model-validation-architectSkill
- gradle-kotlin-dsl-doctorSkill
- integration-resilience-engineerSkill
- jackson-kotlin-serialization-specialistSkill
- java-kotlin-migration-assistantSkill
- jpa-spring-data-kotlin-mapperSkill
- kotlin-idiomatic-refactorer-spring-awareSkill
- kotlin-spring-proxy-compatibilitySkill
- observability-integratorSkill
- performance-concurrency-advisorSkill
- production-incident-responderSkill
- project-context-ingestionSkill
- schema-migration-plannerSkill
- spring-context-di-reasoningSkill
- spring-kotlin-code-reviewSkill
- spring-mvc-webflux-api-builderSkill
- spring-security-configurator-auditorSkill
- stacktrace-log-triageSkill
- test-suite-builderSkill
- transaction-consistency-designerSkill
- upgrade-breaking-change-navigatorSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
14 rules. About 0 are common, 13 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈13
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 13
Treat dependency conflict resolution as a version-authority problem, not a guessing contest.
- Distinctive: line 45
Test runtime can differ from main runtime.
- Distinctive: line 60
If the symptom is runtime-only, inspect the packaged artifact or runtime classpath, not only IDE dependency trees.
- Distinctive: line 61
If a library family is managed by Spring Boot, prefer returning ownership to the BOM over adding more local pins.
- Distinctive: line 62
If the same conflict recurs across modules, solve it at the platform or convention level instead of patching one module at a time.
- Distinctive: line 63
If a dependency looks unused, verify reflective, auto-configured, or service-loader usage before removing it.
- Distinctive: line 67
Prefer removing an unnecessary explicit version when the BOM already manages a compatible one.
- Distinctive: line 68
Prefer aligning the entire affected dependency family.
- Distinctive: line 69
Prefer a direct, documented version override over hidden exclusions if an override is truly needed.
- Distinctive: line 70
Use exclusions only when a dependency is genuinely wrong for the module, not merely inconvenient.
- Distinctive: line 85
Do not invent version numbers without tracing the existing compatibility model.
- Distinctive: line 86
Do not spray exclusions until the graph goes green.
- Very specific: line 87
Do not use force as the default answer.
- Distinctive: line 88
Do not fix only the visibly failing artifact when the whole library family is misaligned.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Dependency Conflict Resolver
Source mapping: Tier 2 high-value skill derived from Kotlin_Spring_Developer_Pipeline.md (SK-05).
Mission
Find which artifact version actually wins, why it wins, and what the narrowest safe correction is. Treat dependency conflict resolution as a version-authority problem, not a guessing contest.
Read First
./gradlew dependenciesor module-scoped dependencies output../gradlew dependencyInsight --dependency <artifact>for the failing library family.- Root and module build files, version catalogs, imported BOMs, and plugin versions.
- The exact runtime or compile-time error:
NoSuchMethodErrorClassNotFoundExceptionNoClassDefFoundErrorAbstractMethodError- duplicate binding warnings
Diagnose In This Order
- Identify the failing class or method owner.
- Identify which artifact provides that class.
- Identify all candidate versions on the graph.
- Identify the winning version and why it won:
- direct dependency
- BOM or platform
- version catalog alias
- transitive dependency
- conflict resolution rule
- Identify the true version authority that should own the family.
Advanced Classpath Traps
- A compile-time green build and a runtime linkage error usually means binary incompatibility between resolved artifacts, not a missing import.
- Jackson, Netty, SLF4J, Logback, Kotlin stdlib, and Hibernate families should usually be version-aligned as families, not patched one artifact at a time.
- Plugin classpath and application classpath are different worlds. A plugin upgrade may not fix a runtime library conflict and vice versa.
- Test runtime can differ from main runtime. A conflict that appears only in tests may come from test fixtures, mock libraries, or test containers support.
enforcedPlatform,strictly, and exclusions can fix a conflict or silently lock the graph into brittle behavior. Use them deliberately.- Multiple logging bindings often create confusing startup behavior long before they fail hard.
- Shading or relocation is rarely the first answer in an ordinary Spring Boot app. Reach for it only when classpath isolation is truly required.
Gradle Resolution Nuances
- Variant-aware resolution can choose artifacts by attributes such as usage, JVM version, and capabilities. A "present" dependency may still resolve to the wrong variant.
- BOM import order and multiple platforms can subtly change which family wins even when the declared versions look reasonable.
apiversusimplementationleakage in shared modules can make conflicts appear only in downstream consumers.- Duplicate classes from repackaged or relocated jars may not surface until runtime classloading or auto-configuration scans.
- Annotation processors, KSP, and plugin classpaths may need separate alignment from the main application runtime.
Expert Heuristics
- If the symptom is runtime-only, inspect the packaged artifact or runtime classpath, not only IDE dependency trees.
- If a library family is managed by Spring Boot, prefer returning ownership to the BOM over adding more local pins.
- If the same conflict recurs across modules, solve it at the platform or convention level instead of patching one module at a time.
- If a dependency looks unused, verify reflective, auto-configured, or service-loader usage before removing it.
Preferred Resolution Strategy
- Prefer removing an unnecessary explicit version when the BOM already manages a compatible one.
- Prefer aligning the entire affected dependency family.
- Prefer a direct, documented version override over hidden exclusions if an override is truly needed.
- Use exclusions only when a dependency is genuinely wrong for the module, not merely inconvenient.
- Explain why the chosen layer should own the version so the conflict does not return on the next upgrade.
Output Contract
Return these sections:
Conflict summary: what is colliding and where the symptom appears.Winning path: how the resolved artifact version is selected.Version authority: which file or platform should own the fix.Minimal fix: the smallest safe dependency or platform change.Verification: compile-time and runtime checks that confirm the graph is healthy.
Guardrails
- Do not invent version numbers without tracing the existing compatibility model.
- Do not spray exclusions until the graph goes green.
- Do not use
forceas the default answer. - Do not fix only the visibly failing artifact when the whole library family is misaligned.
Quality Bar
A good run of this skill explains the conflict path and resolves it at the right authority layer. A bad run produces a one-off version pin that compiles today and recreates the same conflict in the next branch.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

