-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Open
Labels
a:featureA new functionalityA new functionalityin:invoking-gradleRunning ExecutingRunning Executingin:wrapper
Description
@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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
a:featureA new functionalityA new functionalityin:invoking-gradleRunning ExecutingRunning Executingin:wrapper