It looks like the M9 tooling API has removed deprecated method 
EclipseProject.getTasks. 

I recall that previously deprecation comment advised me that I should instead 
do something like 
eclipseProject.getGradleProject().getTasks() 

The problem with that however is that this sequence of method calls isn't 
working for older projects (e.g. M3 based projects). 
(getProject method throws MissingMethodException). 

So does this effectively mean that 

a) M9 tooling API is not intending to support working with M3(*) based projects 
? 
b) The deprecated method was removed from tooling API without considering this 
unintended consequence ? 
c) there is another method in M9 that works with M3 to get tasks for a given 
EclipseProject that I have overlooked? 

As it stands now, it I won't be able to upgrade STS tools to use M9 tooling API 
unless we make it official that any Gradle version 
that doesn't have EclipseProject.getGradleProject() method is no longer 
supported. 

Kris 

(*) ... or whatever is the last version before the getGradleProject method was 
added to EclipseProject. 

Reply via email to