Bumps [byte-buddy](https://github.com/raphw/byte-buddy) from 1.12.16 to 1.12.17. - [Release notes](https://github.com/raphw/byte-buddy/releases) - [Changelog](https://github.com/raphw/byte-buddy/blob/master/release-notes.md) - [Commits](https://github.com/raphw/byte-buddy/compare/byte-buddy-1.12.16...byte-buddy-1.12.17) --- updated-dependencies: - dependency-name: net.bytebuddy:byte-buddy dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
40 lines
1.4 KiB
Groovy
40 lines
1.4 KiB
Groovy
apply plugin: "groovy"
|
|
|
|
version = "1.0"
|
|
description = "Spock Framework - Example Project"
|
|
|
|
// Spock works with Java 1.8 and above
|
|
sourceCompatibility = 1.8
|
|
|
|
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
|
|
implementation platform('org.apache.groovy:groovy-bom:4.0.5')
|
|
implementation 'org.apache.groovy:groovy'
|
|
testImplementation platform("org.spockframework:spock-bom:2.2-groovy-4.0")
|
|
testImplementation "org.spockframework:spock-core"
|
|
testImplementation "org.spockframework:spock-junit4" // you can remove this if your code does not rely on old JUnit 4 rules
|
|
|
|
// optional dependencies for using Spock
|
|
testImplementation "org.hamcrest:hamcrest-core:2.2" // only necessary if Hamcrest matchers are used
|
|
testRuntimeOnly 'net.bytebuddy:byte-buddy:1.12.17' // allows mocking of classes (in addition to interfaces)
|
|
testRuntimeOnly "org.objenesis:objenesis:3.3" // allows mocking of classes without default constructor (together with ByteBuddy or CGLIB)
|
|
|
|
// dependencies used by examples in this project
|
|
testRuntimeOnly "com.h2database:h2:2.1.214"
|
|
implementation "org.apache.groovy:groovy-sql"
|
|
}
|
|
|
|
test {
|
|
useJUnitPlatform()
|
|
testLogging {
|
|
events "passed", "skipped", "failed"
|
|
}
|
|
}
|