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:

  • :warnings — Generate warnings if true (opposite of -nowarn).
  • :deprecation — Output source locations where deprecated APIs are used.
  • :optimise — Generates faster bytecode by applying optimisations to the program.
  • :target — Class file compatibility with specified release.
  • :debug — Generate debugging info.
  • :other — Array of options to pass to the Scalac compiler as is, e.g. -Xprint-types

Constants

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.

[Validate]