liferay / liferay-mobile-sdk

Other
47 stars 56 forks source link

Using "/" in 'modules/$context' is deprecated in Gradle #83

Open frangeveris opened 4 years ago

frangeveris commented 4 years ago

When trying to generate the mobile sdk for a DXP server, I've checked out the tags/builder-7.1.0 from your repo, run the ./gradlew createModule -P=all --console plain --no-daemon input the data requested executed gradlew generate and gradlew jar

What I get is

The project name 'modules/mcdrp' contains at least one of the following characters: [ , /, \, :, <, >, ", ?, *, |]. This has been deprecated and is scheduled to be removed in Gradle 5.0. Set the 'rootProject.name' or adjust the 'include' statement (see https://docs.gradle.org/4.4/dsl/org.gradle.api.initialization.Settings.html#org.gradle.api.initialization.Settings:include(java.lang.String[]) for more details).

I've dived in the files, and found that settings.gradle had include "modules/${module.name}" which I promptly changed into include "modules:${module.name}" I re-ran gradlew generate and now I get

Task 'generate' not found in project ':modules:mcdrp'.

I deleted the (empty) generated modules and started from scratch with ./gradlew createModule -P=all --console plain --no-daemon and got

Execution failed for task ':createModule'.

Could not normalize path for file 'C:\Dev\liferay-mobile-sdk:modules:mcdrp'.

Can you provide some insight, please?