{"id":19557826,"url":"https://github.com/jbangdev/jbang-gradle-plugin","last_synced_at":"2026-03-16T15:03:01.066Z","repository":{"id":49987670,"uuid":"300401297","full_name":"jbangdev/jbang-gradle-plugin","owner":"jbangdev","description":null,"archived":false,"fork":false,"pushed_at":"2025-07-07T21:06:05.000Z","size":140,"stargazers_count":3,"open_issues_count":6,"forks_count":4,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-08-08T01:32:37.174Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Groovy","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jbangdev.png","metadata":{"files":{"readme":"README.adoc","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","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,"zenodo":null},"funding":{"github":"commonhaus","open_collective":"commonhaus-foundation"}},"created_at":"2020-10-01T19:33:29.000Z","updated_at":"2025-07-07T21:06:09.000Z","dependencies_parsed_at":"2025-06-24T11:34:49.598Z","dependency_job_id":"b1d95d29-0b4b-4e1c-8172-0d23b37f984f","html_url":"https://github.com/jbangdev/jbang-gradle-plugin","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/jbangdev/jbang-gradle-plugin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jbangdev%2Fjbang-gradle-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jbangdev%2Fjbang-gradle-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jbangdev%2Fjbang-gradle-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jbangdev%2Fjbang-gradle-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jbangdev","download_url":"https://codeload.github.com/jbangdev/jbang-gradle-plugin/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jbangdev%2Fjbang-gradle-plugin/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270638984,"owners_count":24620640,"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","status":"online","status_checked_at":"2025-08-15T02:00:12.559Z","response_time":110,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-11-11T04:44:08.586Z","updated_at":"2026-03-16T15:03:01.059Z","avatar_url":"https://github.com/jbangdev.png","language":"Groovy","funding_links":["https://github.com/sponsors/commonhaus","https://opencollective.com/commonhaus-foundation","https://www.patreon.com/user?u=6609318"],"categories":[],"sub_categories":[],"readme":"= JBang Gradle Plugin\n:linkattrs:\n:project-owner:   jbangdev\n:project-name:    jbang-gradle-plugin\n:project-group:   dev.jbang\n:project-version: 0.4.0\n:plugin-id:       {project-group}\nifndef::env-github[]\nendif::[]\n:icons:           font\n:required-icon:   icon:check[role=\"green\"]\n:optional-icon:   icon:times[role=\"red\"]\nifdef::env-github[]\n:required-icon:   :white_check_mark:\n:optional-icon:   :x:\nendif::[]\n\nimage:https://github.com/{project-owner}/{project-name}/workflows/Build/badge.svg[\"Build Status\", link=\"https://github.com/{project-owner}/{project-name}/actions\"]\nimage:http://img.shields.io/badge/license-MIT-blue.svg[\"MIT Licensed\", link=\"http://opensource.org/licenses/MIT\"]\nimage:https://img.shields.io/maven-metadata/v?label=Plugin%20Portal\u0026metadataUrl=https://plugins.gradle.org/m2/dev/jbang/{plugin-id}.gradle.plugin/maven-metadata.xml[\"Gradle Plugin Portal, link=\"https://plugins.gradle.org/plugin/{plugin-id}\"]\nimage:https://img.shields.io/badge/donations-Patreon-orange.svg[link=\"https://www.patreon.com/user?u=6609318\"]\n\n---\n\nThe JBang Gradle plugin allows JBang scripts to be executed during a Gradle build.\n\nThe plugin attempts to use an existing JBang installation. If no JBang installation is found, the plugin will install\nJBang by downloading and caching the latest version binaries (in your local Gradle cache directory) for subsequent runs.\n\n== Usage\n\nThis plugin adds a new task of type `dev.jbang.gradle.tasks.JBangTask` named `jbang` that accepts the\nfollowing properties\n\n[options=\"header\", cols=\"4*\u003c,^\"]\n|===\n| Property   | Type         | Option           | Default                         | Required\n| script     | String       | jbang-script     |                                 | {required-icon}\n| jbangArgs  | List\u003cString\u003e | jbang-jbang-args | [ ]                             | {optional-icon}\n| args       | List\u003cString\u003e | jbang-args       | [ ]                             | {optional-icon}\n| trusts     | List\u003cString\u003e | jbang-trusts     | [ ]                             | {optional-icon}\n| version    | String       | jbang-version    | latest                          | {optional-icon}\n| installDir | Directory    |                  | $gradleUserHomeDir/caches/jbang | {optional-icon}\n|===\n\n[horizontal]\nscript:: The script to be executed by JBang.\nargs:: The arguments to be used in the JBang script (if any)\ntrusts:: If the script resides in a remote location, this parameter specifies what URLs should be trusted. See\nlink:https://github.com/jbangdev/jbang#urls-from-trusted-sources[URLs from Trusted Sources] for more information\nversion:: If your environment lacks the JBang binaries in the PATH, you can specify the JBang version to be installed.\nThe default value is set to `latest`, in which case the plugin will always check if the latest jbang release is installed\nand proceed to download it if that's not the case.\n\nExample:\n[source]\n----\n$ gradle jbang --jbang-script hello.jsh --jbang-args=\"Hello world\"\n----\n\n== Installation\n\nOption #1\n[source,groovy]\n[subs=\"attributes\"]\n----\nbuildscript {\n    repositories {\n        gradlePluginPortal()\n    }\n    dependencies {\n        classpath '{project-group}:{project-name}:{project-version}'\n    }\n}\napply plugin: '{project-group}'\n----\n\nOption #2\n[source,groovy]\n[subs=\"attributes\"]\n----\nplugins {\n    id '{project-group}' version '{project-version}'\n}\n----\n\n== Building\n\nIf you want to build your own release then execute the following\n\n[source]\n----\n$ ./gradlew -Prelease=true publishToMavenLocal\n----\n\nThis will push all artifacts to your local Maven repository from which you may consume them.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjbangdev%2Fjbang-gradle-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjbangdev%2Fjbang-gradle-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjbangdev%2Fjbang-gradle-plugin/lists"}