File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed
plugin-build/plugin/src/main/kotlin/com/mikepenz/aboutlibraries/plugin Expand file tree Collapse file tree 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() {
9191 internal abstract val variantToDependencyData: MapProperty <String , List <DependencyData >>
9292
9393 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+ })
10098
10199 if (! includeMetaData.isPresent) {
102100 includeMetaData.set(project.provider {
You can’t perform that action at this time.
0 commit comments