mirror of
https://github.com/material-components/material-components-android.git
synced 2026-01-21 04:22:42 +08:00
40 lines
1.0 KiB
Groovy
40 lines
1.0 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 compatibility("core")
|
|
|
|
implementation project(fromPath("lib/java/com/google/android/material/internal"))
|
|
implementation project(fromPath("lib/java/com/google/android/material/resources"))
|
|
implementation project(fromPath("lib/java/com/google/android/material/ripple"))
|
|
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)
|
|
}
|
|
}
|
|
}
|