{
  "name": "Automate Gradle dependency updates with Slack notifications",
  "nodes": [
    {
      "id": "0a705640-223f-40dd-a661-3c34f608fd7f",
      "name": "Check Same Version",
      "type": "n8n-nodes-base.code",
      "position": [
        -1904,
        -240
      ]
    },
    {
      "id": "eeb2f53b-9ae5-4e12-a7a5-237e6c95ba34",
      "name": "If same Version",
      "type": "n8n-nodes-base.if",
      "position": [
        -1744,
        -240
      ]
    },
    {
      "id": "9ea87c06-bafd-4576-9544-3b3fc542c8c3",
      "name": "Run Gradle Dependency Check",
      "type": "n8n-nodes-base.ssh",
      "position": [
        -2464,
        -240
      ]
    },
    {
      "id": "e22ad97d-cdb3-45b9-9afb-46c67f5c8a1a",
      "name": "Extract Dependency Updates",
      "type": "n8n-nodes-base.code",
      "position": [
        -2256,
        -240
      ]
    },
    {
      "id": "b23738bf-99d4-4d18-bd42-31923be36cd0",
      "name": "Mark Major Updates",
      "type": "n8n-nodes-base.code",
      "position": [
        -2080,
        -240
      ]
    },
    {
      "id": "771c01dd-92f1-416b-a456-416598f6ed7b",
      "name": "Filter Major Updates",
      "type": "n8n-nodes-base.code",
      "position": [
        -1424,
        -64
      ]
    },
    {
      "id": "2591323f-1858-4922-a487-21221dbbdbee",
      "name": "Update build.gradle",
      "type": "n8n-nodes-base.ssh",
      "position": [
        -1232,
        -64
      ]
    },
    {
      "id": "28998fbb-3c67-40a6-b54c-31a837bcbe82",
      "name": "Notify: Dependency Updated",
      "type": "n8n-nodes-base.slack",
      "position": [
        -1056,
        -64
      ]
    },
    {
      "id": "1f45928d-cc2d-4d98-acbc-45918b5ce66c",
      "name": "Trigger Workflow Monthly",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -2704,
        -240
      ]
    },
    {
      "id": "d080eba8-b5b8-41de-83fa-b59fd506331e",
      "name": "Notify: Dependency Up-to-date",
      "type": "n8n-nodes-base.slack",
      "position": [
        -1456,
        -464
      ]
    },
    {
      "id": "49216e1d-6213-4c42-bb49-2a6a95814ff4",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2784,
        -368
      ],
      "parameters": {
        "width": null,
        "height": 304,
        "content": "## Trigger Workflow\n**The workflow starts on a schedule you choose (like a daily reminder).** \n"
      }
    },
    {
      "id": "5a0229d9-3465-4e30-a07d-919cf2c5d066",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1536,
        -272
      ],
      "parameters": {
        "width": 736,
        "height": 368,
        "content": "## Apply Dependency and Status Update\n\n**Filter Major Updates** :This node filters out only the major updates that need to be applied to your project. Minor updates are ignored here.\n**Update build.gr"
      }
    },
    {
      "id": "ce1f7c51-e5c2-4568-b50c-cef13c2d4697",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2528,
        -368
      ],
      "parameters": {
        "width": 944,
        "height": 304,
        "content": "## Dependency Update Detection\nThis workflow section automatically checks your project’s libraries for available updates. It identifies major version changes, compares current and latest versions, and"
      }
    },
    {
      "id": "7a3703cd-77f1-42fb-99fc-d26b0ca9d703",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1536,
        -592
      ],
      "parameters": {
        "width": 368,
        "height": 304,
        "content": "## Notify: Dependency Uptodate\nSends a Slack message for libraries that are already up-to-date, so your team knows nothing needs to be done."
      }
    },
    {
      "id": "dad20b56-55f6-4bd7-bf9c-33333452a3bc",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -3456,
        -768
      ],
      "parameters": {
        "width": 448,
        "height": 560,
        "content": "## How it Works\nThis workflow automatically checks your project’s libraries for updates. It runs a Gradle command to list outdated dependencies, identifies major version changes, and compares current "
      }
    }
  ],
  "connections": {
    "If same Version": {
      "main": [
        [
          {
            "node": "Notify: Dependency Up-to-date",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Filter Major Updates",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check Same Version": {
      "main": [
        [
          {
            "node": "If same Version",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Mark Major Updates": {
      "main": [
        [
          {
            "node": "Check Same Version",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Update build.gradle": {
      "main": [
        [
          {
            "node": "Notify: Dependency Updated",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Filter Major Updates": {
      "main": [
        [
          {
            "node": "Update build.gradle",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Trigger Workflow Monthly": {
      "main": [
        [
          {
            "node": "Run Gradle Dependency Check",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extract Dependency Updates": {
      "main": [
        [
          {
            "node": "Mark Major Updates",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Run Gradle Dependency Check": {
      "main": [
        [
          {
            "node": "Extract Dependency Updates",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}