github.com/dennwc/enry@v1.6.4-0.20180424151738-42391b8e105b/java/build.sbt (about)

     1  name := "enry-java"
     2  organization := "tech.sourced"
     3  version := "1.6.3"
     4  
     5  sonatypeProfileName := "tech.sourced"
     6  
     7  // pom settings for sonatype
     8  homepage := Some(url("https://github.com/src-d/enry"))
     9  scmInfo := Some(ScmInfo(url("https://github.com/src-d/enry"),
    10                              "git@github.com:src-d/enry.git"))
    11  developers += Developer("abeaumont",
    12                          "Alfredo Beaumont",
    13                          "alfredo@sourced.tech",
    14                          url("https://github.com/abeaumont"))
    15  licenses += ("Apache-2.0", url("http://www.apache.org/licenses/LICENSE-2.0"))
    16  pomIncludeRepository := (_ => false)
    17  
    18  crossPaths := false
    19  autoScalaLibrary := false
    20  publishMavenStyle := true
    21  exportJars := true
    22  
    23  val SONATYPE_USERNAME = scala.util.Properties.envOrElse("SONATYPE_USERNAME", "NOT_SET")
    24  val SONATYPE_PASSWORD = scala.util.Properties.envOrElse("SONATYPE_PASSWORD", "NOT_SET")
    25  credentials += Credentials(
    26    "Sonatype Nexus Repository Manager",
    27    "oss.sonatype.org",
    28    SONATYPE_USERNAME,
    29    SONATYPE_PASSWORD)
    30  
    31  val SONATYPE_PASSPHRASE = scala.util.Properties.envOrElse("SONATYPE_PASSPHRASE", "not set")
    32  
    33  useGpg := false
    34  pgpSecretRing := baseDirectory.value / "project" / ".gnupg" / "secring.gpg"
    35  pgpPublicRing := baseDirectory.value / "project" / ".gnupg" / "pubring.gpg"
    36  pgpPassphrase := Some(SONATYPE_PASSPHRASE.toArray)
    37  
    38  libraryDependencies += "com.novocode" % "junit-interface" % "0.11" % Test
    39  
    40  unmanagedBase := baseDirectory.value / "lib"
    41  unmanagedClasspath in Test += baseDirectory.value / "shared"
    42  unmanagedClasspath in Runtime += baseDirectory.value / "shared"
    43  unmanagedClasspath in Compile += baseDirectory.value / "shared"
    44  testOptions += Tests.Argument(TestFrameworks.JUnit)
    45  
    46  publishArtifact in (Compile, packageBin) := false
    47  
    48  artifact in (Compile, assembly) := {
    49    val art = (artifact in (Compile, assembly)).value
    50    art.copy(`classifier` = None)
    51  }
    52  
    53  addArtifact(artifact in (Compile, assembly), assembly)
    54  
    55  isSnapshot := version.value endsWith "SNAPSHOT"
    56  
    57  publishTo := {
    58    val nexus = "https://oss.sonatype.org/"
    59    if (isSnapshot.value)
    60      Some("snapshots" at nexus + "content/repositories/snapshots")
    61    else
    62      Some("releases" at nexus + "service/local/staging/deploy/maven2")
    63  }