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