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

gradle not found when trying to generate model files #10

Closed
j4nos opened this issue Jun 17, 2016 · 2 comments
Closed

gradle not found when trying to generate model files #10

j4nos opened this issue Jun 17, 2016 · 2 comments

Comments

@j4nos
Copy link

j4nos commented Jun 17, 2016

Where should I put in the following command on a Mac, in terminal? Gradle shuld be preinstalled on my Mac?

gradle :modelgen:run -Pargs="-f /path/to/model/todo.model.json -O /path/to/output/src/main/java"

I do not see gradle script in the project folder.

Kukodas-MacBook-Air:MovieBuffs3 kukodajanos$ ls
MovieBuffs3.iml gradle local.properties
app gradle.properties settings.gradle
build gradlew
build.gradle gradlew.bat
Kukodas-MacBook-Air:MovieBuffs3 kukodajanos$ gradle
-bash: gradle: command not found

@dkharrat
Copy link
Owner

dkharrat commented Jun 17, 2016

Looks like you don't have gradle installed in your system. You can use the provided gradle script (gradlew, located in the root of the project) instead:

./gradlew :modelgen:run -Pargs="-f /path/to/model/todo.model.json -O /path/to/output/src/main/java"

I'll need to update the README file to use the provided gradle script, since it's safer.

@dkharrat dkharrat changed the title How to generate model files? gradle not found when trying to generate model files Jun 17, 2016
@j4nos
Copy link
Author

j4nos commented Jun 18, 2016

Hi! Tried generating model it started, but at the end I get following error message. Do you have any idea, what cause it?

Incremental java compilation is an incubating feature.

FAILURE: Build failed with an exception.

  • What went wrong:
    Project 'modelgen' not found in root project 'MovieBuffs3'.

I can not find modelgen subfolder at all in the project. Installed nexusdata with gradle, by editing build.gradle file. After building I can see nexusdata componenet in the project structure, but not modelgen subfolder.

I tried to put in modelgen from sample project to my project, but get the same result. Rebuilt the project. Do you have any idea?

@j4nos j4nos closed this as completed Dec 19, 2016
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