version: 2
updates:
  - package-ecosystem: "maven"
    directory: "/"
    schedule:
      interval: "weekly"
      day: "monday"
      time: "06:00"
      timezone: "Etc/UTC"
    ignore:
      - dependency-name: "org.cryptomator:integrations-api"
        versions: ["2.0.0-alpha1"]
      - dependency-name: "jakarta.inject:jakarta.inject-api"
        versions: ["2.0.1.MR"]
      - dependency-name: "org.openjfx:*"
        update-types: ["version-update:semver-major"]
    groups:
      java-test-dependencies:
        patterns:
          - "org.junit.jupiter:*"
          - "org.mockito:*"
          - "org.hamcrest:*"
          - "com.google.jimfs:jimfs"
      maven-build-plugins:
        patterns:
          - "org.apache.maven.plugins:*"
          - "org.jacoco:jacoco-maven-plugin"
          - "org.owasp:dependency-check-maven"
          - "me.fabriciorby:maven-surefire-junit5-tree-reporter"
          - "org.codehaus.mojo:license-maven-plugin"
      javafx:
        patterns:
          - "org.openjfx:*"
      java-production-dependencies:
        patterns:
          - "*"
        exclude-patterns:
          - "org.openjfx:*"
          - "org.apache.maven.plugins:*"
          - "org.jacoco:jacoco-maven-plugin"
          - "org.owasp:dependency-check-maven"
          - "me.fabriciorby:maven-surefire-junit5-tree-reporter"
          - "org.codehaus.mojo:license-maven-plugin"
          - "org.junit.jupiter:*"
          - "org.mockito:*"
          - "org.hamcrest:*"
          - "com.google.jimfs:jimfs"

  - package-ecosystem: "github-actions"
    directory: "/" # even for `.github/workflows`
    schedule:
      interval: "monthly"
    groups:
      github-actions:
        patterns:
          - "*"
    labels:
      - "misc:ci"