Am trying to dive in with gradle's tasks and gradle as a build system .
For example i have this following task
task copyDocs(type: Copy) {
from 'gradle/1.txt'
into '.'
doLast {
println 'THIS IS QUITE LEVEL' }
}
tasks.named("build") { finalizedBy("copyDocs") }
But when i try with my Spring tools suite for eclipse , there is no auto complete nor suggested with Ctrl space
.
I've tried to install , gradle IDE pack and groovy development tools with eclipse marketplace , Still cant get auto complete nor suggested .
for example , the doLast
and finalizedBy
, i had no idea of their existing, once i seen once , googled about , and now i use them .
Is there a way to auto complete or show suggestion ?
if not , Any idea where i can read about tasks and available operation , beside the official docs which is my only source for now.
CodePudding user response:
This gives an idea on how to extend the editor to support type inferencing and code completion for your gradle script in Spring Tool Suite (aka Eclipse IDE). It is discussed further here:
As you can see, it is by no means complete. But you can add to the DSLD and over time you can get quite a bit of assistance from the editor. If you share via the issue ticket (from above), the community can benefit as well.