This project demonstrates the problem with isolated gradle projects feature and maven-publish plugin.
Run the command:
./gradlew publishMavenPublicationToMavenLocal
It will fail with error:
Unknown location: Project ':app' cannot access 'Project.group' functionality on another project ':lib'
If we disable the isolated project feature in gradle.properties, then everything works fine.