I'm Calin Baenen – AKA KattyTheEnby – a programmer born October 30th, 2006.
I love programming, it has been my passion since I was a kid, and will forever be my passion.
Do I need both, or just the bottom one (since the first one gives me an error (Why does it do that?))?
How do I structure it, the plugins block, then the call to apply( )?
No what you have above is enough, you only need the lines above in a file named build.gradle. You will need to use gradle conventions which are the same as maven. I created a gist for you here gist.github.com/ehudon/7379f19f33b.... You can copy this file in your project and it should work if you have the correct project layout.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Yes, this is correct. Both:
and
are importing the
javaplugin for your project. From there you can usegradle buildto build your project.Do I need both, or just the bottom one (since the first one gives me an error (Why does it do that?))?
How do I structure it, the
pluginsblock, then the call toapply( )?Thanks for your help so far.
Cheers.
No what you have above is enough, you only need the lines above in a file named
build.gradle. You will need to use gradle conventions which are the same as maven. I created a gist for you here gist.github.com/ehudon/7379f19f33b.... You can copy this file in your project and it should work if you have the correct project layout.