Skip to content

Commit

Permalink
(test) Add test for transitive deps in the implementation configuration.
Browse files Browse the repository at this point in the history
  • Loading branch information
John Engelman committed Sep 16, 2018
1 parent 265e5cf commit c4abfc3
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -499,8 +499,13 @@ class ShadowPluginSpec extends PluginSpecification {
.insertFile('api.properties', 'api')
.publish()

repo.module('shadow', 'implementation-dep', '1.0')
.insertFile('implementation-dep.properties', 'implementation-dep')
.publish()

repo.module('shadow', 'implementation', '1.0')
.insertFile('implementation.properties', 'implementation')
.dependsOn('implementation-dep')
.publish()

repo.module('shadow', 'compile', '1.0')
Expand Down Expand Up @@ -531,7 +536,7 @@ class ShadowPluginSpec extends PluginSpecification {

then:
contains(output, ['api.properties', 'implementation.properties', 'compile.properties',
'runtime.properties', 'runtimeOnly.properties'])
'runtime.properties', 'runtimeOnly.properties', 'implementation-dep.properties'])
}

def "doesn't include compileOnly configuration by default"() {
Expand Down

0 comments on commit c4abfc3

Please sign in to comment.