File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -779,17 +779,18 @@ task buildMetadata(type: BuildToolTask) {
779
779
def selectedBuildType = project. ext. selectedBuildType
780
780
781
781
rootProject. subprojects {
782
+
782
783
def projectClassesDir = new File (" $it . buildDir /intermediates/javac" )
783
784
def projectKotlinClassesDir = new File (" $it . buildDir /tmp/kotlin-classes" )
784
-
785
- assert projectClassesDir. exists()
786
785
787
- def projectClassesSubDirs = projectClassesDir. listFiles()
788
- for (File subDir : projectClassesSubDirs) {
789
- if (! classesSubDirs. contains(subDir)) {
790
- classesSubDirs. add(subDir)
786
+ if (projectClassesDir. exists()) {
787
+ def projectClassesSubDirs = projectClassesDir. listFiles()
788
+ for (File subDir : projectClassesSubDirs) {
789
+ if (! classesSubDirs. contains(subDir)) {
790
+ classesSubDirs. add(subDir)
791
+ }
792
+ }
791
793
}
792
- }
793
794
794
795
if (projectKotlinClassesDir. exists()) {
795
796
def projectKotlinClassesSubDirs = projectKotlinClassesDir. listFiles();
You can’t perform that action at this time.
0 commit comments