You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
scalaSource in Compile:= baseDirectory.value /"src/main/scala"
scalaSource in Test:= baseDirectory.value /"src/test"
unmanagedResourceDirectories in Compile+= baseDirectory.value /"src/main/resources"
sbt vs maven
mvn dependency:tree
ps:最新版的不需要plugin ,运行sbt test:compile即可,会出现在target/resolution-cache/reports下各种非常详细的报告sbt与maven常见命令对比
sbt与maven配置文件对比:
maven利用pom.xml进行项目管理
配置版本,组织:
加入额外的源:
格式为:
resolvers += name at location
如果需要加入本地的maven库:
或者简写为:
build source
导入依赖包,并排除不需要的jar包
其中:
发布:
其中授权文件为:
测试:
sbt plugins
全局plugins:
~/.sbt/0.13/plugins/plugin.sbt
树形:
addSbtPlugin("net.virtual-void" % "sbt-dependency-graph" % "0.8.2")
The text was updated successfully, but these errors were encountered: