aboutsummaryrefslogtreecommitdiff
path: root/docs/_includes/getting-started.html
blob: 00b7c869cef14ed6c143250910ec14fd1d176cf9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<div class="page white">
    <div class="centered" style="padding-top: 32px">
        <h1 id="getting-started">Getting Started</h1>
        <p>
            Using Dotty to compile your project is now pretty simple. Create the
            following structure:
        </p>
        <pre class="sourceCode bordered">
<code>.
├── build.sbt
├── project
│   ├── build.properties
│   └── plugins.sbt
└── src</code></pre>
        <h2 id="build.sbt">build.sbt</h2>
        <pre class="sourceCode bordered"><code>name := "application"
version := "0.1"
enablePlugins(DottyPlugin)</code></pre>
        <h2 id="build.properties">build.properties</h2>
        <pre class="sourceCode bordered"><code>sbt.version=0.13.11</code></pre>
        <h2 id="plugins.sbt">plugins.sbt</h2>
        <pre class="sourceCode bordered"><code>addSbtPlugin("com.felixmulder" % "sbt-dotty" % "0.1.7")</code></pre>
        <p>
            This plugin is based on the
            <a href="https://github.com/smarter/dotty-example-project">
                dotty-example-project
            </a>, but let’s you skip building dotty from scratch.
        </p>
    </div>
</div>