build.gradle (1093B)
1 /* This Source Code Form is subject to the terms of the Mozilla Public 2 * License, v. 2.0. If a copy of the MPL was not distributed with this 3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 4 5 plugins { 6 alias(libs.plugins.kotlin.dsl) 7 } 8 9 layout.buildDirectory.set(file("${gradle.mozconfig.topobjdir}/gradle/build/mobile/android/android-components/plugins/dependencies")) 10 11 repositories { 12 gradle.mozconfig.substs.GRADLE_MAVEN_REPOSITORIES.each { repository -> 13 maven { 14 url = repository 15 if (gradle.mozconfig.substs.ALLOW_INSECURE_GRADLE_REPOSITORIES) { 16 allowInsecureProtocol = true 17 } 18 } 19 } 20 } 21 22 gradlePlugin { 23 plugins.register("mozac.DependenciesPlugin") { 24 id = "mozac.DependenciesPlugin" 25 implementationClass = "DependenciesPlugin" 26 } 27 } 28 29 dependencies { 30 testImplementation platform(libs.junit.bom) 31 testImplementation libs.junit.jupiter 32 testImplementation libs.mockito 33 testRuntimeOnly libs.junit.platform.launcher 34 } 35 36 test { 37 useJUnitPlatform {} 38 }