{"id":19656326,"url":"https://github.com/daggerok/spotbugs-gradle-plugin-multi-project-example","last_synced_at":"2025-09-05T21:34:27.918Z","repository":{"id":151042030,"uuid":"164267003","full_name":"daggerok/spotbugs-gradle-plugin-multi-project-example","owner":"daggerok","description":"SpotBugs Gradle plugin with HTML report in multi-project build","archived":false,"fork":false,"pushed_at":"2019-03-18T22:09:28.000Z","size":59,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-10T00:42:24.554Z","etag":null,"topics":["multi-project","multi-project-build","multiproject","multiprojects","spotbugs","spotbugs-gradle-plugin","spotbugs-plugin"],"latest_commit_sha":null,"homepage":"https://github.com/spotbugs/spotbugs-gradle-plugin/issues/32","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/daggerok.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-01-06T01:56:52.000Z","updated_at":"2022-05-03T08:08:04.000Z","dependencies_parsed_at":null,"dependency_job_id":"d3e61bdd-52b7-4999-a9de-fd5d881026f5","html_url":"https://github.com/daggerok/spotbugs-gradle-plugin-multi-project-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daggerok%2Fspotbugs-gradle-plugin-multi-project-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daggerok%2Fspotbugs-gradle-plugin-multi-project-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daggerok%2Fspotbugs-gradle-plugin-multi-project-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daggerok%2Fspotbugs-gradle-plugin-multi-project-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/daggerok","download_url":"https://codeload.github.com/daggerok/spotbugs-gradle-plugin-multi-project-example/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240964675,"owners_count":19885788,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["multi-project","multi-project-build","multiproject","multiprojects","spotbugs","spotbugs-gradle-plugin","spotbugs-plugin"],"created_at":"2024-11-11T15:27:28.456Z","updated_at":"2025-02-27T02:19:50.694Z","avatar_url":"https://github.com/daggerok.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# spotbugs gradle multi-project build [![Build Status](https://travis-ci.org/daggerok/spotbugs-gradle-plugin-multi-project-example.svg?branch=master)](https://travis-ci.org/daggerok/spotbugs-gradle-plugin-multi-project-example)\nExample of usage `spotbugs-gradle-plugin` (findbugs replacement) with HTML reports enabled in multi module Gradle project\n\nconfig:\n\n`build.gradle` file:\n\n```gradle\nbuildscript {\n  ext {\n    spotbugsVersion = '1.6.8'\n    toolVersion = '3.1.10'\n  }\n}\n\nplugins { \n  id 'com.github.spotbugs' version '1.6.8' apply false\n}\n\napply from: \"$rootProject.projectDir/gradle/spotbugs.gradle\"\n\ndefaultTasks 'clean', 'check'\n```\n\n`gradle/spotbugs.gradle` file:\n\n```gradle\nbuildscript {\n  repositories {\n    maven { url \"https://plugins.gradle.org/m2/\" }\n  }\n  dependencies {\n    classpath \"gradle.plugin.com.github.spotbugs:spotbugs-gradle-plugin:$spotbugsVersion\"\n  }\n}\n\nsubprojects {\n  apply plugin: \"com.github.spotbugs\"\n\n  repositories {\n    maven { url \"https://plugins.gradle.org/m2/\" }\n  }\n\n  spotbugs {\n    toolVersion = project.toolVersion\n    effort = \"max\"\n    ignoreFailures = project.findProperty('ignoreBugs') != null\n  }\n\n  tasks.withType(com.github.spotbugs.SpotBugsTask) {\n    reports {\n      html {\n        enabled = true\n      }\n      xml {\n        enabled = false\n      }\n    }\n  }\n}\n```\n\nversions:\n\n- gradle: 5.1\n- spotbugs-gradle-plugin: 1.6.8\n- tool: 3.1.10\n\nusage:\n\n```bash\n./gradlew               # to be failed\n./gradlew -PignoreBugs  # do not failed on found bugs\n```\n\nlinks:\n\n- [spotbugs gradle plugin html report in multi-project issue](https://github.com/spotbugs/spotbugs-gradle-plugin/issues/32)\n- [not generates HTML report when lombok gradle plugin enabled issue](https://github.com/spotbugs/spotbugs-gradle-plugin/issues/94)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaggerok%2Fspotbugs-gradle-plugin-multi-project-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdaggerok%2Fspotbugs-gradle-plugin-multi-project-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaggerok%2Fspotbugs-gradle-plugin-multi-project-example/lists"}