Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f0dab5c

Browse files
committed
added credentials
1 parent ad6f8b8 commit f0dab5c

File tree

2 files changed

+47
-1
lines changed

2 files changed

+47
-1
lines changed

build.sbt

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
name := "java-sizeof"
23

34
organization:="com.madhu"
@@ -6,6 +7,50 @@ crossScalaVersions := Seq("2.10.0","2.11.0")
67

78
libraryDependencies += "org.scalatest" %% "scalatest" % "2.2.2" % "test"
89

10+
pgpSecretRing := file("/home/madhu/scalapgpkeys/phatak-dev-privatekey.asc")
11+
12+
pgpPublicRing := file("/home/madhu/scalapgpkeys/phatak-dev-publickey.asc")
13+
14+
publishMavenStyle := true
15+
16+
publishArtifact in Test := false
17+
18+
19+
publishTo <<= version { (v: String) =>
20+
val nexus = "https://oss.sonatype.org/"
21+
if (v.trim.endsWith("SNAPSHOT"))
22+
Some("snapshots" at nexus + "content/repositories/snapshots")
23+
else
24+
Some("releases" at nexus + "service/local/staging/deploy/maven2")
25+
}
26+
27+
pomExtra := (
28+
<url>https://github.com/phatak-dev/java-sizeof</url>
29+
<licenses>
30+
<license>
31+
<name>Apache 2.0</name>
32+
<url>https://github.com/phatak-dev/java-sizeof/blob/master/LICENSE.txt</url>
33+
<distribution>repo</distribution>
34+
</license>
35+
</licenses>
36+
<scm>
37+
<url>git@github.com:phatak-dev/java-sizeof.git</url>
38+
<connection>scm:git:git@github.com:phatak-dev/java-sizeof.git</connection>
39+
</scm>
40+
<developers>
41+
<developer>
42+
<id>phatak-dev</id>
43+
<name>Madhukara phatak</name>
44+
<url>http://www.madhukaraphatak.com</url>
45+
</developer>
46+
</developers>)
47+
48+
49+
credentials += Credentials(Path.userHome / ".sbt/0.13/" / ".credentials")
50+
51+
52+
53+
954

1055

1156

project/plugins.sbt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
//addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "0.8.5")
33

44
// For making releases
5-
//addSbtPlugin("com.github.gseitz" % "sbt-release" % "0.6")
5+
addSbtPlugin("com.jsuereth" % "sbt-pgp" % "1.0.0")
6+
67

78
// For signing releases
89
//addSbtPlugin("com.typesafe.sbt" % "sbt-pgp" % "0.7")

0 commit comments

Comments
 (0)