xref: /aosp_15_r20/external/dagger2/javatests/artifacts/hilt-android/simpleKotlin/build.gradle (revision f585d8a307d0621d6060bd7e80091fdcbf94fe27)
1/*
2 * Copyright (C) 2020 The Dagger Authors.
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
17buildscript {
18    ext {
19        kotlin_version = '1.9.20'
20        ksp_version = "$kotlin_version-1.0.14"
21        agp_version = System.getenv('AGP_VERSION') ?: "7.1.2"
22    }
23    repositories {
24        google()
25        mavenCentral()
26        mavenLocal()
27    }
28    dependencies {
29        classpath "com.android.tools.build:gradle:$agp_version"
30        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
31        classpath "com.google.devtools.ksp:symbol-processing-gradle-plugin:$ksp_version"
32        classpath 'com.google.dagger:hilt-android-gradle-plugin:LOCAL-SNAPSHOT'
33    }
34}
35
36allprojects {
37    repositories {
38      google()
39      mavenCentral()
40      mavenLocal()
41    }
42    // TODO(bcorso): Consider organizing all projects under a single project
43    // that share a build.gradle configuration to reduce the copy-paste.
44    // Local tests: Adds logs for individual local tests
45    tasks.withType(Test) {
46        testLogging {
47            exceptionFormat "full"
48            showCauses true
49            showExceptions true
50            showStackTraces true
51            showStandardStreams true
52            events = ["passed", "skipped", "failed", "standardOut", "standardError"]
53        }
54    }
55}
56