Skip to content

Optionally disable loading gradle from gradle wrapper (request) #875

@jakegt1

Description

@jakegt1

It would be nice to be able to either optionally disable loading gradle from the gradle wrapper and always using system gradle (if higher then 2.6) so in cases where the gradle project is using a wrapper with a version < 2.6 the java plugin can still function.

Environment
  • Operating System: Mac OSX High Sierra
  • JDK version: 1.8
  • Visual Studio Code version: 1.32.3
  • Java extension version: 0.42.1
Steps To Reproduce
  1. Have gradle > 2.6 on path
  2. Have a gradle project that uses the wrapper with gradle < 2.6 (ex: 1.12)
  3. Redhat plugin complains about not being able to use the plugin with gradle < 2.6
Current Result

Can't use downstream plugins (checkstyle/run tests)

Wanted Result

Redhat plugin can optionally use system gradle always to at least allow some functionality on gradle 1.12 projects that use the wrapper

Additional Informations

I found this out while initially developing a project where it did not have the gradle wrapper with my gradle 5 system gradle version. I was able to run/debug tests and use checkstyle with no problems. I then added the wrapper, to find that afterwards i could not do either of these things because my gradle version (in the wrapper) was too low.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions