blob: bc24b5fb6c697f4719851de54d699865d51996bc [file] [log] [blame]
buildscript {
repositories {
maven { url = uri(rootProject.cloneArtifacts.repository) }
}
dependencies {
classpath "com.jfrog.bintray.gradle:gradle-bintray-plugin:1.0"
}
}
apply plugin: 'groovy'
apply plugin: 'clone-artifacts'
apply plugin: 'idea'
apply plugin: 'jacoco'
dependencies {
compile project(':base:gradle-core')
testCompile 'junit:junit:4.12'
testCompile project(':base:project-test-lib')
}
group = 'com.android.tools.build'
archivesBaseName = 'gradle'
version = rootProject.ext.buildVersion
project.ext.pomName = 'Gradle Plug-in for Android'
project.ext.pomDesc = 'Gradle plug-in to build Android applications.'
apply from: "$rootDir/buildSrc/base/publish.gradle"
apply from: "$rootDir/buildSrc/base/bintray.gradle"
jar.manifest.attributes("Plugin-Version": version)
jar.manifest.attributes("Inception-Date":"${Calendar.getInstance().get(Calendar.YEAR)}:" +
"${Calendar.getInstance().get(Calendar.MONTH)}:${Calendar.getInstance().get(Calendar.DATE)}")
test {
environment("CUSTOM_REPO", rootProject.file("../out/repo"))
testLogging {
events "failed"
}
maxParallelForks = Runtime.runtime.availableProcessors() / 2
}
groovydoc {
exclude "**/internal/**"
includePrivate false
docTitle "Gradle Plugin for Android"
header ""
footer "Copyright (C) 2012 The Android Open Source Project"
overview ""
}
task javadocJar(type: Jar, dependsOn:groovydoc) {
classifier 'javadoc'
from groovydoc.destinationDir
}
// Only package JavaDoc if using --init-script=buildSrc/base/release.gradle
if (project.has("release")) {
artifacts {
archives javadocJar
}
}