{"id":21061732,"url":"https://github.com/big-guy/plugin-constraints","last_synced_at":"2025-07-13T20:34:31.192Z","repository":{"id":73021016,"uuid":"390415294","full_name":"big-guy/plugin-constraints","owner":"big-guy","description":null,"archived":false,"fork":false,"pushed_at":"2021-07-28T16:41:19.000Z","size":64,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-14T01:12:41.128Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/big-guy.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":"2021-07-28T16:11:24.000Z","updated_at":"2021-07-28T16:41:22.000Z","dependencies_parsed_at":null,"dependency_job_id":"c2223648-a84d-4666-bbfd-556f92df9a56","html_url":"https://github.com/big-guy/plugin-constraints","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/big-guy/plugin-constraints","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/big-guy%2Fplugin-constraints","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/big-guy%2Fplugin-constraints/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/big-guy%2Fplugin-constraints/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/big-guy%2Fplugin-constraints/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/big-guy","download_url":"https://codeload.github.com/big-guy/plugin-constraints/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/big-guy%2Fplugin-constraints/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265200100,"owners_count":23726771,"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":[],"created_at":"2024-11-19T17:27:13.519Z","updated_at":"2025-07-13T20:34:31.146Z","avatar_url":"https://github.com/big-guy.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Example plugin with dependency constraints\n\nThis template is based on `gradle init`, but adds contraints against other plugins that may be applied.\n\nThe plugin build is defined in `build-logic`. In [`build-logic/build.gradle`](build-logic/build.gradle), we define an implementation constraint on the Spotbugs plugin. We reject any 4.6.x version of the plugin. \n\nIn [`app/build.gradle`](app/build.gradle), we try to apply the Spotbugs plugin version 4.6.2. You can see the classpath for the `app` project by running `app:buildEnvironment`. \n\nThe [build fails](https://scans.gradle.com/s/ccm2622rhlyvk/failure#1) because a plugin cannot be found that passes the constraints.\nhttps://scans.gradle.com/s/ccm2622rhlyvk/build-dependencies?focusedDependency=WzEsMCwxLFsxLDAsWzFdXV0\u0026focusedDependencyView=dependencies_or_failure\u0026toggled=W1sxXSxbMSwwXV0\n\nThese constraints won't work with `buildSrc` currently because of the way we resolve dependencies for a `buildSrc` build. The failure message could be made better by focusing more on the build script classpath aspect of the failure. The failure is very similar to failures you would see with just project dependencies.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbig-guy%2Fplugin-constraints","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbig-guy%2Fplugin-constraints","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbig-guy%2Fplugin-constraints/lists"}