Build: Extract jarContentsFromConfiguration dsl helper

This commit is contained in:
Vyacheslav Gerasimov
2019-05-15 23:48:04 +03:00
parent 31c3955940
commit 64f2298703
+4 -1
View File
@@ -311,8 +311,11 @@ fun moduleName(projectPath: String) = rootProject.name + projectPath.replace(':'
fun RecursiveArtifact.jarContentsFromEmbeddedConfiguration(project: Project) {
val embedded = project.configurations.findByName("embedded") ?: return
jarContentsFromConfiguration(embedded)
}
val resolvedArtifacts = embedded
fun RecursiveArtifact.jarContentsFromConfiguration(configuration: Configuration) {
val resolvedArtifacts = configuration
.resolvedConfiguration
.resolvedArtifacts