LPS-45150 fix portal-and-shared refactor. Gradle build files should use the correct task class