There are three ways of selecting this compiler.
Add sbt.version project property with value 0.13 (or any value starting with 0.13. for backward compatibility).
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</sbt.version> </properties> ... </project>
Add sbtVersion parameter with value 0.13 (or any value starting with 0.13. for backward compatibility) 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</version> <configuration> ... <sbtVersion>0.13</sbtVersion> </configuration> </plugin> ... </plugins> </build> ... </project>
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</version> <dependencies> <dependency> <groupId>com.google.code.sbt-compiler-maven-plugin</groupId> <artifactId>sbt-compiler-sbt013</artifactId> <version>1.0.0</version> </dependency> </dependencies> </plugin> ... </plugins> </build> ... </project>