Skip to content

Commit

Permalink
Added build.sbt file (going DSL style), first publish (v0.1.0)
Browse files Browse the repository at this point in the history
  • Loading branch information
melezov committed Feb 17, 2012
1 parent 27359e9 commit 4f79b75
Show file tree
Hide file tree
Showing 6 changed files with 47 additions and 16 deletions.
7 changes: 4 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
target
bin
*~
.cache
.classpath
.project
.settings
target
29 changes: 29 additions & 0 deletions build.sbt
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
organization := "hr.element.doit"

name := "doit-csv"

version := "0.1.0"


// ### Build settings ###

libraryDependencies += "org.scalatest" %% "scalatest" % "1.7.1" % "test"

crossScalaVersions := Seq("2.9.1", "2.9.0-1", "2.9.0")

scalaVersion <<= (crossScalaVersions)(_.head)

scalacOptions := Seq("-unchecked", "-deprecation", "-encoding", "UTF-8", "-optimise")

unmanagedSourceDirectories in Compile <<= (scalaSource in Compile)( _ :: Nil)

unmanagedSourceDirectories in Test <<= (scalaSource in Test )( _ :: Nil)


// ### Publishing ###

publishTo := Some("Element Releases" at "http://maven.element.hr/nexus/content/repositories/releases/")

credentials += Credentials(Path.userHome / ".publish" / "element.credentials")

publishArtifact in (Compile, packageDoc) := false
1 change: 1 addition & 0 deletions project/strap/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
sbt-launch-*.jar
4 changes: 4 additions & 0 deletions publish.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
@echo off

echo Will cross-publish project to the maven server
call "%~dp0sbt.bat" %* +publish
4 changes: 4 additions & 0 deletions publish.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash

echo Will cross-publish project to the maven server
`dirname $0`/sbt.sh --no-jrebel "$@" +publish
18 changes: 5 additions & 13 deletions src/test/scala/hr/element/doit/csv/Test2.scala
Original file line number Diff line number Diff line change
@@ -1,24 +1,16 @@
package hr.element.doit

package hr.element.doit.csv

import java.security.SecureRandom
import java.math.BigInteger
import org.scalatest.FunSuite
import scala.collection.mutable.Stack
import org.scalatest.matchers._
import hr.element.doit.csv._
import org.scalatest.GivenWhenThen
import org.scalatest.FeatureSpec
import java.io.InputStreamReader
import java.io.Reader
import java.io.File
import java.io.FileInputStream
import java.io.FileOutputStream
import _root_.hr.element.doit.csv.CSVReader
import _root_.hr.element.doit.csv.CSVFactory

import scala.util.Random

import java.security.SecureRandom
import java.math.BigInteger
import java.io._

class ExampleSuite2 extends GivenWhenThen
with ShouldMatchers
with FeatureSpec {
Expand Down

0 comments on commit 4f79b75

Please sign in to comment.