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.
I tried the first thing already, it throws an error, and I was advised to use:
Is this (not) correct?
Yes, this is correct. Both:
and
are importing the
java
plugin for your project. From there you can usegradle build
to 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
plugins
block, 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.