GXF Service template
This is a template repository for GXF services.
Per-template configuration
- Add
gxf-developers
as admin to the contributors
- Setup branch protection with the following flags
- Require a pull request before merging
- Require approvals (1 or 2 depending on the type of repository)
- Dismiss stale pull request approvals when new commits are pushed
- Do not allow bypassing the above settings
- Add Backstage meta-data
- Change the name
gxf-service-template
to your component name in
build.gradle.kts
: imageName.set("ghcr.io/osgp/gxf-service-template:${version}")
settings.gradle.kts
: rootProject.name = "gxf-service-template"
Developer environment configuration (only once)
To retrieve GXF dependencies you need to configure a local GitHub token.
- Go to GitHub to create a classic token: Create Classic Token
- Give the token a name
- Choose an appropriate expiration date
- Add the scope
read:packages
- Press the
Generate token
button
- Copy the newly generated token
Now place the generated token in ~/.gradle/gradle.properties
github.username=<github username>
github.token=<github token>