Skip to content

Commit

Permalink
A fork of Kamon for boomtown
Browse files Browse the repository at this point in the history
This version was forked so that we could release a version that allows the passing in of a config.
It is based upon the PR kamon-io#403 that we believe will get merge back
  • Loading branch information
ryanstradling committed Oct 28, 2016
1 parent f716435 commit 0ce8a04
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
5 changes: 3 additions & 2 deletions project/Publish.scala
Expand Up @@ -15,6 +15,7 @@

import sbt._
import sbt.Keys._
import scala.util.Properties

object Publish {

Expand All @@ -27,8 +28,8 @@ object Publish {
publishMavenStyle := true,
publishArtifact in Test := false
)

def kamonRepo = Some(Resolver.sftp("Kamon Snapshots Repository", "snapshots.kamon.io", "/var/local/snapshots-repo"))
val baseUrl: String = "http://artifactory.ad.boomtownroi.com/artifactory"
def kamonRepo = Some("Artifactory Realm" at s"$baseUrl/libs-release-local")

def kamonPomExtra = {
<url>http://kamon.io</url>
Expand Down
7 changes: 4 additions & 3 deletions project/Release.scala
Expand Up @@ -45,12 +45,13 @@ object Release {
sonatypeSettings ++
Seq(
// sbt-sonatype overrides publishTo. So we need to restore kamon repo declaration for snapshots
publishTo := { if (isSnapshot.value) Publish.kamonRepo else publishTo.value }
publishTo := { if (isSnapshot.value) Publish.kamonRepo else Publish.kamonRepo },
credentials += Credentials(Path.userHome / ".ivy2" / ".credentials")
)


def kamonSonatypeCredentials =
Credentials.toDirect(Credentials(Path.userHome / ".ivy2" / "kamon-credentials-sonatype.properties"))
Credentials(Path.userHome / ".ivy2" / ".credentials")

/**
* Hijacked from [[sbtrelease.ReleaseStateTransformations.publishArtifacts]]
Expand All @@ -77,4 +78,4 @@ object Release {
), st)
})

}
}
2 changes: 1 addition & 1 deletion version.sbt
@@ -1 +1 @@
version in ThisBuild := "0.6.3"
version in ThisBuild := "0.6.3-bt"

0 comments on commit 0ce8a04

Please sign in to comment.