Help the world stop coronavirus! Stay home!

Prev Next

Maven / Gradle interview questions

What are allprojects and subprojects sections in Gradle build file.

A multi-project gradle build will have rootProject and the subprojects, both together is considered as allprojects. The build starts from rootProject however it usually has no code, subproject does. allproject section can have dependencies seen by all projects while subproject dependencies seen only by those sub projects.

Usually subproject only apply Java plugin as it got code.

subprojects {
    apply plugin: 'java'

❤Cash Back At Stores you Love !!!❤

Earn your $10 reward when you make your first purchase through Ebates by signing up with clicking below button.

Ebates Coupons and Cash Back

More Related questions...

Show more question and Answers...

GIT Interview Questions

Comments & Discussions