Skip to content

Commit 53fc09c

Browse files
author
danf
committed
Another small change for Groovy
1 parent 38779a5 commit 53fc09c

File tree

3 files changed

+9
-11
lines changed

3 files changed

+9
-11
lines changed

build.gradle

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ subprojects() {
5454
compile 'joda-time:joda-time:2.2'
5555
compile 'commons-io:commons-io:2.1'
5656
compile 'org.codehaus.jackson:jackson-mapper-asl:1.9.5'
57-
compile("org.apache.httpcomponents:httpclient:4.3.5") {
57+
compile("org.apache.httpcomponents:httpclient:4.4.1") {
5858
exclude group: 'commons-logging' //DO NOT REMOVE
5959
}
6060
}
@@ -154,11 +154,8 @@ project(':bintray-client-java-service') {
154154
dependencies {
155155
compile project(':bintray-client-java-api')
156156
compile 'commons-lang:commons-lang:2.6'
157-
testCompile 'org.codehaus.groovy:groovy-all:2.4.1'
158157
testCompile group: 'com.timgroup', name: 'jgravatar', version: '1.0'
159-
testCompile("org.spockframework:spock-core:1.0-groovy-2.4") {
160-
exclude module: 'groovy-all'
161-
}
158+
testCompile("org.spockframework:spock-core:0.7-groovy-2.0")
162159
}
163160
}
164161

@@ -177,7 +174,7 @@ def addSlf4J(name) {
177174
}
178175

179176
task wrapper(type: Wrapper) {
180-
gradleVersion = '2.1'
177+
gradleVersion = '2.4'
181178
}
182179

183180
idea {

impl/src/test/groovy/com/jfrog/bintray/client/test/BintraySpecSuite.groovy

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,11 @@ class BintraySpecSuite {
6565
new Attribute<String>('b', 'b', 'e'),
6666
new Attribute<String>('c', 'cee')]
6767

68-
public
69-
static String expectedPkgAttributes = '[[name:c, type:string, values:[cee]], [name:a, type:string, values:[ay1, ay2]], [name:b, type:string, values:[e, b]]]'
70-
public
71-
static String expectedVerAttributes = '[[name:a, type:string, values:[ay1, ay2]], [name:c, type:string, values:[cee]], [name:b, type:string, values:[e, b]]]'
68+
69+
public static String expectedPkgAttributes =
70+
'[[values:[ay1, ay2], name:a, type:string], [values:[cee], name:c, type:string], [values:[e, b], name:b, type:string]]'
71+
public static String expectedVerAttributes =
72+
'[[values:[ay1, ay2], name:a, type:string], [values:[cee], name:c, type:string], [values:[e, b], name:b, type:string]]'
7273

7374
public
7475
static String assortedAttributes = "[{\"name\":\"verAttr2\",\"values\":[\"val1\",\"val2\"],\"type\":\"string\"}," +

impl/src/test/groovy/com/jfrog/bintray/client/test/spec/PackageSpec.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ class PackageSpec extends Specification {
9090
then:
9191
['a', 'b', 'c'] == actualPackage.attribute_names.sort()
9292
and:
93-
expectedPkgAttributes.equalsIgnoreCase(actualAttributes.toString())
93+
expectedPkgAttributes.equalsIgnoreCase(actualAttributes.sort().toString())
9494
}
9595

9696
def 'wrong package gives 404'() {

0 commit comments

Comments
 (0)