This is an automated email from the ASF dual-hosted git repository.
deepak pushed a commit to branch release22.01
in repository https://gitbox.apache.org/repos/asf/ofbiz-framework.git
The following commit(s) were added to refs/heads/release22.01 by this push:
new 6480585029 Fixed delete plugin documentation task, instead of contains
used proper condition to find the plugin with id
6480585029 is described below
commit 6480585029f1ddc14e2541d25f62920b9b876c8b
Author: Deepak Dixit <[email protected]>
AuthorDate: Fri Dec 23 10:58:02 2022 +0530
Fixed delete plugin documentation task, instead of contains used proper
condition to find the plugin with id
---
build.gradle | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/build.gradle b/build.gradle
index dde2914bd1..90ad4b5bf9 100644
--- a/build.gradle
+++ b/build.gradle
@@ -593,7 +593,7 @@ task deletePluginDocumentation {
if (!project.hasProperty('pluginId')) {
throw new GradleException('Missing property \"pluginId\"')
}
- if(!activeComponents().contains(pluginId)) {
+ if(!(activeComponents().stream().anyMatch { it.name == pluginId })) {
throw new GradleException("Could not find plugin with id
${pluginId}")
}
delete "${buildDir}/asciidoc/plugins/${pluginId}"