CI / GitHub Actions

Here's a small recipe I use: run the plugin during the build pipeline. If you set failOnDeadCode = true, the job will fail when the detector finds issues.

name: CI
on: [push, pull_request]
jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - name: Set up JDK
        uses: actions/setup-java@v4
        with:
          java-version: '17'
      - name: Run Gradle + dead-code-detector
        run: ./gradlew check --no-daemon

If you do not want CI to fail, set failOnDeadCode = false.