<@U4Z1U6LJK> I'm a complete Gradle N00b - would li...
# tornadofx
e
@kastork I'm a complete Gradle N00b - would like like to refine the default gradle buld file perhaps? 🙂
k
edvin: I just realized you simply added the runtime config. For some reason I had it in my head you were defining an entirely new
run
task.
e
Yeah, I just wanted
gradle run
to pick up the correct main class. So it's OK to leave it like that?
Brb
k
I'll get back to you on that -- some other things to attend to first.
e
@kastork No rush. I will do a new release of the plugin once this is fixed so the issue with the mangled gradlew doesn't cause any more trouble.
k
I notice you keep the
.idea
directory in all the template projects, and also
.gradle
in the gradle project. Do you think they add value?
can't find the docs for how to make a project that resides in
template-projects
into a correct
zip
file in `resources`project-templates`. Is there some kind of build command for this?
e
I'm not sure, but I would think that the "Create template from project" would remove them. Weird if they don't do that. I will try to read up on how to best create those template projects. I really want to generate the code instead of using templates. I know that's possible, and I did start on it, but it's hard without documentation.
The procedure is:
1. Open one of the template projects
2. Choose "Tools -> Save Project as Template"
Now you have a template project in your
~/.IntelliJIdea2017.1/config/projectTemplates
folder.
Then I use the
fetch-project-templates.sh
script to copy them into the project-templates folder.
They also need to be mentioned in the plugin descriptor to work.