Class | Buildr::Scala::Scalac |
In: |
lib/buildr/scala/compiler.rb
(CVS)
|
Parent: | Buildr::Compiler::Base |
Scalac compiler:
compile.using(:scalac)
Used by default if .scala files are found in the src/main/scala directory (or src/test/scala) and sets the target directory to target/classes (or target/test/classes).
Accepts the following options:
REQUIRES | = | ArtifactNamespace.for(self) do |ns| version = Buildr.settings.build['scala.version'] || DEFAULT_VERSION |
The scalac compiler jars are added to classpath at load time, if you want
to customize artifact versions, you must set them on the
artifact_ns['Buildr::Compiler::Scalac'].library = '2.7.5' namespace before this file is required. This is of course, only if SCALA_HOME is not set or invalid. |