{
  "id": "java/gradle-plugin-not-found",
  "signature": "PluginResolutionException: Plugin [id: 'com.github.johnrengelman.shadow', version: '8.1.1'] was not found in any of the following sources: Gradle Core Plugins, Plugin Repositories (could not resolve plugin artifact 'com.github.johnrengelman.shadow:com.github.johnrengelman.shadow.gradle.plugin:8.1.1')",
  "signature_zh": "插件解析异常：插件 [id: 'com.github.johnrengelman.shadow', version: '8.1.1'] 在以下来源中未找到：Gradle 核心插件、插件仓库（无法解析插件工件 'com.github.johnrengelman.shadow:com.github.johnrengelman.shadow.gradle.plugin:8.1.1'）",
  "regex": "PluginResolutionException:\\ Plugin\\ \\[id:\\ 'com\\.github\\.johnrengelman\\.shadow',\\ version:\\ '8\\.1\\.1'\\]\\ was\\ not\\ found\\ in\\ any\\ of\\ the\\ following\\ sources:\\ Gradle\\ Core\\ Plugins,\\ Plugin\\ Repositories\\ \\(could\\ not\\ resolve\\ plugin\\ artifact\\ 'com\\.github\\.johnrengelman\\.shadow:com\\.github\\.johnrengelman\\.shadow\\.gradle\\.plugin:8\\.1\\.1'\\)",
  "domain": "java",
  "category": "build_error",
  "subcategory": null,
  "root_cause": "The Gradle plugin is not declared in the pluginManagement block or the plugin repository is missing.",
  "root_cause_type": "generic",
  "root_cause_zh": "Gradle 插件未在 pluginManagement 块中声明，或者缺少插件仓库。",
  "versions": [
    {
      "version": "8+",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "Adding the plugin to buildscript dependencies without using pluginManagement",
      "why_fails": "Gradle 8+ requires plugins to be resolved via pluginManagement or direct plugin block with repository.",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    },
    {
      "action": "Using an older version of the plugin that is not compatible with Gradle 8",
      "why_fails": "Version incompatibility leads to resolution failure.",
      "fail_rate": 0.75,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Add the Gradle Plugin Portal to pluginManagement repositories",
      "success_rate": 0.95,
      "how": "pluginManagement { repositories { gradlePluginPortal() mavenCentral() } }",
      "condition": "",
      "sources": []
    },
    {
      "action": "Declare the plugin directly in build.gradle with correct version",
      "success_rate": 0.9,
      "how": "plugins { id 'com.github.johnrengelman.shadow' version '8.1.1' }",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": null,
  "official_doc_section": null,
  "error_code": null,
  "verification_tier": "ai_generated",
  "confidence": 0.85,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2024-04-10",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}