| buildscript { |
| repositories { |
| maven { url = uri(rootProject.cloneArtifacts.repository) } |
| } |
| dependencies { |
| classpath "com.jfrog.bintray.gradle:gradle-bintray-plugin:1.0" |
| } |
| } |
| |
| apply plugin: 'java' |
| apply plugin: 'sdk-java-lib' |
| |
| group = 'com.android.tools.lint' |
| archivesBaseName = 'lint' |
| version = rootProject.ext.baseVersion |
| |
| dependencies { |
| compile project(':base:lint-checks') |
| compile 'org.eclipse.jdt.core.compiler:ecj:4.4' |
| |
| testCompile project(':base:lint-tests') |
| testCompile 'org.mockito:mockito-all:1.9.5' |
| testCompile 'org.codehaus.groovy:groovy-all:2.2.1' |
| } |
| |
| sourceSets { |
| main.resources.srcDir 'src/main/java' |
| test.resources.srcDir 'src/test/java' |
| } |
| |
| test { |
| maxParallelForks = Runtime.runtime.availableProcessors() / 2 |
| } |
| |
| sdk { |
| linux { |
| item('etc/lint') { executable true } |
| } |
| mac { |
| item('etc/lint') { executable true } |
| } |
| windows { |
| item 'etc/lint.bat' |
| } |
| } |
| |
| // configure the manifest of the sdkJar task. |
| sdkJar.manifest.attributes("Main-Class": "com.android.tools.lint.Main") |
| |
| project.ext.pomName = 'Android Lint Tool' |
| project.ext.pomDesc = 'Lint tools. Both a Command line tool and a library to add lint features to other tools' |
| |
| apply from: "$rootDir/buildSrc/base/publish.gradle" |
| apply from: "$rootDir/buildSrc/base/bintray.gradle" |
| apply from: "$rootDir/buildSrc/base/javadoc.gradle" |