Skip to content

Instantly share code, notes, and snippets.

Created October 7, 2015 07:28
Show Gist options
  • Save anonymous/6d4361e73d29ed3d1179 to your computer and use it in GitHub Desktop.
Save anonymous/6d4361e73d29ed3d1179 to your computer and use it in GitHub Desktop.
build.gradle for scala Flatspec project
apply plugin: "scala"
buildscript {
repositories {
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath "com.github.maiflai:gradle-scalatest:0.10"
}
}
apply plugin: "com.github.maiflai.scalatest"
repositories{
mavenCentral()
mavenLocal()
}
dependencies{
compile "org.scala-lang:scala-library:2.11.2"
testCompile 'org.scalatest:scalatest_2.11:2+'
testRuntime 'org.pegdown:pegdown:1.1.0'
}
sourceSets{
main {
scala {
srcDirs = ['src/main/scala']
}
}
test {
scala {
srcDirs = ['src/test/scala']
}
}
}
task run(type: JavaExec, dependsOn: classes) {
main = 'Main'
classpath sourceSets.main.runtimeClasspath
classpath configurations.runtime
}
test {
tags {
exclude 'org.scalatest.tags.Slow'
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment