Scala IO Getting Started Guide
SBT Example
- Add core or file dependency to you project definition
val core = "com.github.scala-incubator.io" %% "core" % "0.1.1"
val file = "com.github.scala-incubator.io" %% "file" % "0.1.1"
- update your SBT project to download the dependencies
sbt update
There is an example SBT project prepackaged at
example-sbt-project.zip.
> curl -L https://github.com/downloads/jesseeichar/scala-io/example-sbt-project.zip > tmp.zip && unzip tmp.zip && rm tmp.zip
> cd example-sbt-project
> sbt update run
Maven Example
- Add core or file dependency to you project definition
<!-- Core -->
<dependency>
<groupId>com.github.scala-incubator.io</groupId>
<artifactId>core_2.8.1</artifactId>
<version>0.1.1</version>
</dependency>
<!-- File -->
<dependency>
<groupId>com.github.scala-incubator.io</groupId>
<artifactId>file_2.8.1</artifactId>
<version>0.1.1</version>
</dependency>
Note that the scala version (_2.8.1) needs to be kept up to date manually unlike the sbt version
- Ensure that you have the scala tools repository added as one of your repositories in your pom.xml
<repositories>
<repository>
<id>scala-tools.org</id>
<name>Scala-Tools Maven2 Repository</name>
<url>http://scala-tools.org/repo-releases</url>
</repository>
</repositories>
There is an example maven project prepackaged at
example-maven-project.zip.
> curl -L https://github.com/downloads/jesseeichar/scala-io/example-maven-project.zip > tmp.zip && unzip tmp.zip && rm tmp.zip
> cd example-maven-project
> mvn compile exec:java -Dexec.mainClass="Main"
http://groups.google.com/group/scala-incubator
Scala Bazaar installation
Coming soon...
Manual Download Example
Naturally a manual download option is also available. The dependencies are fairly simple: