Skip to content
This repository was archived by the owner on Jul 9, 2022. It is now read-only.

Getting Started

olegz edited this page Feb 27, 2012 · 19 revisions

Getting started process is simple and we are currently supporting the two major IDEs such as Eclipse and IntelliJ as well as 3 major build systems such as SBT, Gradle and Maven

We are also providing a sample project that will get you started within minutes and could be used as a template for starting new projects in the future. The sample project contains many small samples demonstrating each and every supported EIP pattern configuration as well as a more complete sample [Order Processing] (https://github.com/SpringSource/spring-integration-scala/wiki/OrderProcessing-sample) demonstrating what an application might look like. The small samples organized as JUnit test and are all run during the build process while Order Processing is a Scala application which you'll be able to execute separately

To get started follow these simple steps:

Check out the sample project

git clone https://[email protected]/olegz/scala-dsl-sample.git
cd scala-dsl-sample

Build sample project

Here you have 3 options. You can build with SBT, Gradle and Maven. From the project root directory:

Gradle

./gradlew clean test

SBT

You must have SBT installed. The project was tested with SBT v0.11.2

sbt clean test

Maven

You must have Maven (v2.2.1+) installed.

mvn clean test

This should build the project and run all the tests.

Import project in IDE

Eclipse/STS

You must have [Scala IDE] (http://scala-ide.org/) installed. If using SpringSource Tool Suite (STS) you can simply navigate to a Dashboard (Help -> Dashboard) and install it form the Extensions tab. Than simply import project as an existing Maven project (File -> Import -> Maven -> Existing Maven Project)

IntelliJ IDEA

From the root of the project execute the following SBT command

sbt gen-idea

This wil generate required artifacts to be able to open project in IntelliJ IDEA. Once successfully simply open is as an existing project.

Working with sample projects

Individual samples

Navigate to src/test/scala. There you'll see a package spring.integration.scala.dsl which contains [DslUsageTests.scala] (https://github.com/olegz/scala-dsl-sample/blob/master/src/test/scala/spring/integration/scala/dsl/DSLUsageTests.scala). There you'll see that each uint test has a descriptive name and scaladoc describing the details. We will follow with more formal documentation

OrderProcessing

[Back to Home] (https://github.com/SpringSource/spring-integration-scala/wiki)

Clone this wiki locally