1 /* 2 * Copyright 2024 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 // repositories of plugins <lambda>null18pluginManagement { 19 repositories { 20 mavenLocal() 21 gradlePluginPortal() 22 google() 23 mavenCentral() 24 } 25 } 26 27 // repositories of project dependencies <lambda>null28dependencyResolutionManagement { 29 repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS) 30 repositories { 31 google() 32 mavenCentral() 33 } 34 } 35 <lambda>null36plugins { 37 // Apply the foojay-resolver plugin to allow automatic download of JDKs 38 id("org.gradle.toolchains.foojay-resolver-convention") version "0.4.0" 39 id("com.android.security.autorepro.submission") version "1.0.0-alpha1" apply false 40 } 41 42 rootProject.name = "autorepro-example" 43 44 // glob and include gradle projects <lambda>null45fileTree(rootDir) { 46 // only include subprojects of ":submission" 47 include("submission/**/build.gradle*") 48 // don't include subprojects from build directories 49 exclude("**/build") 50 } <lambda>null51 .forEach { 52 val path = rootDir.toPath().relativize(it.toPath().getParent()) 53 val gradlePath = path.toString().replace('/', ':') 54 include(gradlePath) 55 } 56