Skip to content
This repository has been archived by the owner on Oct 11, 2024. It is now read-only.

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

Open
frangeveris opened this issue Nov 4, 2020 · 0 comments
Open

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

frangeveris opened this issue Nov 4, 2020 · 0 comments

Comments

@frangeveris
Copy link

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?

@frangeveris frangeveris changed the title Issue with "/" Using "/" in 'modules/$context' is deprecated in Gradle Nov 4, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant