Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Document that
license
is a required setting
We had a failed release on https://github.com/guardian/targeting-client after guardian/targeting-client#37 accidentally removed the `license` setting: https://github.com/guardian/targeting-client/actions/runs/7299896704/job/19893644176#step:5:56 ``` 2023-12-22 12:37:31.245Z error [SonatypeClient] [close] Failed - (SonatypeClient.scala:181) 2023-12-22 12:37:31.245Z error [SonatypeClient] Activity name:close, started:2023-12-22T12:36:34.296Z - (SonatypeClient.scala:469) 2023-12-22 12:37:31.246Z error [SonatypeClient] Failed: pom-staging, failureMessage:Invalid POM: /com/gu/targeting-client/client-play-json-v30_2.13/1.1.5/client-play-json-v30_2.13-1.1.5.pom: License information missing - (SonatypeClient.scala:387) ``` Specifying a license is *required* for submitting a project to Maven Central: https://central.sonatype.org/publish/requirements/#license-information Note that sbt v1.6.2 and above (thanks to sbt/librarymanagement#395) supply a `License` object that means you can define the license much more concisely: ``` licenses := Seq(License.Apache2) ``` Used successfully in guardian/etag-caching#29
- Loading branch information