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

Commit ae808ed

Browse files
committed
Add needed configuration to prepare publishing of the api to GPR
1 parent 917401c commit ae808ed

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

build.sbt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
organization := "org.codeoverflow"
12
name := "chatoverflow-api"
23
lazy val apiVersionGenerator = TaskKey[Unit]("apiVersionGenerator")
34
lazy val requirementsGenerator = TaskKey[Unit]("requirementsGenerator")

publish.sbt

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
2+
// To publish the api create a credentials file at ~/.sbt/1.0/gpr-codeoverflow.sbt with the following content:
3+
// credentials += Credentials(
4+
// "GitHub Package Registry",
5+
// "maven.pkg.github.com",
6+
// "<GITHUB_USERNAME>",
7+
// "<GITHUB_TOKEN>"
8+
// )
9+
//
10+
// The github token requires the read:packages, repo and write:packages scopes.
11+
// Then simply run `sbt apiProject/publish`
12+
13+
14+
lazy val githubOwner = "codeoverflow-org" // Can be changed to publish to a fork, e.g. to test if the publish process works
15+
lazy val githubRepository = "chatoverflow-api"
16+
17+
publishTo := Some(s"GitHub $githubOwner Apache Maven Packages" at s"https://maven.pkg.github.com/$githubOwner/$githubRepository")
18+
publishMavenStyle := true
19+

0 commit comments

Comments
 (0)