Skip to content

Commit 2f5c1f9

Browse files
committed
check for configuration ending with
When flavours are used the configuration won't match ${buildType}RuntimeClasspath but will end with it
1 parent 57abafe commit 2f5c1f9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

test-app/app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -523,7 +523,7 @@ afterEvaluate { project ->
523523
def jars = []
524524
def artifactType = Attribute.of('artifactType', String)
525525
configurations.all { config ->
526-
if (config.name == "${buildType.toLowerCase()}RuntimeClasspath") {
526+
if (config.name.toLowerCase().endsWith("${buildType}RuntimeClasspath".toLowerCase())) {
527527
config.incoming.artifactView {
528528
attributes {
529529
it.attribute(artifactType, 'jar')

0 commit comments

Comments
 (0)