{"id":25720109,"url":"https://github.com/gregwhitaker/gradle-multiappstartscript-example","last_synced_at":"2026-05-16T10:31:17.824Z","repository":{"id":82732535,"uuid":"169489803","full_name":"gregwhitaker/gradle-multiappstartscript-example","owner":"gregwhitaker","description":"Example of building an executable java application with Gradle that has multiple start scripts","archived":false,"fork":false,"pushed_at":"2019-02-07T02:43:31.000Z","size":71,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-25T17:41:32.486Z","etag":null,"topics":["gradle","gradle-build","gradle-docker","gradle-java","jvm-args"],"latest_commit_sha":null,"homepage":"","language":"Java","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/gregwhitaker.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-02-06T22:59:10.000Z","updated_at":"2019-02-11T00:33:57.000Z","dependencies_parsed_at":null,"dependency_job_id":"49246b39-f3f4-4485-b88d-75edd821a99e","html_url":"https://github.com/gregwhitaker/gradle-multiappstartscript-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/gregwhitaker/gradle-multiappstartscript-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gregwhitaker%2Fgradle-multiappstartscript-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gregwhitaker%2Fgradle-multiappstartscript-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gregwhitaker%2Fgradle-multiappstartscript-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gregwhitaker%2Fgradle-multiappstartscript-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gregwhitaker","download_url":"https://codeload.github.com/gregwhitaker/gradle-multiappstartscript-example/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gregwhitaker%2Fgradle-multiappstartscript-example/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33098787,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-16T04:41:52.686Z","status":"ssl_error","status_checked_at":"2026-05-16T04:41:52.009Z","response_time":115,"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":["gradle","gradle-build","gradle-docker","gradle-java","jvm-args"],"created_at":"2025-02-25T17:36:35.334Z","updated_at":"2026-05-16T10:31:17.819Z","avatar_url":"https://github.com/gregwhitaker.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gradle-multiappstartscript-example\n\nAn example of building an executable java application with Gradle that has multiple start scripts.\n\nThis example builds a simple Java application that has a start script for standalone usage and a start script for when it\nis run within a Docker container. Each start script supplies the `example.deployment` JVM argument with a different value depending \non where the application is running.\n\n## Building the Example\nRun the following command to build the example application:\n\n    ./gradlew clean buildImage\n\n## Running the Example\n\n1. Run the following command to start the example application in standalone mode:\n\n        ./gradlew run\n        \n    If successful, you will see that the jvm argument `example.deployment` has been set to `Standalone`:\n\n        Starting gradle-multiappstartscript-example...\n        -Dcommon=shared\n        -Dexample.deployment=Standalone\n        \n2. Run the following command to start the example application as a Docker container:\n\n        docker run gregnetifi/example-app\n        \n    If successful, you will see that the jvm argument `example.deployment` has been set to `Docker`:\n\n        Starting gradle-multiappstartscript-example...\n        -Dexample.deployment=Docker\n        -Dcommon=shared\n\n## License\nMIT License\n\nCopyright (c) 2019 Greg Whitaker\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgregwhitaker%2Fgradle-multiappstartscript-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgregwhitaker%2Fgradle-multiappstartscript-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgregwhitaker%2Fgradle-multiappstartscript-example/lists"}