module Buildr::Scala::Check

Scala::Check is available when using Scala::Test or Scala::Specs

Constants

VERSION

Public Class Methods

artifact() click to toggle source
# File lib/buildr/scala/tests.rb, line 55
def artifact
  Buildr.settings.build['scala.check.artifact'] || "scalacheck_#{Buildr::Scala.version_without_build}"
end
classifier() click to toggle source
# File lib/buildr/scala/tests.rb, line 51
def classifier
  Buildr.settings.build['scala.check.classifier']
end
dependencies() click to toggle source
# File lib/buildr/scala/tests.rb, line 59
def dependencies
  return [version] if (version =~ /:/)
  group = case
    when version =~ /^1.[67]/
      "org.scala-tools.testing"
    else
      "org.scalacheck"
  end
  if classifier
    ["#{group}:#{artifact}:jar:#{classifier}:#{version}"]
  else
    ["#{group}:#{artifact}:jar:#{version}"]
  end
end
version() click to toggle source
# File lib/buildr/scala/tests.rb, line 47
def version
  Buildr.settings.build['scala.check'] || VERSION
end