Reputation: 493
In build.sbt
, we can do lazy val root = (project in file("."))
.
I know sbt does some imports but I can't find in the API doc how comes we can use directly the 'project' object.
Upvotes: 1
Views: 89
Reputation: 67300
This is written in the documentation:
import sbt._
import Process._
import Keys._
If you auto-complete project
in IntelliJ IDEA, it brings you to trait ProjectExtra
. This is available to due the fact that the package object sbt
mixes in this trait. This is a bit hidden in the API docs. But it's clear from the source code (and here).
Upvotes: 3