Skip to content

Commit

Permalink
Added resolution test
Browse files Browse the repository at this point in the history
  • Loading branch information
djspiewak committed Dec 8, 2019
1 parent eb4ebab commit e58f75d
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
15 changes: 14 additions & 1 deletion src/sbt-test/sbtghpackages/publish/build.sbt
Original file line number Diff line number Diff line change
@@ -1,10 +1,23 @@
import scala.sys.process._

name := "sbt-github-packages-tests-publish"
val ArtifactId = "sbt-github-packages-tests-publish"

ThisBuild / organization := "com.codecommit"
ThisBuild / version := s"${sys.props("plugin.version")}"

ThisBuild / githubOwner := "djspiewak"
ThisBuild / githubRepository := "sbt-github-packages"
ThisBuild / githubTokenSource := Some(TokenSource.Environment("GITHUB_TOKEN"))

lazy val root = project.in(file("."))

lazy val publisher = project
.in(file("publisher"))
.settings(name := ArtifactId)

lazy val resolver = project
.in(file("resolver"))
.settings(
resolvers += Resolver.githubPackagesRepo(githubOwner.value, githubRepository.value),

libraryDependencies += "com.codecommit" %% ArtifactId % version.value)
3 changes: 2 additions & 1 deletion src/sbt-test/sbtghpackages/publish/test
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
> publish
> publisher/publish
> resolver/update

0 comments on commit e58f75d

Please sign in to comment.