-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathbuild.gradle
82 lines (75 loc) · 2.79 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
/*
* MIT License
*
* Copyright (c) 2024. Grabtaxi Holdings Pte Ltd (GRAB), All rights reserved.
*
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE
*/
/*
* This file was generated by the Gradle 'init' task.
*
* This generated file contains a sample Gradle plugin project to get you started.
* For more details take a look at the Writing Custom Plugins chapter in the Gradle
* User Manual available at https://docs.gradle.org/7.5.1/userguide/custom_plugins.html
* This project uses @Incubating APIs which are subject to change.
*/
plugins {
id "com.grab.sizer.build.kotlin"
alias(libs.plugins.kotlin.dsl)
alias(libs.plugins.gradle.plugin.publish)
id "maven-publish"
}
apply from: "gradle/publishing.gradle"
dependencies {
compileOnly libs.android.gradle.plugin
compileOnly libs.android.gradle.api
implementation project(':app-sizer')
implementation libs.google.dagger
implementation libs.gson
kapt libs.dagger.compiler
testImplementation libs.junit
testImplementation gradleTestKit()
testImplementation libs.android.gradle.plugin
testImplementation libs.android.gradle.api
}
pluginBundle {
mavenCoordinates {
groupId = project.group
artifactId = project.name
}
}
gradlePlugin {
website = 'https://grab.github.io/app-sizer/'
vcsUrl = 'https://github.com/grab/app-sizer.git'
plugins {
appSizerPlugin {
id = 'com.grab.sizer'
implementationClass = 'com.grab.plugin.sizer.AppSizerPlugin'
displayName = 'App Sizer Plugin'
description = project.description
tags.set(['android', 'size', 'analysis', 'app-size'])
}
}
}
tasks.withType(AbstractPublishToMaven).configureEach { publishTask ->
publishTask.mustRunAfter(tasks.withType(Sign))
}