Skip to content

Commit

Permalink
Last attempt
Browse files Browse the repository at this point in the history
  • Loading branch information
alwx committed Apr 4, 2023
1 parent 4193750 commit f028f1d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions android/build.gradle
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import java.util.stream.Collectors

// Top-level build file where you can add configuration options common to all sub-projects/modules.

/**
Expand All @@ -17,8 +19,7 @@ def depsSet = new TreeSet<String>()

task printDependencies {
doLast {
println("The compileOnlyList \n ---------")
println(depsSet)
println(depsSet.stream().sorted().collect(Collectors.toList()))
}
}

Expand Down Expand Up @@ -62,7 +63,7 @@ allprojects {
project.configurations.all { config ->
if (!config.name.toLowerCase().startsWith('test')) {
config.allDependencies.all { dep ->
if (dep.group && dep.name && dep.version) {
if (dep.group && dep.name && dep.version && dep.version != "unspecified") {
depsSet.add("${dep.group}:${dep.name}:${dep.version}")
}
}
Expand Down

0 comments on commit f028f1d

Please sign in to comment.