SHARE
TWEET

Untitled

a guest Sep 13th, 2017 69 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import sbt._
  2.  
  3. class InterestServiceProjectParent(info: ProjectInfo) extends DefaultProject(info) {
  4.  
  5.  
  6.   val mavenLocal = "Local Maven Repository" at "file://"+Path.userHome+"/.m2/repository"
  7.  
  8.   lazy val plushy  = project("plushy", "plushy", new Plushy(_))
  9.  
  10.   lazy val runMoney = task { args =>
  11.     runTask(Some("com.gravity.plushy.money.MoneyTest"), runClasspath, args).dependsOn(compile)
  12.   } describedAs "Example of how to run a main method in a subproject"
  13.  
  14.  
  15.   class  Plushy(info:ProjectInfo) extends ParentProject(info) {
  16.     override def ivyXML = <dependencies><dependency org="log4j" name="log4j" rev="1.2.14"><exclude module="plushy"/></dependency></dependencies>
  17.     lazy val money  = project("money", "money", new Money(_))
  18.  
  19.     class  Money(info:ProjectInfo) extends ParentProject(info) {
  20. //    override def ivyXML = <dependencies><dependency org="log4j" name="log4j" rev="1.2.14"><exclude module="money"/></dependency></dependencies>
  21.  
  22.  
  23.   }
  24.  
  25.  
  26.  
  27.   }
  28.  
  29.  
  30.  
  31. }
RAW Paste Data
Top