{"id":19720921,"url":"https://github.com/piasy/gradlescripts","last_synced_at":"2025-10-09T08:32:44.958Z","repository":{"id":75583054,"uuid":"57601491","full_name":"Piasy/GradleScripts","owner":"Piasy","description":"My common used gradle scripts.","archived":false,"fork":false,"pushed_at":"2018-06-05T13:40:58.000Z","size":126,"stargazers_count":12,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-10-09T08:32:15.072Z","etag":null,"topics":[],"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/Piasy.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,"zenodo":null}},"created_at":"2016-05-01T14:23:51.000Z","updated_at":"2018-06-05T13:40:59.000Z","dependencies_parsed_at":"2023-06-06T23:45:40.398Z","dependency_job_id":null,"html_url":"https://github.com/Piasy/GradleScripts","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Piasy/GradleScripts","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Piasy%2FGradleScripts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Piasy%2FGradleScripts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Piasy%2FGradleScripts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Piasy%2FGradleScripts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Piasy","download_url":"https://codeload.github.com/Piasy/GradleScripts/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Piasy%2FGradleScripts/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279001051,"owners_count":26082991,"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-10-09T02:00:07.460Z","response_time":59,"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-11T23:12:56.704Z","updated_at":"2025-10-09T08:32:44.946Z","avatar_url":"https://github.com/Piasy.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GradleScripts\n\nMy common used gradle scripts.\n\n## `bintray.gradle`\n\nGradle script used for upload artifact to bintray.com.\n\n### Usage\n\n+ add this line into your module's `build.gradle`:\n\n``` gradle\napply from: \"https://raw.githubusercontent.com/Piasy/GradleScripts/master/PRJ_NAME/gradle/bintray.gradle\"\n```\n\n+ add this block into your root project `build.gradle`, edit it in your need:\n\n``` gradle\next {\n    userName = 'Piasy'\n    developer = [\n            id   : 'piasy',\n            name : 'piasy',\n            email: 'xz4215@gmail.com'\n    ]\n    license = [\n            id  : 'MIT',\n            name: 'The MIT License (MIT)',\n            url : 'http://opensource.org/licenses/MIT'\n    ]\n    groupName = 'com.github.piasy'\n    artifactName = 'dialogfragmentanywhere'\n    artifactDescription = 'Anchor your dialog fragment to anywhere! '\n    artifactLabels = ['DialogFragment', 'Position']\n    releaseVersionCode = 1\n    releaseVersionName = '1.0.0'\n\n    androidCompileSdkVersion = 26\n    androidBuildToolsVersion = '27.0.1'\n    androidSupportSdkVersion = '27.0.1'\n    minSdkVersion = 16\n    targetSdkVersion = 26\n}\n```\n\n+ create file `gradle/bintray.properties`, and add this block into it:\n\n```\nbintray.user=\u003cyour bintray username\u003e\nbintray.apikey=\u003cyour bintray api key\u003e\n```\n\n+ run `./gradlew bintrayUpload`, your artifact will be uploaded to bintray.\n\n## `simple_lib_android_bintray.gradle`\n\nBuild a library and example in the same module, publish to bintray.com.\n\n+ add this line into your module's `build.gradle`:\n\n``` gradle\napply from: \"https://raw.githubusercontent.com/Piasy/GradleScripts/master/PRJ_NAME/gradle/simple_lib_android_bintray.gradle\"\n```\n\n+ Add more ext attributes into root project `build.gradle`:\n\n``` gradle\next {\n    ... // the same as you added when import bintray.gradle\n\n    libDebugAppId = 'com.github.piasy.libxxx.example'\n}\n```\n\n+ In your module's build.gradle, you only need specify dependency.\n+ Download `simple_lib_android_bintray_release.sh`, and add execute permission for it, then run it for release.\n+ If you want to run example, just hit the `Run` button of Android Studio.\n\n## `piasy_android_simple_lib` template project\n\n+ Clone this project, or download `piasy_android_simple_lib.sh` and `piasy_android_simple_lib.tar`, put them in the same folder;\n+ Run `piasy_android_simple_lib.sh \u003cproject name\u003e \u003cdest path\u003e`, then a well configured template project will be there, shine!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpiasy%2Fgradlescripts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpiasy%2Fgradlescripts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpiasy%2Fgradlescripts/lists"}