content-entity-model

Scala library built from Content-entity thrift definition

License

License

GroupId

GroupId

com.gu
ArtifactId

ArtifactId

content-entity-model_2.11
Last Version

Last Version

2.0.6
Release Date

Release Date

Type

Type

jar
Description

Description

content-entity-model
Scala library built from Content-entity thrift definition
Project URL

Project URL

https://github.com/guardian/content-entity
Project Organization

Project Organization

com.gu
Source Code Management

Source Code Management

https://github.com/guardian/content-entity

Download content-entity-model_2.11

How to add to project

<!-- https://jarcasting.com/artifacts/com.gu/content-entity-model_2.11/ -->
<dependency>
    <groupId>com.gu</groupId>
    <artifactId>content-entity-model_2.11</artifactId>
    <version>2.0.6</version>
</dependency>
// https://jarcasting.com/artifacts/com.gu/content-entity-model_2.11/
implementation 'com.gu:content-entity-model_2.11:2.0.6'
// https://jarcasting.com/artifacts/com.gu/content-entity-model_2.11/
implementation ("com.gu:content-entity-model_2.11:2.0.6")
'com.gu:content-entity-model_2.11:jar:2.0.6'
<dependency org="com.gu" name="content-entity-model_2.11" rev="2.0.6">
  <artifact name="content-entity-model_2.11" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.gu', module='content-entity-model_2.11', version='2.0.6')
)
libraryDependencies += "com.gu" % "content-entity-model_2.11" % "2.0.6"
[com.gu/content-entity-model_2.11 "2.0.6"]

Dependencies

compile (3)

Group / Artifact Type Version
org.scala-lang : scala-library jar 2.11.12
org.apache.thrift : libthrift jar 0.13.0
com.twitter : scrooge-core_2.11 jar 20.4.1

test (1)

Group / Artifact Type Version
org.scalacheck : scalacheck_2.11 jar 1.14.0

Project Modules

There are no modules declared in this project.

Content Entity Model Definition

This is the Thrift definition of the Content entity model, and the published versions of this repository are built from the autogenerated code in various languages.

Maven Central

How to release

Ensure you have the following installed on your machine:

  • tsc (brew install typescript)
  • npm (not sure! there are so many ways to install it)

Ensure you have an NPM account, part of the @guardian org with a configured token

release // will release the scala / thrift projects
project typescriptClasses
releaseNpm 1.0.0 // you have to specify the version again

This will release 2 artifacts to Maven Central:

  • content-entity-model_2.13-$version.jar contains the Thrift files and Scrooge-generated Scala 2.13 classes
  • content-entity-model-thrift-$version.jar contains only the Thrift files

The package is cross-built against Scala 2.13, 2.12 and 2.11 You will need a PGP key and Sonatype credentials.

This will also release the js/typescript package on NPM.

com.gu

The Guardian

The source code of the world's leading liberal voice

Versions

Version
2.0.6
2.0.5
2.0.4
2.0.3
2.0.2
2.0.1
2.0.0
0.1.5
0.1.4
0.1.3
0.1.2
0.1.1
0.1.0