Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Regenerate the default.xml manifest form the sling-aggregator repo using  groovy collect-sling-repos.groovy > default.xml .

Boilerplate files

Ensure that at a minimum the repository contains the following files:

...

Update local Sling repo checkout

Execute the following comman in the root of the Sling repo checkout

Code Block
bash
bash
$ repo sync -j 16
$ cd ${NEW_REPO}
$ git checkout master

Boilerplate files

Most of the files can be copied from any repository. We'll use org-apache-sling-api  as an example.

Code Block
bash
bash
$ cd org-apache-sling-api
$ cp CODE_OF_CONDUCT.md

...

 CONTRIBUTING.md Jenkinsfile LICENSE .gitignore ../${NEW_REPO}

Generate a default .asf.yaml  file and update it, if applicable:

Code Block
bash
bash
$ cd aggregator
$ groovy ./scripts/update-asf-yaml.groovy ../

...

org-apache-sling

...

-commons-metrics-prometheus/

...

See

Git - .asf.yaml features for more details:

  • tags: include initially sling  and java  (or other programming language, as applicable )
  • homepage: module documentation on Sling website, or the Sling homepage if none exists
  • description: the name from the pom.xml 

Badges

The sling-aggregator/add-badges.sh script automates the creation of badges for the README. You will need a valid GitHub token for it. To add the badges for just a single repository, run.

...