Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Several projects in same workspace in Eclipse #141

Closed
blutig opened this issue Apr 8, 2021 · 0 comments
Closed

Several projects in same workspace in Eclipse #141

blutig opened this issue Apr 8, 2021 · 0 comments

Comments

@blutig
Copy link

blutig commented Apr 8, 2021

In this moment, opening several projects created with the "plugin" in the same workspace in Eclipse I cannot do it.

If I create the project MyProject01 and I open it in Eclipse and execute Gradle, the project that are seen are:

MyProject01
api-rest
app-service
jpa-repository
model
usecase

If I create secound project "MyProject02" and I open it in Eclipse and execute Gradle, Eclipse show me the error:
"Workspace already contains a project with name api-rest."

To be able to open severeal project created with the "plugin" in the same workspace in Eclipse I have to change value:

include ':app-service'
project(':app-service').projectDir = file('./applications/app-service')

to

include ':MyProject01_app-service'
project(':MyProject01_app-service').projectDir = file('./applications/app-service')

in all dependecies and modules, and in all projects, in this way i can open severeal project in the same workspace in Eclipse and it shows like this:

MyProject01
MyProject01_api-rest
MyProject01_app-service
MyProject01_jpa-repository
MyProject01_model
MyProject01_usecase

and

MyProject02
MyProject02_api-rest
MyProject02_app-service
MyProject02_jpa-repository
MyProject02_model
MyProject02_usecase

This in the command to create project
gradle cleanArchitecture --package=co.com.bancolombia --type=imperative --name=NameProject

This can be done by adding an attribute to indicate that the project name is used as a prefix in the modules, and that by default the value is false.
gradle cleanArchitecture --package=co.com.bancolombia --type=imperative --name=NameProject --usePrefixWithModule=true

Thank you,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants