Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix publish

  • Loading branch information...
commit d71ff672558dcf217bb5f0d3e5ddb4d4030a33db 1 parent 1ecee27
jto authored
Showing with 14 additions and 10 deletions.
  1. +14 −10 project/Build.scala
View
24 project/Build.scala
@@ -7,7 +7,9 @@ object NGPluginBuild extends Build {
val artifactory = "http://artifactory.corp.linkedin.com:8081/artifactory/"
val releases = "Artifactory releases" at artifactory + "release"
val snapshots = "Artifactory snapshots" at artifactory + "snapshot"
- val sandbox = "Artifactory sandbox" at artifactory + "ext-sandbox"
+
+ var sandbox = Resolver.url("Artifactory sandbox", url(artifactory + "ext-sandbox"))(Patterns("[organisation]/[module]/[revision]/[artifact]-[revision].[ext]"))
+
val local = Resolver.file("Play local repo", new File(Path.userHome.absolutePath + "/Documents/jto_Play20/repository/local"))(Resolver.ivyStylePatterns)
lazy val root = Project("root", file("."),
@@ -40,17 +42,19 @@ object NGPluginBuild extends Build {
organization := "com.linkedin",
scalaVersion := "2.9.1",
crossScalaVersions := Seq("2.9.1"),
- version := "0.0.1",
+ version := "1.0-SNAPSHOT",
resolvers ++= Seq(snapshots, releases, local))
lazy val publishSettings: Seq[Setting[_]] = Seq(
- publishTo <<= version { (v: String) =>
- if (v.trim.endsWith("SNAPSHOT"))
- Some(snapshots)
- else
- Some(releases)
- },
- //publishTo := Some(sandbox),
- credentials += Credentials("Artifactory Realm", "artifactory.corp.linkedin.com", "<login>", "<password>"),
+ // publishTo <<= version { (v: String) =>
+ // if (v.trim.endsWith("SNAPSHOT"))
+ // Some(snapshots)
+ // else
+ // Some(releases)
+ // },
+ publishTo := Some(sandbox),
+ credentials ++= Seq(
+ Credentials(Path.userHome / ".sbt" / ".licredentials")
+ ),
publishMavenStyle := false)
}
Please sign in to comment.
Something went wrong with that request. Please try again.