Skip to content

Commit

Permalink
Various small adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
rubengees committed Dec 22, 2017
1 parent 29b51a4 commit adc6fbb
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 17 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,12 @@ Projects are structured in arbitrarily deep folders. The plugin expects the root

A single test is represented by one leaf folder. That folder **must** contain:

- A `request.xml` file.
- A `response.xml` file.

Further it **can** contain:

- A `test.conf` file.
- A `request.xml` file.
- `db_$name_pre.sql` files.
- `db_$name_post.sql` files.

Expand Down
3 changes: 1 addition & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ subprojects {

repositories {
jcenter()
mavenCentral()
}

tasks.matching { it.name.matches('compile.*Kotlin') }.all {
Expand All @@ -42,5 +41,5 @@ task clean(type: Delete) {
}

task wrapper(type: Wrapper) {
gradleVersion = project.ext.gradleVersion
setGradleVersion(project.ext.gradleVersion)
}
4 changes: 2 additions & 2 deletions gradle/versions.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ext {
gradleVersion = '4.4'
gradleVersion = '4.4.1'
squitVersion = '1.1.2-SNAPSHOT'

gradlePublishVersion = '0.9.9'
Expand Down Expand Up @@ -30,6 +30,6 @@ ext {

junitPlatformVersion = '1.0.2'
spekVersion = '1.1.5'
kluentVersion = '1.32'
kluentVersion = '1.33'
h2Version = '1.4.196'
}
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-4.4.1-bin.zip
2 changes: 1 addition & 1 deletion squit-plugin/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ task javadocJar(type: Jar, dependsOn: dokka) {
}

jacoco {
toolVersion = jacocoVersion
setToolVersion(jacocoVersion)
applyTo junitPlatformTest
}

Expand Down
17 changes: 7 additions & 10 deletions squit-plugin/src/main/kotlin/de/smartsquare/squit/io/FilesUtils.kt
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,14 @@ object FilesUtils {
val firstNumber = first.fileName.toString().substringBefore("-").toIntOrNull()
val secondNumber = second.fileName.toString().substringBefore("-").toIntOrNull()

if (firstNumber != null) {
if (secondNumber != null) {
firstNumber.compareTo(secondNumber)
} else {
-1
when {
firstNumber != null -> when {
secondNumber != null -> firstNumber.compareTo(secondNumber)
else -> -1
}
} else {
if (secondNumber != null) {
1
} else {
first.fileName.compareTo(second.fileName)
else -> when {
secondNumber != null -> 1
else -> first.fileName.compareTo(second.fileName)
}
}
})
Expand Down

0 comments on commit adc6fbb

Please sign in to comment.