You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
1.2 KiB
41 lines
1.2 KiB
apply plugin: "groovy"
|
|
|
|
version = "1.0"
|
|
description = "Spock Framework - Example Project"
|
|
|
|
// Spock works with Java 1.7 and above
|
|
sourceCompatibility = 1.7
|
|
|
|
repositories {
|
|
// Spock releases are available from Maven Central
|
|
mavenCentral()
|
|
// Spock snapshots are available from the Sonatype OSS snapshot repository
|
|
maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
|
|
}
|
|
|
|
dependencies {
|
|
// mandatory dependencies for using Spock
|
|
compile "org.codehaus.groovy:groovy-all:2.5.7"
|
|
testCompile "org.spockframework:spock-core:1.3-groovy-2.5"
|
|
|
|
// optional dependencies for using Spock
|
|
testCompile "org.hamcrest:hamcrest-core:1.3" // only necessary if Hamcrest matchers are used
|
|
testRuntime "net.bytebuddy:byte-buddy:1.9.3" // allows mocking of classes (in addition to interfaces)
|
|
testRuntime "org.objenesis:objenesis:2.6" // allows mocking of classes without default constructor (together with CGLIB)
|
|
|
|
// dependencies used by examples in this project
|
|
testRuntime "com.h2database:h2:1.4.197"
|
|
}
|
|
|
|
// the remaining configuration is specific to this project, and is not required for using Spock
|
|
|
|
apply from: "gradle/ide.gradle"
|
|
|
|
task collectJars(type: Copy) {
|
|
into "$buildDir/output/lib"
|
|
from configurations.testRuntime
|
|
}
|
|
|
|
|
|
|