[GRADLE-659] Groovy Plugin has no Compile task Created: 27/Sep/09  Updated: 10/Feb/17  Resolved: 10/Feb/17

Status: Resolved
Project: Gradle
Affects Version/s: 0.8
Fix Version/s: None

Type: Bug
Reporter: Russel Winder Assignee: Unassigned
Resolution: Won't Fix Votes: 0


In the rearrangement of the tasks to do with compilation, the overall task "compile" has been lost. Users will want this pseudo-task which deals with the :compileJava and :compileGroovy.

Comment by Adam Murdoch [ 27/Sep/09 ]

What will they want it for?

Comment by Russel Winder [ 27/Sep/09 ]

Because people want to say "gradle compile" when they want to compile their project.

Comment by Adam Murdoch [ 27/Sep/09 ]

Why do they want to just compile their project? What are they trying to achieve? The output of compile doesn't do anything useful on its own - you need to run some other task to get something useful. Wouldn't they just run that other task?

Comment by Russel Winder [ 28/Sep/09 ]

Because they just want to compile their project to see if it does. Ensure there are no compile errors in the code. Yes it does, it shows the code has no compilation errors. Why, they only want to check that the code compiles?

In the Java plugin, compile has gone, I have to say compileJava – why? It is a Java project, every aspect of the system, including the human, knows that when they compile they are going to compile Java so why compileJava and not compile? Also note that even though I have to say compileTestJava according to some error messages, compileTest still works fine (though it doesn't get documented by "gradle -t"). This is just inconsistent.

Also of course the functionality is actually there, there is a task called classes. Basically this just needs renaming to be compile. Though actually that is probably not the case. Gradle supports both noun-form and verb-form task names. The noun-form ones relates to the things that are created on the filestore, the verb-form ones relate to the actions the user might want to undertake. These two task sets need to be complete and consistent so that the users mental model is simple and straightforward.

Comment by Russel Winder [ 29/Sep/09 ]

It seems that although the tasks are called compileJava and compileGroovy, in the dependencies you stil use the "keyword" compile to provide the dependencies. There is a lack of consistency here that is annoying.

Comment by Benjamin Muschko [ 15/Nov/16 ]

As announced on the Gradle blog we are planning to completely migrate issues from JIRA to GitHub.

We intend to prioritize issues that are actionable and impactful while working more closely with the community. Many of our JIRA issues are inactionable or irrelevant. We would like to request your help to ensure we can appropriately prioritize JIRA issues you’ve contributed to.

Please confirm that you still advocate for your JIRA issue before December 10th, 2016 by:

  • Checking that your issues contain requisite context, impact, behaviors, and examples as described in our published guidelines.
  • Leave a comment on the JIRA issue or open a new GitHub issue confirming that the above is complete.

We look forward to collaborating with you more closely on GitHub. Thank you for your contribution to Gradle!

Comment by Benjamin Muschko [ 10/Feb/17 ]

Thanks again for reporting this issue. We haven't heard back from you after our inquiry from November 15th. We are closing this issue now. Please create an issue on GitHub if you still feel passionate about getting it resolved.

Generated at Wed Jun 30 11:35:34 CDT 2021 using Jira 8.4.2#804003-sha1:d21414fc212e3af190e92c2d2ac41299b89402cf.