Skip to content

Instantly share code, notes, and snippets.

@galderz
Created October 23, 2013 10:32
Show Gist options
  • Save galderz/1eb42cd01239a3f79075 to your computer and use it in GitHub Desktop.
Save galderz/1eb42cd01239a3f79075 to your computer and use it in GitHub Desktop.
For Scala, manually:
1. Download and unzip Vert.x distro
2. Open conf/lang.properties with an editor and add:
scala=io.vertx~lang-scala~0.2.0-snapshot:org.vertx.scala.platform.impl.ScalaVerticleFactory
.scala=scala
3. Create sys-mod for Scala language:
cd /opt/vert.x/sys-mods
mkdir io.vertx~lang-scala~0.2.0-snapshot
cd io.vertx~lang-scala~0.2.0-snapshot
mkdir lib
cp /Users/g/Go/code/vertx/mod-lang-scala.git/build/libs/*.jar lib
cp ~/Go/code/vertx/mod-lang-scala.git/build/resources/main/mod.json .
cp ~/.m2/repository/org/scala-lang/scala-library/2.10.2/scala-library-2.10.2.jar lib/
cp ~/.m2/repository/org/scala-lang/scala-reflect/2.10.2/scala-reflect-2.10.2.jar lib
cp ~/.m2/repository/org/scala-lang/scala-compiler/2.10.2/scala-compiler-2.10.2.jar lib
4. Run Scala example:
cd ~/Go/demos/vertx-examples.git/src/raw/scala
/opt/vert.x/bin/vertx run httphelloworld/HelloWorldServer.scala
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment