Skip to content

Commit

Permalink
Test fixes for Gradle 2.12 (new dependency configurations and descrip…
Browse files Browse the repository at this point in the history
…tions)
  • Loading branch information
DanielThomas committed Mar 22, 2016
1 parent ac7d7ce commit 7586139
Showing 1 changed file with 36 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,23 +48,39 @@ dependencies {

then:
result.standardOutput.contains("""
compile - Compile classpath for source set 'main'.
compile - Dependencies for source set 'main'.
\\--- foo:bar:2.4
\\--- custom:baz:5.1.27
compileClasspath - Compile classpath for source set 'main'.
\\--- foo:bar:2.4
\\--- custom:baz:5.1.27
compileOnly - Compile dependencies for source set 'main'.
\\--- foo:bar:2.4
\\--- custom:baz:5.1.27
default - Configuration for default artifacts.
\\--- foo:bar:2.4
\\--- custom:baz:5.1.27
runtime - Runtime classpath for source set 'main'.
runtime - Runtime dependencies for source set 'main'.
\\--- foo:bar:2.4
\\--- custom:baz:5.1.27
testCompile - Dependencies for source set 'test'.
\\--- foo:bar:2.4
\\--- custom:baz:5.1.27
testCompileClasspath - Compile classpath for source set 'test'.
\\--- foo:bar:2.4
\\--- custom:baz:5.1.27
testCompile - Compile classpath for source set 'test'.
testCompileOnly - Compile dependencies for source set 'test'.
\\--- foo:bar:2.4
\\--- custom:baz:5.1.27
testRuntime - Runtime classpath for source set 'test'.
testRuntime - Runtime dependencies for source set 'test'.
\\--- foo:bar:2.4
\\--- custom:baz:5.1.27
""")
Expand Down Expand Up @@ -96,19 +112,31 @@ dependencies {

then:
result.standardOutput.contains("""
compile - Compile classpath for source set 'main'.
compile - Dependencies for source set 'main'.
\\--- foo:bar:2.4
compileClasspath - Compile classpath for source set 'main'.
\\--- foo:bar:2.4
compileOnly - Compile dependencies for source set 'main'.
\\--- foo:bar:2.4
default - Configuration for default artifacts.
\\--- foo:bar:2.4
runtime - Runtime classpath for source set 'main'.
runtime - Runtime dependencies for source set 'main'.
\\--- foo:bar:2.4
testCompile - Dependencies for source set 'test'.
\\--- foo:bar:2.4
testCompileClasspath - Compile classpath for source set 'test'.
\\--- foo:bar:2.4
testCompile - Compile classpath for source set 'test'.
testCompileOnly - Compile dependencies for source set 'test'.
\\--- foo:bar:2.4
testRuntime - Runtime classpath for source set 'test'.
testRuntime - Runtime dependencies for source set 'test'.
\\--- foo:bar:2.4
""")
!result.standardOutput.contains('custom:baz:5.1.27')
Expand Down

0 comments on commit 7586139

Please sign in to comment.