File tree 1 file changed +4
-6
lines changed
plugin-build/plugin/src/main/kotlin/com/mikepenz/aboutlibraries/plugin
1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -91,12 +91,10 @@ abstract class BaseAboutLibrariesTask : DefaultTask() {
91
91
internal abstract val variantToDependencyData: MapProperty <String , List <DependencyData >>
92
92
93
93
open fun configure () {
94
- if (! excludeFields.isPresent) {
95
- excludeFields.set(project.provider {
96
- val config = extension.exports.findByName(variant.getOrElse(" " ))
97
- config?.excludeFields?.orNull ? : extension.export.excludeFields.get()
98
- })
99
- }
94
+ excludeFields.set(project.provider {
95
+ val config = extension.exports.findByName(variant.getOrElse(" " ))
96
+ config?.excludeFields?.orNull?.takeIf { it.isNotEmpty() } ? : extension.export.excludeFields.get()
97
+ })
100
98
101
99
if (! includeMetaData.isPresent) {
102
100
includeMetaData.set(project.provider {
You can’t perform that action at this time.
0 commit comments