diff --git a/openbis_standard_technologies/build.gradle b/openbis_standard_technologies/build.gradle
index 10296d8abf578d74c193d852b44572651703076b..5d823361a6a0bdfb21f9b692075006e0e71d75a0 100644
--- a/openbis_standard_technologies/build.gradle
+++ b/openbis_standard_technologies/build.gradle
@@ -457,8 +457,8 @@ task deleteOpenbisNgUi(type: Delete) {
   delete 'dist/core-plugins/openbis-ng-ui/1/as/webapps/openbis-ng-ui/html'
 }
 
-task copyOpenbisNgUiToCorePlugins(type: Copy, dependsOn: [deleteOpenbisNgUi, project(':openbis_ng_ui').tasks.build]) {
-    from project(':openbis_ng_ui').file('react/build')
+task copyOpenbisNgUiToCorePlugins(type: Copy, dependsOn: [deleteOpenbisNgUi, ':openbis_ng_ui:build']) {
+    from project(':openbis_ng_ui').file('build')
     into file('dist/core-plugins/openbis-ng-ui/1/as/webapps/openbis-ng-ui/html')
 }