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 Jun 5, 2012 · 19 revisions

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

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-dsl-scala/wiki/OrderProcessing-sample) demonstrating what a real 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 git://github.com/olegz/scala-dsl-sample.git
cd scala-dsl-sample

Build sample project

Here you have 2 options. You can build with SBT or Gradle. From the project root directory:

Gradle (the simples option which has no pre-requisites - RECOMMENDED)

./gradlew clean test

SBT

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

sbt clean test

This should build the project and run all the tests.

Import project in IDE

Eclipse/STS

From the root of the project execute the following Gradle command

./gradlew clean eclipse

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 project. You may need to add scala library manually (Right click on the project --> Scala --> Add Scala Library to build path)

IntelliJ IDEA

From the root of the project execute the following Gradle command

./gradlew clean idea

This wil generate required artifacts to be able to open project in IntelliJ IDEA.

Working with sample projects

Individual samples

Navigate to src/test/scala. There you'll see a package spring.integration.scala.dsl which contains [DSLUsageDemoTests.scala] (https://github.com/olegz/scala-dsl-sample/blob/master/src/test/scala/spring/integration/scala/dsl/DSLUsageDemoTests.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.

The last sample (test) is OrderProcessingDemo. Details for it provided here: https://github.com/SpringSource/spring-integration-dsl-scala/wiki/OrderProcessing-sample


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