mirror of
https://github.com/material-components/material-components-android.git
synced 2026-02-04 00:44:14 +08:00
47 lines
1.6 KiB
Groovy
47 lines
1.6 KiB
Groovy
apply plugin: 'com.android.library'
|
|
apply plugin: 'com.github.dcendents.android-maven'
|
|
|
|
archivesBaseName = getArchivesBaseName(project.name)
|
|
version = rootProject.ext.mdcLibraryVersion
|
|
|
|
dependencies {
|
|
implementation compatibility("annotation")
|
|
implementation compatibility("appcompat")
|
|
|
|
implementation project(fromPath("lib/java/com/google/android/material/bottomnavigation"))
|
|
implementation project(fromPath("lib/java/com/google/android/material/bottomsheet"))
|
|
implementation project(fromPath("lib/java/com/google/android/material/button"))
|
|
implementation project(fromPath("lib/java/com/google/android/material/card"))
|
|
implementation project(fromPath("lib/java/com/google/android/material/checkbox"))
|
|
implementation project(fromPath("lib/java/com/google/android/material/chip"))
|
|
implementation project(fromPath("lib/java/com/google/android/material/color"))
|
|
implementation project(fromPath("lib/java/com/google/android/material/dialog"))
|
|
implementation project(fromPath("lib/java/com/google/android/material/navigation"))
|
|
implementation project(fromPath("lib/java/com/google/android/material/radiobutton"))
|
|
implementation project(fromPath("lib/java/com/google/android/material/switchmaterial"))
|
|
implementation project(fromPath("lib/java/com/google/android/material/typography"))
|
|
}
|
|
|
|
android {
|
|
sourceSets {
|
|
main.manifest.srcFile 'AndroidManifest.xml'
|
|
main.java.srcDir '.'
|
|
main.java.excludes = [
|
|
'**/build/**',
|
|
]
|
|
main.res.srcDirs = [
|
|
'res',
|
|
'res-public'
|
|
]
|
|
main.assets.srcDir 'assets'
|
|
}
|
|
}
|
|
|
|
uploadArchives {
|
|
repositories {
|
|
mavenDeployer {
|
|
repository(url: rootProject.ext.mavenRepoUrl)
|
|
}
|
|
}
|
|
}
|