Selecting SBT Compiler for SBT 0.13.x

There are three ways of selecting this compiler.

Using project property.

Add sbt.version project property with value 0.13 or any value starting with 0.13..

This is simplest and recommended way because this property can be used to declare versions of Play! Framework dependencies.

<project>
    ...
    <properties>
        ...
        <sbt.version>0.13.9</sbt.version>
    </properties>
    ...
</project>

Using plugin configuration parameter.

Add sbtVersion parameter with value 0.13 or any value starting with 0.13. to plugin configuration section.

<project>
    ...
    <build>
        ...
        <plugins>
            ...
            <plugin>
                <groupId>com.google.code.sbt-compiler-maven-plugin</groupId>
                <artifactId>sbt-compiler-maven-plugin</artifactId>
                <version>1.0.0-beta8</version>
                <configuration>
                    ...
                    <sbtVersion>0.13.9</sbtVersion>
                </configuration>
            </plugin>
            ...
        </plugins>
    </build>
    ...
</project>

Compiler as plugin dependency.

Add compiler artifact as plugin dependency.

Warning: Only one compiler can be added as plugin’s dependency at a time. It will be selected regardless of the value of sbtVersion plugin configuration parameter or sbt.version project property.

<project>
    ...
    <build>
        ...
        <plugins>
            ...
            <plugin>
                <groupId>com.google.code.sbt-compiler-maven-plugin</groupId>
                <artifactId>sbt-compiler-maven-plugin</artifactId>
                <version>1.0.0-beta8</version>
                <dependencies>
                    <dependency>
                        <groupId>com.google.code.sbt-compiler-maven-plugin</groupId>
                        <artifactId>sbt-compiler-sbt013</artifactId>
                        <version>1.0.0-beta8</version>
                    </dependency>
                </dependencies>
            </plugin>
            ...
        </plugins>
    </build>
    ...
</project>