xref: /aosp_15_r20/tools/metalava/build.gradle.kts (revision 115816f9299ab6ddd6b9673b81f34e707f6bacab)
1*115816f9SAndroid Build Coastguard Worker /*
2*115816f9SAndroid Build Coastguard Worker  * Copyright (C) 2018 The Android Open Source Project
3*115816f9SAndroid Build Coastguard Worker  *
4*115816f9SAndroid Build Coastguard Worker  * Licensed under the Apache License, Version 2.0 (the "License");
5*115816f9SAndroid Build Coastguard Worker  * you may not use this file except in compliance with the License.
6*115816f9SAndroid Build Coastguard Worker  * You may obtain a copy of the License at
7*115816f9SAndroid Build Coastguard Worker  *
8*115816f9SAndroid Build Coastguard Worker  *      http://www.apache.org/licenses/LICENSE-2.0
9*115816f9SAndroid Build Coastguard Worker  *
10*115816f9SAndroid Build Coastguard Worker  * Unless required by applicable law or agreed to in writing, software
11*115816f9SAndroid Build Coastguard Worker  * distributed under the License is distributed on an "AS IS" BASIS,
12*115816f9SAndroid Build Coastguard Worker  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13*115816f9SAndroid Build Coastguard Worker  * See the License for the specific language governing permissions and
14*115816f9SAndroid Build Coastguard Worker  * limitations under the License.
15*115816f9SAndroid Build Coastguard Worker  */
16*115816f9SAndroid Build Coastguard Worker 
17*115816f9SAndroid Build Coastguard Worker import com.android.tools.metalava.CREATE_ARCHIVE_TASK
18*115816f9SAndroid Build Coastguard Worker import com.android.tools.metalava.buildinfo.CREATE_BUILD_INFO_TASK
19*115816f9SAndroid Build Coastguard Worker import com.android.tools.metalava.buildinfo.CreateAggregateLibraryBuildInfoFileTask.Companion.CREATE_AGGREGATE_BUILD_INFO_FILES_TASK
20*115816f9SAndroid Build Coastguard Worker 
21*115816f9SAndroid Build Coastguard Worker defaultTasks =
22*115816f9SAndroid Build Coastguard Worker     mutableListOf(
23*115816f9SAndroid Build Coastguard Worker         "installDist",
24*115816f9SAndroid Build Coastguard Worker         "test",
25*115816f9SAndroid Build Coastguard Worker         "publish",
26*115816f9SAndroid Build Coastguard Worker         CREATE_ARCHIVE_TASK,
27*115816f9SAndroid Build Coastguard Worker         CREATE_BUILD_INFO_TASK,
28*115816f9SAndroid Build Coastguard Worker         CREATE_AGGREGATE_BUILD_INFO_FILES_TASK,
29*115816f9SAndroid Build Coastguard Worker         "lint",
30*115816f9SAndroid Build Coastguard Worker         "ktCheck",
31*115816f9SAndroid Build Coastguard Worker     )
32*115816f9SAndroid Build Coastguard Worker 
33*115816f9SAndroid Build Coastguard Worker project.tasks.register(
34*115816f9SAndroid Build Coastguard Worker     CREATE_AGGREGATE_BUILD_INFO_FILES_TASK,
35*115816f9SAndroid Build Coastguard Worker     com.android.tools.metalava.buildinfo.CreateAggregateLibraryBuildInfoFileTask::class
36*115816f9SAndroid Build Coastguard Worker )
37