diff options
Diffstat (limited to 'processor/build.gradle')
-rw-r--r-- | processor/build.gradle | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/processor/build.gradle b/processor/build.gradle deleted file mode 100644 index ebdb4b780..000000000 --- a/processor/build.gradle +++ /dev/null @@ -1,48 +0,0 @@ -new RoboJavaModulePlugin( - deploy: true -).apply(project) - -class GenerateSdksFileTask extends DefaultTask { - @OutputFile File outFile - - @TaskAction - public void writeProperties() throws Exception { - File outDir = outFile.parentFile - if (!outDir.directory) outDir.mkdirs() - outFile.withPrintWriter { out -> - out << "# GENERATED by ${this} -- do not edit\n" - - AndroidSdk.ALL_SDKS.each { androidSdk -> - def config = project.configurations.create("processor_sdk${androidSdk.apiLevel}") - project.dependencies.add("processor_sdk${androidSdk.apiLevel}", androidSdk.coordinates) - def sdkPath = config.files.first().getAbsolutePath() - out << "${sdkPath}\n" - } - } - } -} - -task('generateSdksFile', type: GenerateSdksFileTask) { - dependsOn(tasks['processResources']) - - File outDir = project.sourceSets['main'].output.resourcesDir - outFile = new File(outDir, 'sdks.txt') -} - -tasks['classes'].dependsOn(generateSdksFile) - -dependencies { - implementation project(":annotations") - - compileOnly "com.google.code.findbugs:jsr305:3.0.2" - implementation "com.google.guava:guava:20.0" - implementation "com.google.code.gson:gson:2.8.2" - implementation 'ch.raffael.pegdown-doclet:pegdown-doclet:1.3' - - implementation files(org.gradle.internal.jvm.Jvm.current().getToolsJar()) - - testImplementation "junit:junit:4.12" - testImplementation "org.mockito:mockito-core:2.5.4" - testImplementation "com.google.testing.compile:compile-testing:0.15" - testImplementation "com.google.truth:truth:0.42" -} |