Create InspectionPlugin
Gradle plugin that will do common setup for inspection projects.
Currently it includes META-INF/services/* resources in built artifact.
More functionality will be added to it later.
bug: 146128103
Test: SqliteInspectorTest doesn't require anymore copy-pasted
META-INF/service/* file to succeed.
Change-Id: I8a3c79acef111f0375f774362e8d58a961d344f8
diff --git a/buildSrc/build.gradle b/buildSrc/build.gradle
index 1a08e10..2cc4416 100644
--- a/buildSrc/build.gradle
+++ b/buildSrc/build.gradle
@@ -63,6 +63,10 @@
sourceSets {
main.java.srcDirs += "${supportRootFolder}/benchmark/gradle-plugin/src/main/kotlin"
main.resources.srcDirs += "${supportRootFolder}/benchmark/gradle-plugin/src/main/resources"
+
+ main.java.srcDirs += "${supportRootFolder}/inspection/inspection-gradle-plugin/src/main/kotlin"
+ main.resources.srcDirs += "${supportRootFolder}/inspection/inspection-gradle-plugin/src/main" +
+ "/resources"
}
gradlePlugin {
@@ -71,5 +75,9 @@
id = 'androidx.benchmark'
implementationClass = 'androidx.benchmark.gradle.BenchmarkPlugin'
}
+ inspection {
+ id = 'androidx.inspection'
+ implementationClass = 'androidx.inspection.gradle.InspectionPlugin'
+ }
}
}