-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Ngoc Dao
authored and
Ngoc Dao
committed
Dec 4, 2012
1 parent
230e3a2
commit a0fe642
Showing
7 changed files
with
64 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
.* | ||
project | ||
project/project | ||
project/target | ||
target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
Publish to Sonatype | ||
------------------- | ||
|
||
See: | ||
https://github.com/sbt/sbt.github.com/blob/gen-master/src/jekyll/using_sonatype.md | ||
|
||
1. Copy content of | ||
dev/build.sbt.end to the end of build.sbt | ||
dev/plugins.sbt.end to the end of project/plugins.sbt | ||
2. Run ``sbt publish``. Alternatively you can run ``sbt`` then from SBT | ||
command prompt run ``+ publish``. | ||
3. Login at https://oss.sonatype.org/ and from "Staging Repositories" select the | ||
newly published item, click "Close" then "Release". | ||
|
||
This workflow is for others to easily do ``sbt publish-local`` without PGP key. | ||
Otherwise there will be error: | ||
|
||
:: | ||
|
||
java.io.FileNotFoundException: ~/.sbt/gpg/secring.asc (No such file or directory) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
// Publish to Sonatype ------------------------------------------------------- | ||
// https://github.com/sbt/sbt.github.com/blob/gen-master/src/jekyll/using_sonatype.md | ||
|
||
publishTo <<= (version) { version: String => | ||
val nexus = "https://oss.sonatype.org/" | ||
if (version.trim.endsWith("SNAPSHOT")) Some("snapshots" at nexus + "content/repositories/snapshots") | ||
else Some("releases" at nexus + "service/local/staging/deploy/maven2") | ||
} | ||
|
||
publishMavenStyle := true | ||
|
||
publishArtifact in Test := false | ||
|
||
pomIncludeRepository := { _ => false } | ||
|
||
pomExtra := ( | ||
<url>https://github.com/ngocdaothanh/sclasner</url> | ||
<licenses> | ||
<license> | ||
<name>MIT</name> | ||
<url>https://github.com/ngocdaothanh/sclasner/blob/master/MIT-LICENSE</url> | ||
<distribution>repo</distribution> | ||
</license> | ||
</licenses> | ||
<scm> | ||
<url>git@github.com:ngocdaothanh/sclasner.git</url> | ||
<connection>scm:git:git@github.com:ngocdaothanh/sclasner.git</connection> | ||
</scm> | ||
<developers> | ||
<developer> | ||
<id>ngocdaothanh</id> | ||
<name>Ngoc Dao</name> | ||
<url>http://cntt.tv</url> | ||
</developer> | ||
</developers> | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
// http://www.cakesolutions.net/teamblogs/2012/01/28/publishing-sbt-projects-to-nexus/ | ||
|
||
resolvers += Resolver.url("sbt-plugin-releases", new URL("http://scalasbt.artifactoryonline.com/scalasbt/sbt-plugin-releases/"))(Resolver.ivyStylePatterns) | ||
|
||
addSbtPlugin("com.jsuereth" % "xsbt-gpg-plugin" % "0.6") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
addSbtPlugin("com.typesafe.sbteclipse" % "sbteclipse-plugin" % "2.1.0") |