Update to Spock 2.0, Gradle 7.0.2, Maven 3.8.1

main
Leonard Brünings 4 years ago
parent a2b68c5ba9
commit 735979023b

2
.gitignore vendored

@ -1,5 +1,3 @@
# All directories should end in / (information used by ide.gradle)
# Ant # Ant
ant/ ant/

@ -1 +1 @@
distributionUrl=https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.6.3/apache-maven-3.6.3-bin.zip distributionUrl=https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.8.1/apache-maven-3.8.1-bin.zip

@ -15,29 +15,21 @@ repositories {
dependencies { dependencies {
// mandatory dependencies for using Spock // mandatory dependencies for using Spock
compile "org.codehaus.groovy:groovy:3.0.7" implementation "org.codehaus.groovy:groovy:3.0.8"
testCompile platform("org.spockframework:spock-bom:2.0-M4-groovy-3.0") testImplementation platform("org.spockframework:spock-bom:2.0-groovy-3.0")
testCompile "org.spockframework:spock-core" testImplementation "org.spockframework:spock-core"
testCompile "org.spockframework:spock-junit4" // you can remove this if your code does not rely on old JUnit 4 rules 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 // optional dependencies for using Spock
testCompile "org.hamcrest:hamcrest-core:2.2" // only necessary if Hamcrest matchers are used testImplementation "org.hamcrest:hamcrest-core:2.2" // only necessary if Hamcrest matchers are used
testRuntime "net.bytebuddy:byte-buddy:1.10.10" // allows mocking of classes (in addition to interfaces) testRuntimeOnly "net.bytebuddy:byte-buddy:1.11.0" // allows mocking of classes (in addition to interfaces)
testRuntime "org.objenesis:objenesis:3.1" // allows mocking of classes without default constructor (together with ByteBuddy or CGLIB) testRuntimeOnly "org.objenesis:objenesis:3.2" // allows mocking of classes without default constructor (together with ByteBuddy or CGLIB)
// dependencies used by examples in this project // dependencies used by examples in this project
testRuntime "com.h2database:h2:1.4.197" testRuntimeOnly "com.h2database:h2:1.4.197"
compile "org.codehaus.groovy:groovy-sql:3.0.7" implementation "org.codehaus.groovy:groovy-sql:3.0.8"
} }
// 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
}
test { test {
useJUnitPlatform() useJUnitPlatform()
testLogging { testLogging {

@ -1,20 +0,0 @@
apply plugin: "idea"
apply plugin: "eclipse"
def gitIgnore = file(".gitignore").readLines()
def gitIgnoreDirs = gitIgnore*.trim().findAll { !it.startsWith("#") && it.endsWith("/") }
idea {
project {
jdkName "1.6"
configure(modules) {
excludeDirs = files(gitIgnoreDirs) as Set
}
ipr {
withXml { provider ->
def node = provider.asNode()
node.component.find { it.'@name' == 'VcsDirectoryMappings' }?.mapping[0].'@vcs' = 'Git'
}
}
}
}

@ -1,6 +1,7 @@
distributionBase=GRADLE_USER_HOME distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists distributionPath=wrapper/dists
distributionSha256Sum=3239b5ed86c3838a37d983ac100573f64c1f3fd8e1eb6c89fa5f9529b5ec091d # You can get the official checksums from https://gradle.org/release-checksums/
distributionUrl=https\://services.gradle.org/distributions/gradle-6.7.1-bin.zip distributionSha256Sum=0e46229820205440b48a5501122002842b82886e76af35f0f3a069243dca4b3c
distributionUrl=https\://services.gradle.org/distributions/gradle-7.0.2-bin.zip
zipStoreBase=GRADLE_USER_HOME zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists zipStorePath=wrapper/dists

@ -11,7 +11,7 @@
<properties> <properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<groovy.version>3.0.7</groovy.version> <groovy.version>3.0.8</groovy.version>
</properties> </properties>
<build> <build>
@ -62,7 +62,7 @@
<dependency> <dependency>
<groupId>org.spockframework</groupId> <groupId>org.spockframework</groupId>
<artifactId>spock-bom</artifactId> <artifactId>spock-bom</artifactId>
<version>2.0-M5-groovy-3.0</version> <version>2.0-groovy-3.0</version>
<type>pom</type> <type>pom</type>
<scope>import</scope> <scope>import</scope>
</dependency> </dependency>
@ -90,13 +90,13 @@
<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.10.10</version> <version>1.11.0</version>
<scope>test</scope> <scope>test</scope>
</dependency> </dependency>
<dependency> <!-- enables mocking of classes without default constructor (together with ByteBuddy or CGLIB) --> <dependency> <!-- enables mocking of classes without default constructor (together with ByteBuddy or CGLIB) -->
<groupId>org.objenesis</groupId> <groupId>org.objenesis</groupId>
<artifactId>objenesis</artifactId> <artifactId>objenesis</artifactId>
<version>3.1</version> <version>3.2</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 -->

Loading…
Cancel
Save