• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download

<lambda>null1 plugins { id("com.android.security.autorepro.submission") }
2 
getSubprojectsnull3 fun getSubprojects(): List<Project> {
4     // glob for gradle direct subprojects
5     return fileTree(projectDir) { include("*/build.gradle*") }
6         .map {
7             val path = projectDir.toPath().relativize(it.toPath().getParent())
8             val gradlePath = path.toString().replace('/', ':')
9             gradlePath
10         }
11         .filter({
12             // filter out self build.gradle*
13             !it.isEmpty()
14         })
15         .map { project(it) }
16 }
17 
18 // NOTE! all AutoRepro dependencies must be subprojects
<lambda>null19 dependencies {
20     // Automatically add each subproject as an AutoRepro Test Resource
21     getSubprojects().forEach { testResource(it) }
22 }
23 
<lambda>null24 submission {
25     // Please configure your submission attributes here
26 }
27