{"id":13438782,"url":"https://github.com/gogradle/gogradle","last_synced_at":"2026-01-14T14:55:33.670Z","repository":{"id":49716471,"uuid":"74929761","full_name":"gogradle/gogradle","owner":"gogradle","description":"A Gradle Plugin Providing Full Support for Go","archived":true,"fork":false,"pushed_at":"2021-10-11T18:44:58.000Z","size":10780,"stargazers_count":776,"open_issues_count":95,"forks_count":90,"subscribers_count":31,"default_branch":"master","last_synced_at":"2025-10-02T18:41:58.020Z","etag":null,"topics":["build","build-tool","coverage","coverage-report","go","golang","gradle","gradle-plugin","ide","test"],"latest_commit_sha":null,"homepage":"","language":"Groovy","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gogradle.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-11-28T02:30:19.000Z","updated_at":"2025-09-13T03:32:46.000Z","dependencies_parsed_at":"2022-09-13T08:12:17.631Z","dependency_job_id":null,"html_url":"https://github.com/gogradle/gogradle","commit_stats":null,"previous_names":["blindpirate/gogradle"],"tags_count":38,"template":false,"template_full_name":null,"purl":"pkg:github/gogradle/gogradle","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gogradle%2Fgogradle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gogradle%2Fgogradle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gogradle%2Fgogradle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gogradle%2Fgogradle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gogradle","download_url":"https://codeload.github.com/gogradle/gogradle/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gogradle%2Fgogradle/sbom","scorecard":{"id":433957,"data":{"date":"2025-08-11","repo":{"name":"github.com/gogradle/gogradle","commit":"7706d4e2d18e7c70075930cd5ac3007e09e0ed35"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.1,"checks":[{"name":"Maintained","score":0,"reason":"project is archived","details":["Warn: Repository is archived."],"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Code-Review","score":1,"reason":"Found 3/30 approved changesets -- score normalized to 1","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/gogradle.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Binary-Artifacts","score":9,"reason":"binaries present in source code","details":["Warn: binary detected: gradle/wrapper/gradle-wrapper.jar:1"],"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/gogradle.yml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/gogradle/gogradle/gogradle.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/gogradle.yml:23: update your workflow using https://app.stepsecurity.io/secureworkflow/gogradle/gogradle/gogradle.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/gogradle.yml:27: update your workflow using https://app.stepsecurity.io/secureworkflow/gogradle/gogradle/gogradle.yml/master?enable=pin","Info:   0 out of   3 GitHub-owned GitHubAction dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Signed-Releases","score":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact v0.11.4 not signed: https://api.github.com/repos/gogradle/gogradle/releases/17450873","Warn: release artifact v0.11.3 not signed: https://api.github.com/repos/gogradle/gogradle/releases/15603950","Warn: release artifact v0.11.2 not signed: https://api.github.com/repos/gogradle/gogradle/releases/15373596","Warn: release artifact v0.11.1 not signed: https://api.github.com/repos/gogradle/gogradle/releases/15100595","Warn: release artifact v0.11 not signed: https://api.github.com/repos/gogradle/gogradle/releases/15075179","Warn: release artifact v0.11.4 does not have provenance: https://api.github.com/repos/gogradle/gogradle/releases/17450873","Warn: release artifact v0.11.3 does not have provenance: https://api.github.com/repos/gogradle/gogradle/releases/15603950","Warn: release artifact v0.11.2 does not have provenance: https://api.github.com/repos/gogradle/gogradle/releases/15373596","Warn: release artifact v0.11.1 does not have provenance: https://api.github.com/repos/gogradle/gogradle/releases/15100595","Warn: release artifact v0.11 does not have provenance: https://api.github.com/repos/gogradle/gogradle/releases/15075179"],"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'","Warn: branch protection not enabled for branch 'release'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 9 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-19T04:08:17.911Z","repository_id":49716471,"created_at":"2025-08-19T04:08:17.911Z","updated_at":"2025-08-19T04:08:17.911Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28424017,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T13:30:50.153Z","status":"ssl_error","status_checked_at":"2026-01-14T13:29:08.907Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["build","build-tool","coverage","coverage-report","go","golang","gradle","gradle-plugin","ide","test"],"created_at":"2024-07-31T03:01:08.408Z","updated_at":"2026-01-14T14:55:33.650Z","avatar_url":"https://github.com/gogradle.png","language":"Groovy","funding_links":[],"categories":["HarmonyOS","Groovy","Repositories"],"sub_categories":["Windows Manager"],"readme":"# Gogradle - a Full-featured Build Tool for Golang\n\n\u003cimg align=\"right\" src=\"https://raw.githubusercontent.com/blindpirate/gogradle/master/docs/images/go-mini.png\"\u003e\n\n\n[中文文档](./README_CN.md)\n\n![gogradle](https://github.com/gogradle/gogradle/workflows/gogradle/badge.svg)\n[![Coverage Status](https://coveralls.io/repos/github/blindpirate/gogradle/badge.svg?branch=master)](https://coveralls.io/github/blindpirate/gogradle?branch=master)\n[![Java 8+](https://img.shields.io/badge/java-8+-4c7e9f.svg)](http://java.oracle.com)\n[![Apache License 2](https://img.shields.io/badge/license-APL2-blue.svg)](http://www.apache.org/licenses/LICENSE-2.0.txt)\n\nGogradle is a gradle plugin which provides support for building golang.\n\n\u003e 2017-06-23 Gogradle is awarded **Gradle Plugin of the Year 2017**. See [the talk on Gradle Summit 2017](https://www.youtube.com/watch?v=Mvf3gY1MopE\u0026t=341s).\n\u003e\n\u003e 2017-12-17 Now Gogradle can build 817 of [Github's top 1000 Go repositories](https://github.com/search?l=\u0026o=desc\u0026q=stars%3A%3E1+language%3AGo\u0026ref=advsearch\u0026s=stars\u0026type=Repositories\u0026utf8=%E2%9C%93) **WITHOUT** any extra configuration!\n\u003e\n\u003e 2017-03-20 Now Gogradle can generate HTML reports for test and coverage! \n\n## What is Gogradle?\n\nGogradle is a [Gradle](https://gradle.org) plugin which provide modern build support for [Golang](https://golang.org/). Gogradle is deeply inspired by [glide](https://github.com/Masterminds/glide)(I need to pay respect for it). You can simply think Gogradle as `glide`+`make`.\n\n## Why Gogradle?\n\n- `make` has a very steep learning curve, thus many people (like me) aren't good at it; Gradle use a DSL with similar syntax to Java to describe a build, which is easier for me.\n- `Makefile` and `Shell` have cross-platform issues, especially on Windows. Thanks to Gradle and JVM, Gogradle provide an excellent cross-platform support and can leverage the whole Java ecosystem\n- There're many mature [plugins](https://plugins.gradle.org) in Gradle ecosystem, and it's easy for yourself to implement a plugin to reuse your build code\n- Gogradle supports project-scoped `GOPATH`, if you prefer\n- Gogradle supports existence and switch of multi-version of Go\n- There's plenty of [package management tools](https://github.com/blindpirate/report-of-go-package-management-tool) in Go community which are not compatible with each other.\n  - Gogradle provides a [migration command](./docs/getting-started-cn.md#Start) which enables you to migrate from other tools.\n  - Gogradle is compatible with `glide/glock/godep/gom/gopm/govendor/gvt/gbvendor/trash/gpm`. When retrieving a dependency package's transitive dependencies, it can recognized lock files of these tools.\n- Gogradle has a long-term and active development support\n\nGogradle implements most features of `glide` and adds some extra features:\n\n- Test and coverage reports generation\n- Multi-version management of Go\n- IDE support\n- Declaration and substitution of repositories, which can be used as mirror repositories\n\nIf you puzzled over these issues, or you were a Java developer and familiar with Gradle, Gogradle is your choice!  \n\nGogradle's objective is not replacing other tools, it only provides an option for developers.\n\nGogradle is NOT a toy. 52% of its code are tests to assure its quality. We also tested [Github's top 1000 Go repositories](https://github.com/search?l=\u0026o=desc\u0026q=stars%3A%3E1+language%3AGo\u0026ref=advsearch\u0026s=stars\u0026type=Repositories\u0026utf8=%E2%9C%93) as real world scenarios.\n\n## Feature\n\n- No need to preinstall anything but `JDK 8+` (including golang itself)\n  - If you're using JetBrains IDE, then JDK is not required\n- Supports Go 1.5+ and allow their existence at the same time\n- Perfect cross-platform support (as long as `Java` can be run, all tests have passed on OS X 10.11/Ubuntu 12.04/Windows 7)\n- Project-scope build, needless to set `GOPATH`\n- Full-featured package management\n  - Needless to install dependency packages manually, all you need to do is specifying the version\n  - VCS supported: Git/Mercurial\n  - Transitive dependency management\n  - Resolves package conflict automatically\n  - Supports dependency lock\n  - Supports importing dependencies managed by various external tools such as glide/glock/godep/gom/gopm/govendor/gvt/gbvendor/trash/gpm (Based on [this report](https://github.com/blindpirate/report-of-go-package-management-tool))\n  - Supports [submodule](https://git-scm.com/book/en/v2/Git-Tools-Submodules)\n  - Supports [SemVersion](http://semver.org/)\n  - Supports [vendor](https://docs.google.com/document/d/1Bz5-UB7g2uPBdOx-rw5t9MxJwkfpx90cqG9AFL0JAYo)\n  - Supports flattening dependencies (Inspired by [glide](https://github.com/Masterminds/glide))\n  - Supports renaming local packages\n  - Supports private repository\n  - Support automatic repository url substitution\n  - `build`/`test` dependencies are managed separately\n  - Supports dependency tree visualization\n  - Supports sub packages\n- Supports build/test/single-test/wildcard-test/cross-compile\n- Modern production-grade support for automatic build, simple to define customized tasks\n- Native syntax of gradle\n- Additional features for users in mainland China who are behind the [GFW](https://en.wikipedia.org/wiki/Great_Firewall)\n- Supports shadowsocks proxy \n- IDE support\n- Test and coverage report generation\n- Incremental build \n\n## How Gogradle works\n\nGogradle's work is based on [vendor](https://docs.google.com/document/d/1Bz5-UB7g2uPBdOx-rw5t9MxJwkfpx90cqG9AFL0JAYo) mechanism. You declare your build dependencies and build logic with Gradle DSL in `build.gradle`, and Gogradle will resolve all dependencies and potential package conflict, then install them into `vendor` directory and execute a build. In this course, dependency packages will be flattened to avoid [issues](https://github.com/blindpirate/golang-broken-vendor). Later, you can lock your resolved dependencies to ensure a reproducible build. It's up to you whether to check in `vendor` directory or not.\n\nSee [here](https://github.com/gogradle/samples) for examples.\n\n\n## Table of Content\n\n- [Getting Started](./docs/getting-started.md)\n- [Dependency Management](./docs/dependency-management.md)\n- [Tasks in Gogradle](./docs/tasks.md)\n- [Repository Management](./docs/repository-management.md)\n- [Set Proxy For Build](./docs/proxy.md)\n- [IDE Integration](./docs/ide.md)\n\n## Snapshot\n\nTest report\n\n![1](https://raw.githubusercontent.com/blindpirate/gogradle/master/docs/images/index.png)\n![1](https://raw.githubusercontent.com/blindpirate/gogradle/master/docs/images/classes.png)\n![1](https://raw.githubusercontent.com/blindpirate/gogradle/master/docs/images/packages.png)\n![1](https://raw.githubusercontent.com/blindpirate/gogradle/master/docs/images/failedtest.png)\n\nCoverage report\n\n![1](https://raw.githubusercontent.com/blindpirate/gogradle/master/docs/images/coverage.png)\n![1](https://raw.githubusercontent.com/blindpirate/gogradle/master/docs/images/coveragepackage.png)\n\n## Contributing\n\nIf you like Gogradle, star it please.\n\nPlease feel free to submit an [issue](https://github.com/blindpirate/gogradle/issues/new).\n\nFork and [PR](https://github.com/blindpirate/gogradle/pulls) are always welcomed.\n\n## Contributor Guide\n\nGogradle is developed in IntelliJ IDEA. You can run `./gradlew idea` and open the generated `.ipr` files in IDEA.\n\nPlease make sure all checks passed via `./gradlew check`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgogradle%2Fgogradle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgogradle%2Fgogradle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgogradle%2Fgogradle/lists"}