mirror of
https://github.com/material-components/material-components-android.git
synced 2026-02-20 08:39:55 +08:00
Bazel is happier if Java/Java test roots are named 'java' and 'javatests', and
this will mean that once we create a BUILD file for
android/support/design/{widget,internal}/ we'll no longer need a custom package
specified in our build (which tends to cause build problems that manifest quite
weirdly). This commit doesn't attempt to refactor the build at all yet, and is
just a pure move.
PiperOrigin-RevId: 178060739
39 lines
809 B
Groovy
39 lines
809 B
Groovy
apply plugin: 'com.android.library'
|
|
apply plugin: 'com.github.dcendents.android-maven'
|
|
|
|
archivesBaseName = getArchivesBaseName(project.name)
|
|
version = rootProject.ext.mdcLibraryVersion
|
|
|
|
dependencies {
|
|
api compatibility("annotations")
|
|
api compatibility("compat")
|
|
api compatibility("v7/appcompat")
|
|
|
|
api project(fromPath("lib"))
|
|
api project(fromPath("lib/java/android/support/design/stateful"))
|
|
}
|
|
|
|
android {
|
|
sourceSets {
|
|
main.manifest.srcFile 'AndroidManifest.xml'
|
|
main.java.srcDir '.'
|
|
main.java.excludes = [
|
|
'**/build/**',
|
|
]
|
|
main.res.srcDirs = [
|
|
'res',
|
|
'res-public'
|
|
]
|
|
main.assets.srcDir 'assets'
|
|
main.resources.srcDir 'res'
|
|
}
|
|
}
|
|
|
|
uploadArchives {
|
|
repositories {
|
|
mavenDeployer {
|
|
repository(url: rootProject.ext.mavenRepoUrl)
|
|
}
|
|
}
|
|
}
|