https://github.com/Netflix/atlas
Tip revision: ae06f6b49577cc89e3aa933fd90fd063405b1392 authored by brharrington on 21 November 2022, 19:48:43 UTC
flush meters when a time grouping is emitted (#1496)
flush meters when a time grouping is emitted (#1496)
Tip revision: ae06f6b
SonatypeSettings.scala
import sbt._
import sbt.Keys._
import xerial.sbt.Sonatype._
import xerial.sbt.Sonatype.SonatypeKeys._
object SonatypeSettings {
private def get(k: String): String = {
sys.env.getOrElse(s"NETFLIX_OSS_SONATYPE_$k", s"missing$k")
}
private lazy val user = get("USERNAME")
private lazy val pass = get("PASSWORD")
lazy val settings: Seq[Def.Setting[_]] = sonatypeSettings ++ Seq(
sonatypeProfileName := "com.netflix",
sonatypeProjectHosting := Some(GitHubHosting("Netflix", "atlas", "netflixoss@netflix.com")),
publishMavenStyle := true,
licenses += ("APL2" -> url("https://www.apache.org/licenses/LICENSE-2.0.txt")),
credentials += Credentials("Sonatype Nexus Repository Manager", "oss.sonatype.org", user, pass),
publishTo := sonatypePublishToBundle.value
)
}