This codebase is going to hold the business logic for the display of commercial components, so that it can be shared across all Guardian platforms: web and app.
- It will be included in all frontend deployments that show commercial components
- It will be included in mapi deployments
- It won't make any calls to external services
- Its only dependencies are the capi model and the facia model
- Use bintray resolver:
resolvers += "Guardian Frontend Bintray" at "https://dl.bintray.com/guardian/frontend"
- Add library as dependency:
libraryDependencies += "com.gu" %% "commercial-shared" % "<x.y.z>"
- Find branding for a given page, container, section or tag:
See tests.
Run bin/activator
Run the sbt release
task.
This will generate artefacts and make them available from bintray.
Releases follow the semantic versioning policy, which is roughly:
- A major.minor.patch format
- Bump patch number for a bug fix or dependency bump etc.
- Bump minor number for non-breaking new features
- Bump major number for breaking changes