Skip to content

Instantly share code, notes, and snippets.

@Wavesonics
Created February 11, 2014 00:03
Show Gist options
  • Save Wavesonics/8926788 to your computer and use it in GitHub Desktop.
Save Wavesonics/8926788 to your computer and use it in GitHub Desktop.
apply plugin: 'java'
sourceSets {
main {
java {
srcDir 'src/main/java'
}
}
unitTest {
java.srcDir file('src/test/java')
}
}
repositories {
mavenCentral()
}
dependencies {
testCompile 'commons-io:commons-io:2.4'
testCompile 'org.easytesting:fest-assert-core:+'
testCompile 'junit:junit:4.+'
}
task wrapper(type: Wrapper) {
gradleVersion = '1.10'
}
task unitTest(type:Test, dependsOn: assemble) {
description = "run unit tests"
testClassesDir = project.sourceSets.unitTest.output.classesDir
classpath = project.sourceSets.unitTest.runtimeClasspath
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment