Git Product home page Git Product logo

sbt-multiproject-example's Introduction

SBT testing project

Working

  • sbt test on all projects
  • sbt PROJ/run on projects
  • dependencies: banana and apple depend on fruitLib (ok for: assembly, run, eclipse)

Important

  • ✔ multi-project sbt
  • ✔ multi-project works with eclipse (internal project dependencies added in path)
  • ✔ unit testing
  • ✔ unit test eclipse integration (use http://www.scalatest.org/user_guide/using_scalatest_with_eclipse )
  • ✔ capable of publishing to a local maven repo
  • override location of local maven repo
  • capable of publishing to an s3 repository
  • ✔ ivy dependencies
  • ✔ maven dependencies
  • ✔ assembly

Nice to have

  • generating a POM for maven systems
  • shareable sbt config for some elements?

Tips & tricks

Files

  • ROOT/project/Build.scala: multi-project definition. This file is loaded with the root project, before build.sbt is loaded. Internal dependencies (i.e. between subprojects of this multi-project setup) should be defined there, and not in one of the build.sbt
  • build.sbt: each project has one. Put stuff unrelated to multi-project-ness
  • assembly.sbt: assembly settings

Executing commands

By default, will run on root and recursively run on child projects

  • run on root project: sbt run
  • run on specific project: sbt apple/run

Maven install

  • use sbt publish (configured in build.sbt)
  • can specify a custom location for the maven repo: -Dmaven.repo. Example:

sbt -Dmaven.repo=/home/bob/tmp/mavenRepo publish

sbt-multiproject-example's People

Contributors

jbruggem avatar nles avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.