Update to Spock 1.2, Update dependencies, Allow *Test pattern for maven
This commit is contained in:
+6
-6
@@ -3,8 +3,8 @@ apply plugin: "groovy"
|
|||||||
version = "1.0"
|
version = "1.0"
|
||||||
description = "Spock Framework - Example Project"
|
description = "Spock Framework - Example Project"
|
||||||
|
|
||||||
// Spock works with Java 1.6 and above
|
// Spock works with Java 1.7 and above
|
||||||
sourceCompatibility = 1.6
|
sourceCompatibility = 1.7
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
// Spock releases are available from Maven Central
|
// Spock releases are available from Maven Central
|
||||||
@@ -16,15 +16,15 @@ repositories {
|
|||||||
dependencies {
|
dependencies {
|
||||||
// mandatory dependencies for using Spock
|
// mandatory dependencies for using Spock
|
||||||
compile "org.codehaus.groovy:groovy-all:2.4.15"
|
compile "org.codehaus.groovy:groovy-all:2.4.15"
|
||||||
testCompile "org.spockframework:spock-core:1.1-groovy-2.4"
|
testCompile "org.spockframework:spock-core:1.2-groovy-2.4"
|
||||||
|
|
||||||
// optional dependencies for using Spock
|
// optional dependencies for using Spock
|
||||||
testCompile "org.hamcrest:hamcrest-core:1.3" // only necessary if Hamcrest matchers are used
|
testCompile "org.hamcrest:hamcrest-core:1.3" // only necessary if Hamcrest matchers are used
|
||||||
testRuntime "net.bytebuddy:byte-buddy:1.6.5" // allows mocking of classes (in addition to interfaces)
|
testRuntime "net.bytebuddy:byte-buddy:1.8.21" // allows mocking of classes (in addition to interfaces)
|
||||||
testRuntime "org.objenesis:objenesis:2.5.1" // allows mocking of classes without default constructor (together with CGLIB)
|
testRuntime "org.objenesis:objenesis:2.6" // allows mocking of classes without default constructor (together with CGLIB)
|
||||||
|
|
||||||
// dependencies used by examples in this project
|
// dependencies used by examples in this project
|
||||||
testRuntime "com.h2database:h2:1.4.182"
|
testRuntime "com.h2database:h2:1.4.197"
|
||||||
}
|
}
|
||||||
|
|
||||||
// the remaining configuration is specific to this project, and is not required for using Spock
|
// the remaining configuration is specific to this project, and is not required for using Spock
|
||||||
|
|||||||
@@ -39,6 +39,7 @@
|
|||||||
<configuration>
|
<configuration>
|
||||||
<useFile>false</useFile>
|
<useFile>false</useFile>
|
||||||
<includes>
|
<includes>
|
||||||
|
<include>**/*Test.java</include>
|
||||||
<include>**/*Spec.java</include>
|
<include>**/*Spec.java</include>
|
||||||
</includes>
|
</includes>
|
||||||
</configuration>
|
</configuration>
|
||||||
@@ -59,25 +60,25 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.spockframework</groupId>
|
<groupId>org.spockframework</groupId>
|
||||||
<artifactId>spock-core</artifactId>
|
<artifactId>spock-core</artifactId>
|
||||||
<version>1.1-groovy-2.4</version>
|
<version>1.2-groovy-2.4</version>
|
||||||
<scope>test</scope>
|
<scope>test</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
<!-- Optional dependencies for using Spock -->
|
<!-- Optional dependencies for using Spock -->
|
||||||
<dependency> <!-- use a specific Groovy version rather than the one specified by spock-core -->
|
<dependency> <!-- use a specific Groovy version rather than the one specified by spock-core -->
|
||||||
<groupId>org.codehaus.groovy</groupId>
|
<groupId>org.codehaus.groovy</groupId>
|
||||||
<artifactId>groovy-all</artifactId>
|
<artifactId>groovy-all</artifactId>
|
||||||
<version>2.4.13</version>
|
<version>2.4.15</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency> <!-- enables mocking of classes (in addition to interfaces) -->
|
<dependency> <!-- enables mocking of classes (in addition to interfaces) -->
|
||||||
<groupId>net.bytebuddy</groupId>
|
<groupId>net.bytebuddy</groupId>
|
||||||
<artifactId>byte-buddy</artifactId>
|
<artifactId>byte-buddy</artifactId>
|
||||||
<version>1.6.5</version>
|
<version>1.8.21</version>
|
||||||
<scope>test</scope>
|
<scope>test</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency> <!-- enables mocking of classes without default constructor (together with CGLIB) -->
|
<dependency> <!-- enables mocking of classes without default constructor (together with CGLIB) -->
|
||||||
<groupId>org.objenesis</groupId>
|
<groupId>org.objenesis</groupId>
|
||||||
<artifactId>objenesis</artifactId>
|
<artifactId>objenesis</artifactId>
|
||||||
<version>2.5.1</version>
|
<version>2.6</version>
|
||||||
<scope>test</scope>
|
<scope>test</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency> <!-- only required if Hamcrest matchers are used -->
|
<dependency> <!-- only required if Hamcrest matchers are used -->
|
||||||
@@ -90,7 +91,7 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.h2database</groupId>
|
<groupId>com.h2database</groupId>
|
||||||
<artifactId>h2</artifactId>
|
<artifactId>h2</artifactId>
|
||||||
<version>1.4.185</version>
|
<version>1.4.197</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user