{"id":17933571,"url":"https://github.com/apache/sling-aggregator","last_synced_at":"2025-03-24T06:33:27.857Z","repository":{"id":29891307,"uuid":"108122221","full_name":"apache/sling-aggregator","owner":"apache","description":"Apache Sling Aggregator","archived":false,"fork":false,"pushed_at":"2024-10-28T17:10:30.000Z","size":484,"stargazers_count":9,"open_issues_count":1,"forks_count":12,"subscribers_count":32,"default_branch":"master","last_synced_at":"2024-10-28T18:43:36.849Z","etag":null,"topics":["java","sling"],"latest_commit_sha":null,"homepage":"https://sling.apache.org/","language":"Groovy","has_issues":false,"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/apache.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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":"2017-10-24T12:16:11.000Z","updated_at":"2024-10-28T17:10:34.000Z","dependencies_parsed_at":"2023-10-13T11:53:09.718Z","dependency_job_id":"ccc1cd33-c38f-443b-a5ac-c219ca98e4e3","html_url":"https://github.com/apache/sling-aggregator","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apache%2Fsling-aggregator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apache%2Fsling-aggregator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apache%2Fsling-aggregator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apache%2Fsling-aggregator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/apache","download_url":"https://codeload.github.com/apache/sling-aggregator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221941443,"owners_count":16905299,"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":["java","sling"],"created_at":"2024-10-28T21:40:41.023Z","updated_at":"2024-10-28T21:40:41.580Z","avatar_url":"https://github.com/apache.png","language":"Groovy","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Apache Sling](https://sling.apache.org/res/logos/sling.png)](https://sling.apache.org)\n\n\u0026#32;[![Sonarcloud Status](https://sonarcloud.io/api/project_badges/measure?project=apache_sling-aggregator\u0026metric=alert_status)](https://sonarcloud.io/dashboard?id=apache_sling-aggregator) [![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://www.apache.org/licenses/LICENSE-2.0)\n\n# Apache Sling Aggregator\n\nThis module is part of the [Apache Sling](https://sling.apache.org) project.\n\nIt provides an [XML file](./default.xml) that lists all Sling modules, to allow for tools like `repo` to process multiple repositories at once, along\nwith some utility scripts to help manage our large number of repositories.\n\nTo update that XML file to include new Sling modules, run the [collect-sling-repos.groovy](./collect-sling-repos.groovy)\n(with `-a`, see comments in the script), check the diffs of the [default.xml](./default.xml)\nfile and push the result if ok.\n\nThe list of modules is in a self-explaining format and can also be used in your own scripts if preferred.\n\nThe [list of repositories](https://sling.apache.org/repolist.html) on our website is also generated from this data using a\n[Groovy page template](https://github.com/apache/sling-site/blob/master/src/main/jbake/templates/repolist.tpl).\n\nNote that there are related efforts at [SLING-7331](https://issues.apache.org/jira/browse/SLING-7331) and [SLING-7262](https://issues.apache.org/jira/browse/SLING-7262), we'll need to consolidate all this at some point.\n\n## Modules\n\nYou can find a list of the Apache Sling modules [here](docs/modules.md). \nThis list is generated from the script [generate-aggregator-table.groovy](https://github.com/apache/sling-aggregator/blob/master/generate-aggregator-table.groovy).\n\n### Updating Module Badges\n\nWe have a simple script to update the badges in GitHub's README.md files. To update a single repository:\n\n    ./generate-project-badges.groovy [REPO_DIR]\n    \nTo update all repositories:\n\n    repo forall -c '[SLING_DIR]/aggregator/generate-project-badges.groovy .'\n\n### Updating the .asf.yaml files\n\nWe maintain a set of [.asf.yaml](https://cwiki.apache.org/confluence/display/INFRA/Git+-+.asf.yaml+features) files, to set reasonable defaults for all Sling GitHub repositories. To make maintenance simple, we use the [scripts/update-asf-yaml.groovy](scripts/update-asf-yaml.groovy).\n\nThe script accepts a list of directories to generate or update the listing file for.\n\n```bash\n$ repo list --path-only | xargs groovy aggregator/scripts/update-asf-yaml.groovy\n$ repo forall -c 'git add .asf.yaml'\n$ repo forall -c 'git commit -m \"SLING-12345 Updating .asf.yaml\" -m \"Detailed description\"'\n```\n\nOnce you are happy with what the commits look like you can push the changes, with a delay. It is recommended to use the provided `repo-push-with-delay.sh` script\nfrom the root of the repo checkout.\n\n```bash\n$ aggregator/scripts/repo-push-with-delay.sh\n```\n\n### Updating the Aggregator List\n\nTo update the aggregator list:\n\n    groovy generate-aggregator-table.groovy [SLING_DIR]\n\n### Prerequisites\n\n 1. Use the repo tool to extract all of the repositories in the [sling aggregator](https://github.com/apache/sling-aggregator)\n 2. Ensure you have SSH based access enabled to GitHub\n 3. Ensure all repository workspaces are in a clean state\n\n## Retrieving all Sling modules\n\nThis module allows quick checkout of all Sling modules from Git. It requires\nthe local installation of the [repo](https://android.googlesource.com/tools/repo) tool.\n\n### Repo Tool Installation (all platforms)\n\n```\n$ curl https://storage.googleapis.com/git-repo-downloads/repo \u003e ~/bin/repo\n$ chmod a+x ~/bin/repo\n```\n\nSee also the detailed instructions at https://source.android.com/docs/setup/download/source-control-tools#repo.\n\n### Repo Tool Installation on Mac with [Homebrew](https://brew.sh)\n\n    brew install repo\n\n### Synchronizing all Git repositories\n\nInitialise the local repo checkout and synchronise all git repositories. The commands below must be run in the sling-aggreator git checkout.\n\n```\n$ repo init --no-clone-bundle -u https://github.com/apache/sling-aggregator.git\n$ repo sync --no-clone-bundle -j 16\n$ repo forall -c 'git checkout master'\n```\n\nThe last command ensures that all repositories are set to use the master branch. For some reason `repo` checks out\nthe latest revision but does not check out a specific branch.\n\nThe output is a flat list of all Sling modules.\n\nThe `-j 16` flag instructs repo to run 16 parallel checkout jobs and is added for performance reasons only.\n\n#### Eclipse EGit Support\n\nWhen trying to add such a repository with EGit in the local working copy is not detected due to the way that `repo` works with symbolic links. This has been reported in [Eclipse Bugzilla Issue #579042](https://bugs.eclipse.org/bugs/show_bug.cgi?id=579042).\n\n### Be careful with \"mass pushes\" to repositories\n\nASF Infra notes that pushing to many Git repositories quickly can cause heavy load on their github\npush queue.\n\nPlease use the provided script to push changes that affect multiple repositories:\n\n```bash\n$ aggregator/scripts/repo-push-with-delay.sh\n```\n\n### Updating the list of modules\n\nThat list is found in the [default.xml](./default.xml) file.\n\nIt is used to generate the [list of Git Repositories](http://sling.apache.org/repolist.html) on our website.\n\n**Install Groovy with with [ASDF](https://asdf-vm.com/)**\n\n    asdf install\n\n**Install Groovy on Mac with [Homebrew](https://brew.sh)**\n\n    brew install groovy\n\nTo update it:\n\n    groovy collect-sling-repos.groovy \u003e default.xml\n\nCheck changes with `git diff` and commit if needed.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapache%2Fsling-aggregator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fapache%2Fsling-aggregator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapache%2Fsling-aggregator/lists"}