Gradle

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What’s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
To raise new issues or bugs against Gradle, please use forums.gradle.org.
  • Gradle
  • GRADLE-1875

Cannot use EclipseProject.getGradleProject() or acquire GradleProject model for pre-m5 Gradle versions

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: 1.0-rc-1

Description

EclipseProject.getTasks() is now deprecated, but the replacement EclipseProject.getGradleProject().getTasks() does not work for pre-m5 releases.

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • History
  • Activity
  • TeamCity
  • Commits
  • Source
  • Reviews
Hide
Permalink
Szczepan Faber added a comment - 13/Mar/12 10:24 AM

I'm wondering whether we should care about it... m4 was broken and m3 is veeery old.

Show
Szczepan Faber added a comment - 13/Mar/12 10:24 AM I'm wondering whether we should care about it... m4 was broken and m3 is veeery old.
Hide
Permalink
Kris De Volder added a comment - 19/Mar/12 5:29 PM

Yes. There are still projects out there that are on M3. (E.g. spring-security).
Perhaps these people can be expected to move on "soon". But the truth is that if there builds are working fine, they may be reluctant to tackle the upgrade.

This problem is quite serious to me now that the method has been removed in M9, I either have these two options:
1) people with M3 projects can no longer run/view any tasks (which also breaks import if those project's import relies on executing some tasks).
2) continue to stick with tooling API M7

So to me that is a real blocker for moving to Tooling API M9.

For now I'm going with (2). But if EclipseProject.getEclipseTasks is put back in some snapshot build. I may consider basing the next STS-Gradle support of off that Gradle snapshot build instead.

Kris

Show
Kris De Volder added a comment - 19/Mar/12 5:29 PM Yes. There are still projects out there that are on M3. (E.g. spring-security). Perhaps these people can be expected to move on "soon". But the truth is that if there builds are working fine, they may be reluctant to tackle the upgrade. This problem is quite serious to me now that the method has been removed in M9, I either have these two options: 1) people with M3 projects can no longer run/view any tasks (which also breaks import if those project's import relies on executing some tasks). 2) continue to stick with tooling API M7 So to me that is a real blocker for moving to Tooling API M9. For now I'm going with (2). But if EclipseProject.getEclipseTasks is put back in some snapshot build. I may consider basing the next STS-Gradle support of off that Gradle snapshot build instead. Kris
Hide
Permalink
Kris De Volder added a comment - 20/Mar/12 1:37 PM

Please raise this issue to 'Critical' or 'Blocker'. This is a blocker. The tooling M9 API is unusable for me. I.e. I can not consider upgrading STS to use M9 until the EclipseProject.getTasks method is put back in.

Show
Kris De Volder added a comment - 20/Mar/12 1:37 PM Please raise this issue to 'Critical' or 'Blocker'. This is a blocker. The tooling M9 API is unusable for me. I.e. I can not consider upgrading STS to use M9 until the EclipseProject.getTasks method is put back in.
Hide
Permalink
Adam Murdoch added a comment - 20/Mar/12 5:05 PM

@Kris, this should be fixed soon.

Show
Adam Murdoch added a comment - 20/Mar/12 5:05 PM @Kris, this should be fixed soon.
Hide
Permalink
Kris De Volder added a comment - 23/Mar/12 4:02 PM

This isues blocks: https://issuetracker.springsource.com/browse/STS-2509

Show
Kris De Volder added a comment - 23/Mar/12 4:02 PM This isues blocks: https://issuetracker.springsource.com/browse/STS-2509
Hide
Permalink
Kris De Volder added a comment - 23/Mar/12 4:03 PM

Also blocking: https://issuetracker.springsource.com/browse/STS-2276

Show
Kris De Volder added a comment - 23/Mar/12 4:03 PM Also blocking: https://issuetracker.springsource.com/browse/STS-2276
Hide
Permalink
Kris De Volder added a comment - 23/Mar/12 4:05 PM

Also blocking: https://issuetracker.springsource.com/browse/STS-2503

Show
Kris De Volder added a comment - 23/Mar/12 4:05 PM Also blocking: https://issuetracker.springsource.com/browse/STS-2503
Hide
Permalink
Kris De Volder added a comment - 23/Mar/12 4:07 PM

Also blocking: https://issuetracker.springsource.com/browse/STS-2213

Show
Kris De Volder added a comment - 23/Mar/12 4:07 PM Also blocking: https://issuetracker.springsource.com/browse/STS-2213
Hide
Permalink
Kris De Volder added a comment - 23/Mar/12 4:08 PM

And this one too: https://issuetracker.springsource.com/browse/STS-2456

Show
Kris De Volder added a comment - 23/Mar/12 4:08 PM And this one too: https://issuetracker.springsource.com/browse/STS-2456
Hide
Permalink
Szczepan Faber added a comment - 27/Mar/12 10:43 AM

It's fixed now. You can do EclipseProject.getGradleProject().getTasks() also from M3+ target gradle version.

Show
Szczepan Faber added a comment - 27/Mar/12 10:43 AM It's fixed now. You can do EclipseProject.getGradleProject().getTasks() also from M3+ target gradle version.
Hide
Permalink
Kris De Volder added a comment - 27/Mar/12 11:14 AM

Excellent! Thanks for that.
Do you recommend a particular Gradle snapshot build for me to use, or should I just pick whatever is the latest at the moment?

Kris

Show
Kris De Volder added a comment - 27/Mar/12 11:14 AM Excellent! Thanks for that. Do you recommend a particular Gradle snapshot build for me to use, or should I just pick whatever is the latest at the moment? Kris
Hide
Permalink
Szczepan Faber added a comment - 27/Mar/12 11:33 AM

Let me kick off a nightly build and get back once it's ready

Show
Szczepan Faber added a comment - 27/Mar/12 11:33 AM Let me kick off a nightly build and get back once it's ready
Hide
Permalink
Szczepan Faber added a comment - 27/Mar/12 1:34 PM

Can you try nightly: http://gradle.org/nightly ?

Show
Szczepan Faber added a comment - 27/Mar/12 1:34 PM Can you try nightly: http://gradle.org/nightly ?
Hide
Permalink
Szczepan Faber added a comment - 27/Mar/12 1:34 PM

Can you try nightly: http://gradle.org/nightly ?

Show
Szczepan Faber added a comment - 27/Mar/12 1:34 PM Can you try nightly: http://gradle.org/nightly ?
Hide
Permalink
Kris De Volder added a comment - 02/Apr/12 10:43 AM

FYI: I've succesfully updated STS Gradle tools to use an RC1 buildsnapshot of the tooling API. All of my regression tests are green. Using EclipseProject.getGradleProject().getTasks() instead of the deprecated method it replaces.

Show
Kris De Volder added a comment - 02/Apr/12 10:43 AM FYI: I've succesfully updated STS Gradle tools to use an RC1 buildsnapshot of the tooling API. All of my regression tests are green. Using EclipseProject.getGradleProject().getTasks() instead of the deprecated method it replaces.
Hide
Permalink
Szczepan Faber added a comment - 02/Apr/12 10:45 AM

Awesome, thanks for feedback.

Show
Szczepan Faber added a comment - 02/Apr/12 10:45 AM Awesome, thanks for feedback.

People

  • Assignee:
    Szczepan Faber
    Reporter:
    Adam Murdoch
Vote (1)
Watch (2)

Dates

  • Created:
    27/Oct/11 8:01 PM
    Updated:
    04/Jan/13 5:10 AM
    Resolved:
    27/Mar/12 10:43 AM
  • Atlassian JIRA (v5.0.3#729-sha1:bf569e4)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Gradle. Try JIRA - bug tracking software for your team.