Need to execute custome task while buildship import/refresh

I would like to execute a custom task while buildship project import/refresh in order to let generateProto task generate java classes from protobuffer definition files. Currently my project has lots of build errors due to missing generated class files after import.

Is there a specific task or closure available which indicates a buildship import/refresh activity in order to start class generation?

The automatic task execution is yet to be implemented, although we have it as an open-source opportunity proposal.

There might be a workaround for you. I haven’t used it yet, but all the fixtures are available. First you’d have to set up a custom project builder executing the Gradle task as an external command. Then this builder could be defined in the project’s configuration. If you try this, please let me know the outcome.