Skip to content

[PROPOSAL] Allow Gradle to run without a JDK installed #2508

@blindpirate

Description

@blindpirate

@bmuschko @oehme As we discussed several days ago, for developers who use non-JVM languages, it might be an obstacle to have a JDK installed in their machines. So here I propose a feature for Gradle: a brand-new wrapper mechanism, which supports running Gradle in docker completely.

For example, there's a script named gradlewd, when an user runs ./gradlewd <tasks>, it will make sure gradle docker image with specific version exists, and then run build in it. Obviously, it has some advantages:

  • Users dont' need to preinstall JDK.
  • Bootstrap jar (gradle-wrapper.jar) may be not necessary any more.
  • Build environment is isolated and reproducible totally, this seems to be a tendency.
  • to be continued...

However, it has disadvantages:

  • Docker images is much larger than jar distributions.
  • Can we still have gradle deamon as usual?
  • to be continued...

I have created a simple demo project https://github.com/blindpirate/gradlewd-demo and I'd like to hear your opinions.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions