File tree 1 file changed +5
-11
lines changed
buildSrc/src/main/java/com/google/firebase/gradle/plugins/publish 1 file changed +5
-11
lines changed Original file line number Diff line number Diff line change @@ -120,16 +120,9 @@ public void apply(Project project) {
120
120
121
121
Set <String > allFirebaseProjects =
122
122
project .getSubprojects ().stream ()
123
- .filter (
124
- sub ->
125
- sub .getExtensions ().findByType (FirebaseLibraryExtension .class )
126
- != null )
127
- .map (
128
- sub ->
129
- sub .getExtensions ()
130
- .findByType (FirebaseLibraryExtension .class )
131
- .artifactId
132
- .get ())
123
+ .map (sub -> sub .getExtensions ().findByType (FirebaseLibraryExtension .class ))
124
+ .filter (ext -> ext != null )
125
+ .map (ext -> ext .artifactId .get ())
133
126
.collect (Collectors .toSet ());
134
127
135
128
Set <FirebaseLibraryExtension > projectsToPublish =
@@ -140,7 +133,8 @@ public void apply(Project project) {
140
133
project
141
134
.project (name )
142
135
.getExtensions ()
143
- .getByType (FirebaseLibraryExtension .class ))
136
+ .findByType (FirebaseLibraryExtension .class ))
137
+ .filter (ext -> ext != null )
144
138
.flatMap (lib -> lib .getLibrariesToRelease ().stream ())
145
139
.collect (Collectors .toSet ());
146
140
project
You can’t perform that action at this time.
0 commit comments