Skip to content

Instantly share code, notes, and snippets.

@divanvisagie
Forked from anonymous/build.gradle
Created October 7, 2015 07:32
Show Gist options
  • Save divanvisagie/8ece165ed78ebda4462e to your computer and use it in GitHub Desktop.
Save divanvisagie/8ece165ed78ebda4462e 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