Skip to content
This repository was archived by the owner on Aug 18, 2020. It is now read-only.

Prepare to publish Api to GitHub Package Registry on prealpha 3 release #130

Closed
hlxid opened this issue Sep 16, 2019 · 3 comments
Closed
Assignees
Labels
build Requires changes to the build system enhancement New feature or request
Milestone

Comments

@hlxid
Copy link
Member

hlxid commented Sep 16, 2019

Description

As mentioned in #96 (comment) and discussed on discord we want to publish the Api to Maven Central as of prealpha 3.

For preparation we should setup everything that is needed for that before the release:

  1. We need to request access for the org.codeoverflow groupId at Sonatype (official guide).
  2. We need to setup sbt to be able to publish to Maven Central.
    xerial/sbt-sonatype should do most of that for us.

I want to automate release related publishing tasks like this or the creation and uploading of deployments to releases for alpha 1 (I will create a issue for that at some point), but for prealpha 3 it is going to happen manually if all are okay with that.

@hlxid hlxid added enhancement New feature or request build Requires changes to the build system labels Sep 16, 2019
@hlxid hlxid added this to the pre-alpha 3 milestone Sep 16, 2019
@hlxid hlxid self-assigned this Sep 16, 2019
@sebinside
Copy link
Member

Sounds good, let's do this when prealpha 3 is feature-complete. Following the guide, two business days should not be the problem :)

@hlxid
Copy link
Member Author

hlxid commented Oct 5, 2019

Internally we've decided to use Github Package Registry instead of Maven Central, but GPR currently does have its issues with sbt, hopefully these get resolved soon.

@hlxid
Copy link
Member Author

hlxid commented Oct 23, 2019

codeoverflow-org/chatoverflow-api@ae808ed has implemented everything that is needed.
Everyone with a github account that is in the codeoverflow org can now publish the api.

Initial setup: create a file at ~/.sbt/1.0/gpr-codeoverflow.sbt with the following content:

credentials += Credentials(
  "GitHub Package Registry",
  "maven.pkg.github.com",
  "<GITHUB_USERNAME>",
  "<GITHUB_TOKEN>"
)

And to publish simply run sbt apiProject/publish.
When published it looks something like this.

SNAPSHOTs are currently still not supported however, but they aren't that important for now.

@hlxid hlxid closed this as completed Oct 23, 2019
@hlxid hlxid changed the title Prepare to publish Api to Maven Central on prealpha 3 release Prepare to publish Api to GitHub Package Registry on prealpha 3 release Nov 26, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
build Requires changes to the build system enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants