blob: 4a2475c62f03875f0a44ac877d78a3a5c0aeacf4 [file] [log] [blame]
apply plugin: 'java'
apply plugin: 'clone-artifacts'
apply plugin: 'maven'
repositories {
maven { url = uri(rootProject.cloneArtifacts.repository) }
}
test {
// todo: disable this for CI since we'll use the CI UI to do the report.
reports.html.enabled = true
}
apply from: "$rootDir/buildSrc/base/base.gradle"
// Custom Upload task with an @OutputDirectory to allow up-to-date check.
class LocalUpload extends Upload {
@OutputDirectory
File getArtifact() {
String artifactLocation = "${project.rootProject.ext.localRepo}/" +
"${project.group.replace('.', File.separator)}/${project.archivesBaseName}/" +
"${project.version}"
return new File(artifactLocation)
}
}
task publishLocal(type: LocalUpload) {
configuration = configurations.archives
repositories {
mavenDeployer {
repository(url: uri("$rootProject.ext.localRepo"))
pom.project {
url 'http://tools.android.com'
inceptionYear '2007'
licenses {
license {
name 'The Apache Software License, Version 2.0'
url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
distribution 'repo'
}
}
scm {
url 'https://android.googlesource.com/platform/tools/base'
connection 'git://android.googlesource.com/platform/tools/base.git'
}
developers {
developer {
name 'The Android Open Source Project'
}
}
}
}
}
}