travisc ab2fec6da4 Move lib/src/ to lib/java/, and lib/jvmtests/javatests/ to lib/javatests/.
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
2018-01-11 10:50:18 -05:00

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)
}
}
}