Created
October 7, 2015 07:28
-
-
Save anonymous/6d4361e73d29ed3d1179 to your computer and use it in GitHub Desktop.
build.gradle for scala Flatspec project
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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