tags-thrift-schema
This repository contains the Thrift schema required for interaction with guardian/tagmanager.
Downloading
To download you should be able to simply add a dependency similar to the following (with your desired version):
"com.gu" %% "tags-thrift-schema" % "0.6.3"
Testing Locally
If you need to try out your changes with consumer applications (e.g. tagmanager
) then...
- Run
+publishLocal
in sbt (note the+
makes it cross-compile, e.g.tagmanager
consumes the 2.11 version) - Update the version in the consumer application(s) (e.g. https://github.com/guardian/tagmanager/blob/e47465cbbcdf9e3d3312c5c779eb52fe0676ce4a/build.sbt#L29) using the
-SNAPSHOT
version.
Publishing a new version
- Follow the instructions for publishing a new version to Maven Central via Sonatype. This will include (if not already completed for another project):
- Creating and publishing a PGP key
- Setting up an account on Sonatype and having it added to the
com.gu
group - Storing your Sonatype credentials in your global sbt configuration
- Ensure you're on the branch which holds the changes you're ready to release and that these changes have been approved & tested with the application(s) which use this library (using the
-SNAPSHOT
version). - Ensure the project still builds with
sbt compile
- Run
sbt release
. You will be prompted for a 'release version' – which you should set following semantic versioning as either a patch, minor or major version bump. You will also be prompted for a 'next version' – which should be a patch version ahead of your release version and end-SNAPSHOT
.version.sbt
will be updated to reflect this 'next version'.