Skip to content
This repository has been archived by the owner on Nov 28, 2017. It is now read-only.

Commit

Permalink
publish snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
casualjim committed Sep 21, 2012
1 parent e983088 commit 7af15ac
Show file tree
Hide file tree
Showing 5 changed files with 606 additions and 13 deletions.
86 changes: 78 additions & 8 deletions .gitignore
@@ -1,8 +1,78 @@
/target
/.scala_dependencies
/.classpath
/.settings
/.project
/lib_managed
/bin
/mavenrepo
## generic files to ignore
*~
*.lock
*.DS_Store
*.swp
*.out

# rails specific
*.sqlite3
config/database.yml
log/*
tmp/*

# java specific
*.class

# python specific
*.pyc

# xcode/iphone specific
build/*
*.pbxuser
*.mode2v3
*.mode1v3
*.perspective
*.perspectivev3
*~.nib

# akka specific
logs/*

# sbt specific
project/boot
lib_managed/*
project/build/target
project/build/lib_managed
project/build/src_managed
project/plugins/lib_managed
project/plugins/target
project/plugins/src_managed
project/plugins/project

core/lib_managed
core/target
pubsub/lib_managed
pubsub/target

# eclipse specific
.metadata
jrebel.lic
.idea/workspace.xml
.idea/bashsupport_project.xml

*.iml
*.ipr
*.iws

target
.idea
.settings
.classpath
.project
.ensime*
*.sublime-*
src/main/webapp/js/app.js
src/main/javascript/**/*.js
src/main/javascript/*.js
src/main/javascript/**/*.jsm
src/main/javascript/*.jsm
.cache
src/main/webapp/scripts
src/main/webapp/css
src/main/webapp/img
src/main/webapp/build.txt
src/main/webapp/index.html
node_modules
src/main/webapp/app.html
.#*
82 changes: 82 additions & 0 deletions build.sbt
@@ -0,0 +1,82 @@
import scala.xml.Group

organization := "org.json4s"

name := "scalabeans"

version := "0.3.0-SNAPSHOT"

scalaVersion := "2.9.2"

javacOptions ++= Seq("-Xlint:unchecked", "-Xlint:deprecation")

scalacOptions ++= Seq("-optimize", "-unchecked", "-deprecation", "-Xcheckinit", "-encoding", "utf8")

homepage := Some(url("https://github.com/scalastuff/scalabeans"))

startYear := Some(2010)

licenses := Seq(("ASL", url("http://www.apache.org/licenses/LICENSE-2.0.txt")))

pomExtra <<= (pomExtra, name, description) {(pom, name, desc) => pom ++ Group(
<scm>
<connection>scm:git:git@github.com:scalastuff/scalabeans.git</connection>
<url>https://github.com/scalastuff/scalabeans</url>
</scm>
<developers>
<developer>
<id>rditerwich</id>
<name>Ruud Diterwich</name>
</developer>
<developer>
<id>advorkovyy</id>
<name>Alexander Dvorkovyy</name>
</developer>
</developers>
<contributors>
<contributor>
<name>Sergey Nazarov</name>
</contributor>
</contributors>
)}

packageOptions <+= (name, version, organization) map {
(title, version, vendor) =>
Package.ManifestAttributes(
"Created-By" -> "Simple Build Tool",
"Built-By" -> System.getProperty("user.name"),
"Build-Jdk" -> System.getProperty("java.version"),
"Specification-Title" -> title,
"Specification-Version" -> version,
"Specification-Vendor" -> vendor,
"Implementation-Title" -> title,
"Implementation-Version" -> version,
"Implementation-Vendor-Id" -> vendor,
"Implementation-Vendor" -> vendor
)
}

publishMavenStyle := true

publishTo <<= version { (v: String) =>
val nexus = "https://oss.sonatype.org/"
if (v.trim.endsWith("SNAPSHOT"))
Some("snapshots" at nexus + "content/repositories/snapshots")
else
Some("releases" at nexus + "service/local/staging/deploy/maven2")
}

publishArtifact in Test := false

pomIncludeRepository := { x => false }

libraryDependencies ++= Seq(
"com.thoughtworks.paranamer" % "paranamer" % "2.5.1",
"org.codehaus.woodstox" % "woodstox-core-asl" % "4.1.4" % "optional",
"junit" % "junit" % "4.8.2" % "test",
"com.google.guava" % "guava" % "13.0.1",
"com.dyuproject.protostuff" % "protostuff-core" % "1.0.7" % "optional",
"com.dyuproject.protostuff" % "protostuff-api" % "1.0.7" % "optional",
"com.dyuproject.protostuff" % "protostuff-json" % "1.0.7" % "optional",
"com.dyuproject.protostuff" % "protostuff-xml" % "1.0.7" % "optional"
)
6 changes: 3 additions & 3 deletions pom.xml → pom.xml.disabled
Expand Up @@ -45,9 +45,9 @@
<testSourceDirectory>src/test/scala</testSourceDirectory>
<plugins>
<plugin>
<groupId>org.scala-tools</groupId>
<artifactId>maven-scala-plugin</artifactId>
<version>2.15.2</version>
<groupId>net.alchim31.maven</groupId>
<artifactId>scala-maven-plugin</artifactId>
<version>3.1.0</version>
<executions>
<execution>
<goals>
Expand Down

0 comments on commit 7af15ac

Please sign in to comment.