It seems like you might be running gradle 0.8 instead of the 0.9 preview
release. You will be happier on 0.9 and the apply syntax should work
then. There are several significant API changes (from my perspective)
between 0.8 and 0.9... so it's worth starting from 0.9.
Here was the original announcement:
Adam Murdoch wrote:
> Hi,
>
> We have released the third preview of the Gradle 0.9 release. This
> preview fixes a major bug in 0.9-preview 2 which rendered it unusable
> with the 64-bit JVM on Windows.
>
> Release notes and breaking changes are available at:
> http://docs.codehaus.org/display/GRADLE/Gradle+0.9+Release+Notes
> http://docs.codehaus.org/display/GRADLE/Gradle+0.9+Breaking+Changes
>
> You can download the distribution from
> http://dist.codehaus.org/gradle/gradle-0.9-preview-3-all.zip
>
>
Good luck.
-Paul
boardtc wrote:
I tried creating a build.gradle containing
apply plugin: 'eclipse'
but when I type gradle at the command line in a
directory containing that file I get a failure:
Caused by: org.gradle.api.internal.MissingMethodException: Could not
find method apply() for arguments [{plugin=eclipse}] on root project
'tester'.
I'm not sure from the doc if I need to install a seperate plugin or
not....:-(
These things are never easy. I hate it when project setup takes over
form starting the project!
Cheers,
Tom.
On 12 June 2010 22:29, Jason Porter <lightguard.jp
<http://lightguard.jp>@gmail.com <http://gmail.com>> wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
On Fri, Jun 11, 2010 at 18:33, boardtc <boar...@gmail.com
<mailto:boar...@gmail.com>> wrote:
> I am doing a small Groovy project this weekend, generating some
html pages
> from some config file. Down the road I could see the project
expanding to a
> grails front end or something.
> I have predominately used Ant and earlier this year had a
> good though short experience with Maven for a project. Maven was
> great though I thought all the xml a bit verbose and looking in
> the repository I started seeing these more concise ivy targets.
With that in
> mind I did more research and found gradle which I see uses Ivy. I
know such
> a tool might be overkill for now but I would like to experiment
with it.
> I am using IntelliJ but with Eclipse project format. Reading the
faq I see
> that Gradle can generate eclipse projects files. That 's a one
line command
> in Maven, is there something similar in gradle? Please direct me
to the
> manual reference if so.
apply plugin: 'eclipse'
http://www.gradle.org/latest/docs/userguide/eclipse_plugin.html
Or http://www.gradle.org/latest/docs/userguide/idea_plugin.html for
the IntelliJ Plugin
> I am expecting gradle organises the code in some consistent directory
> fashion like maven, where can I read about this in the manual?
It's the same layout as maven.
http://www.gradle.org/latest/docs/userguide/groovy_plugin.html
> Thanks for any advice.
> Cheers,
>
> Tom.
>
- --
Jason Porter
http://lightguard-jp.blogspot.com
http://twitter.com/lightguardjp
Software Engineer
Open Source Advocate
PGP key id: 926CCFF5
PGP key available at: keyserver.net <http://keyserver.net>,
pgp.mit.edu <http://pgp.mit.edu>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
iEYEAREIAAYFAkwT/BMACgkQEEbDm5Jsz/Xi5wCfdh+zHWOK1LpQi8TwntwRfiWl
51MAnRmtb9XdtUznifui+hFK1aw6AvbM
=/9Yx
-----END PGP SIGNATURE-----
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email