Skip to content

Commit

Permalink
Spock 2.0 Kickoff - Cleanup
Browse files Browse the repository at this point in the history
Co-authored-by: Marc Philipp <mail@marcphilipp.de>
  • Loading branch information
leonard84 and marcphilipp committed Oct 31, 2019
1 parent d751a0a commit 16cd448
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 23 deletions.
12 changes: 2 additions & 10 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,7 @@ build/
target/

# IDEA
.idea/libraries
.idea/scopes
.idea/.name
.idea/compiler.xml
.idea/encodings.xml
.idea/gradle.xml
.idea/misc.xml
.idea/modules.xml
.idea/workspace.xml
.idea/
*.iml
*.ipr
*.iws
Expand All @@ -39,4 +31,4 @@ stacktrace.log
.DS_Store

# Shippable CI
/shippable/
/shippable/
11 changes: 3 additions & 8 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,9 @@ ext {
baseVersion = "1.3.1"
snapshotVersion = true
releaseCandidate = 0
variants = [2.4, 2.5]
variants = [2.5]
variant = System.getProperty("variant") as BigDecimal ?: variants.first()
if (variant == 2.4) {
groovyVersion = "2.4.15"
minGroovyVersion = "2.4.0"
groovyDependency = ["org.codehaus.groovy:groovy-all:${groovyVersion}"]
groovyConsoleExtraDependency = [] //bundled in groovy-all
} else if (variant == 2.5) {
if (variant == 2.5) {
groovyVersion = "2.5.4"
minGroovyVersion = "2.5.0"
groovyDependency = [
Expand All @@ -46,7 +41,7 @@ ext {
}
fullVersion = baseVersion + ((!snapshotVersion && releaseCandidate) ? "-RC$releaseCandidate" : "") + "-groovy-$variant" + (snapshotVersion ? "-SNAPSHOT" : '')
variantLessVersion = baseVersion + (snapshotVersion ? "-SNAPSHOT" : (releaseCandidate ? "-RC$releaseCandidate" : ""))
javaVersions = [1.7, 1.8, 9, 10, 11] // ensure that latest version is actually build on travis, otherwise no docs get published
javaVersions = [1.8, 9, 10, 11] // ensure that latest version is actually build on travis, otherwise no docs get published
javaVersion = System.getProperty("java.specification.version") as BigDecimal

if (javaVersion >= 9) {
Expand Down
6 changes: 1 addition & 5 deletions settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,8 @@ include "spock-spring:spring2-test"
include "spock-spring:spring3-test"
include "spock-guice"

if ((System.getProperty("variant") as BigDecimal ?: 2.4) == 2.4) {
include "internal-backport"
}

// https://issues.apache.org/jira/projects/TAP5/issues/TAP5-2588
if (JavaVersion.current().isJava7() || JavaVersion.current().isJava8()) {
if (JavaVersion.current().isJava8()) {
include "spock-tapestry"
}

Expand Down

0 comments on commit 16cd448

Please sign in to comment.