BayesianLogic / blog

The BLOG programming language
http://bayesianlogic.github.io/
BSD 4-Clause "Original" or "Old" License
98 stars 31 forks source link

Using sbt to Build #200

Closed lileicc closed 10 years ago

lileicc commented 10 years ago

@cberzan It seems sbt is even simpler than maven.

Shall we use sbt in the future?

http://xerial.org/blog/2014/03/24/sbt/

related to #116

lileicc commented 10 years ago

It seems sbt is not that easy, because we have extra step for lexer and cup file.

cberzan commented 10 years ago

Running an external process to build the parser & lexer:

http://www.scala-sbt.org/0.13/tutorial/Custom-Settings.html#Implementing+a+task

http://www.scala-sbt.org/0.13/docs/Process.html (! operator)

This step is similar to how we do it in make parser. Is it any easier in Maven?

lileicc commented 10 years ago

Here is my current effort:

  1. build.sbt
  2. project/plugin.sbt
  3. move all java into src/main/java
  4. move all scala into src/main/scala
  5. add sbt/sbt and sbt/sbt-launch.jar
cberzan commented 10 years ago

Discussion continues in #239