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
<li>The local root directory <code>.</code>is the starting point of your build.</li>
242
-
<li>In sbt's terminology, the <em>base directory</em> is the directory containing the subproject. In the above, <code>.</code>, <code>subproject-core</code>, and <code>subproject-util</code>are base directories.</li>
243
-
<li>The build definition is described in <code>build.sbt</code>(actually any files named <code>*.sbt</code>) in the local root directory.</li>
244
-
<li>The sbt version is tracked in <code>project/build.properties</code>.</li>
245
-
<li>Generated files (compiled classes, packaged jars, managed files, caches, and documentation) will be written to the <code>target</code>directory by default.</li>
<h3id="build-support-files"><aclass="header" href="#build-support-files">Build support files</a></h3>
248
-
<p>In addition to <code>build.sbt</code>, <code>project</code> directory can contain <code>.scala</code> files that define helper objects and one-off plugins. See <ahref="Organizing-Build.html">organizing the build</a> for more.</p>
<p>In addition to <code>build.sbt</code>, <code>project</code> directory can contain <code>.scala</code> files that define helper objects and one-off plugins.</p>
249
+
<!--
250
+
See [organizing the build][Organizing-Build] for more.
<p>You may see <code>.sbt</code> files inside <code>project/</code>but they are not equivalent to <code>.sbt</code>files in the project's base directory. Explaining this will come <ahref="Organizing-Build.html">later</a>, since you'll need some background information first.</p>
<p>sbt uses the same directory structure as <ahref="https://maven.apache.org/">Maven</a>for source files by default (all paths are relative to the base directory):</p>
│ └── scala-2.13/ <test Scala 2.13 specific sources>
272
275
....
273
276
</code></pre>
274
-
<p>Other directories in <code>src/</code> will be ignored. Additionally, all hidden directories will be ignored.</p>
275
-
<p>Source code can be placed in the project's base directory as <code>hello/app.scala</code>, which may be OK for small projects, though for normal projects people tend to keep the projects in the <code>src/main/</code> directory to keep things neat. The fact that you can place <code>*.scala</code> source code in the base directory might seem like an odd trick, but this fact becomes relevant <ahref="Organizing-Build.html">later</a>.</p>
276
-
<h3id="configuring-version-control"><aclass="header" href="#configuring-version-control">Configuring version control</a></h3>
277
-
<p>Your <code>.gitignore</code> (or equivalent for other version control systems) should contain:</p>
<p>Note that this deliberately has a trailing <code>/</code> (to match only directories) and it deliberately has no leading <code>/</code> (to match <code>project/target/</code> in addition to plain <code>target/</code>).</p>
281
-
<p>sbt automates building, testing, and deployment of your subprojects from information in the build definition.</p>
0 commit comments