Skip to content

Commit

Permalink
Remove checkCredentials
Browse files Browse the repository at this point in the history
  • Loading branch information
eed3si9n committed Nov 8, 2017
1 parent 40a135d commit 580327d
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 8 deletions.
1 change: 0 additions & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ description := "Standalone launcher for maven/ivy deployed projects."
configs(LaunchProguard.Proguard)

commands += Command.command("release") { state =>
"checkCredentials" ::
"clean" ::
"test" ::
"publishSigned" ::
Expand Down
6 changes: 0 additions & 6 deletions project/Release.scala
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,10 @@ object Release {
lazy val remoteID = SettingKey[String]("remote-id")
lazy val launcherRemotePath = SettingKey[String]("launcher-remote-path")
lazy val deployLauncher = TaskKey[Unit]("deploy-launcher", "Upload the launcher to its traditional location for compatibility with existing scripts.")
lazy val checkCredentials = TaskKey[Unit]("checkCredentials", "Checks to ensure credentials for this user exists.")

val PublishRepoHost = "private-repo.typesafe.com"

def settings: Seq[Setting[_]] = Seq(
// TODO - Fix release settings
checkCredentials := {
// Note - This will either issue a failure or succeed.
getCredentials(credentials.value, streams.value.log)
},
// Maven central cannot allow other repos. We're ok here because the artifacts we
// we use externally are *optional* dependencies.
pomIncludeRepository := { x => false },
Expand Down
3 changes: 2 additions & 1 deletion project/Util.scala
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@ import sbt._
import Keys._

object Util {
val publishSigned = TaskKey[Unit]("publish-signed", "Publishing all artifacts, but SIGNED using PGP.")

def noPublish(p: Project) = p.settings(noRemotePublish:_*)
def noRemotePublish: Seq[Setting[_]] =
// TODO - publishSigned
Seq(publish := ())
Seq(publish := (), publishSigned := ())
def commonSettings(nameString: String) = Seq(
name := nameString,
resolvers += Resolver.typesafeIvyRepo("releases"),
Expand Down

0 comments on commit 580327d

Please sign in to comment.