Discussion:
Migrating from M3 to M9, issues with IDEA plugin (for now)
Grzegorz Gigon
2012-03-16 12:49:54 UTC
Permalink
Hi Guys
I know, a bit of a gap.
But, I'm starting today and already bumped into some issues.
So, this is how I go about the migration.

Downloaded Gradle M9, changed the path so there are new executables on it, and executed gradle clean in my project.
A lot of deprecation messages (around dynamic properties) and then boom on IDEA plugin configuration.
So I went to docs and I see differences.

So I changed to adapt to new ways and I got this:

idea.project {
jdkName = '1.6'
}

The warning I see is:
Dynamic properties have been deprecated (property "jdkName" on the object "project :foo" with value "1.6" created).

That is my first project in my multi-project build.

Then it bombs out on this:

idea.workspace.iws.withXml { provider->
// DO some funcky stuff
}

With this:
Cannot invoke method withXml() on null object.

What is going on? First the warning is a bit odd, and then the null object.

Cheers, Greg

--
Grzegorz Gigon
http://greggigon.com
http://www.linkedin.com/in/greggigon
Twitter: gregorygigon

"You see, wire telegraph is a kind of a very, very long cat. You pull his tail in New York and his head is meowing in Los Angeles. Do you understand this? And radio operates exactly the same way: you send signals here, they receive them there. The only difference is that there is no cat."
Albert Einstein, when asked to describe radio
Steve Ebersole
2012-03-20 12:50:58 UTC
Permalink
When I upgraded I used the form:

idea {
project {
jdkName = '1.6'
}
}

And it works fine.

I went from m3 to m8a.
Post by Grzegorz Gigon
Hi Guys
I know, a bit of a gap.
But, I'm starting today and already bumped into some issues.
So, this is how I go about the migration.
Downloaded Gradle M9, changed the path so there are new executables on
it, and executed gradle clean in my project.
A lot of deprecation messages (around dynamic properties) and then
boom on IDEA plugin configuration.
So I went to docs and I see differences.
idea.project {
jdkName = '1.6'
}
Dynamic properties have been deprecated (property "jdkName" on the
object "project :foo" with value "1.6" created).
That is my first project in my multi-project build.
idea.workspace.iws.withXml { provider->
// DO some funcky stuff
}
*Cannot invoke method withXml() on null object.*
*
*
What is going on? First the warning is a bit odd, and then the null object.
Cheers, Greg
--
Grzegorz Gigon
http://greggigon.com <http://greggigon.com/>
http://www.linkedin.com/in/greggigon
Twitter: gregorygigon <http://twitter.com/gregorygigon>
"You see, wire telegraph is a kind of a very, very long cat. You pull
his tail in New York and his head is meowing in Los Angeles. Do you
understand this? And radio operates exactly the same way: you send
signals here, they receive them there. The only difference is that
there is no cat."
Albert Einstein, when asked to describe radio
--
steve-***@public.gmane.org
http://hibernate.org
Peter Niederwieser
2012-03-21 22:08:37 UTC
Permalink
Already answered on http://forums.gradle.org. The project in question was
configured incorrectly.

--
Peter Niederwieser
Principal Engineer, Gradleware
http://gradleware.com
Creator, Spock Framework
http://spockframework.org
Twitter: @pniederw

--
View this message in context: http://gradle.1045684.n5.nabble.com/Migrating-from-M3-to-M9-issues-with-IDEA-plugin-for-now-tp5571152p5584233.html
Sent from the gradle-user mailing list archive at Nabble.com.

Loading...