Author Topic: Gradle support  (Read 162 times)


  • Senior Community Member
  • Posts: 2159
  • Hero Points: 191
  • Text
Gradle support
« on: February 04, 2021, 11:52:32 pm »
When I'm editing a build.gradle file, Slick recognizes it as groovy, but symbols don't work very well.
It doesn't seem to recognize tasks.
For example, given:
Code: [Select]
task T1() {
    something = true

task T2() {
    anotherthing = true

In "Defs", something and anotherthing show up, but T1 and T2 do not.


  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 1471
  • Hero Points: 131
Re: Gradle support
« Reply #1 on: February 05, 2021, 03:56:42 pm »
Since it just parses it as Groovy, it just sees those as a function call of another function call with a anonymous function as a parameter.  Something like task(T1({...})).  So you won't see those unless you allow defs to show statements.  The assignments show in that case because in that form, without any leading type or var keyword, they get scoped as globals. 

I think we could add some items that display in the defs window for tasks without them being statements.  If I can do it, it would have to be a for a release, not a hotfix.