Skip to content


Improved: Make ‘gradlew’ depend on :jar and :test
Browse files Browse the repository at this point in the history

The default task was previously depending on :build which was requiring to
mess with the dependency graph in order to avoid executing the :distTar and
:distZip tasks which are too big to be executed by default.

It is cleaner to simply define the default tasks to :jar and :test.

git-svn-id: 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
mthl committed Aug 22, 2019
1 parent 66a42fb commit e6eb453
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -85,12 +85,6 @@ distributions.main.contents.from(rootDir) {
include 'framework/**', 'applications/**', 'themes/**', 'plugins/**'

// XXX: Remove the :distTar and :distZip tasks from the dependency
// graph of the :build task which cost an important amount of disk
// space and build time due to the huge number of dependencies to be
// packed.

javadoc {
failOnError = true
options {
Expand Down Expand Up @@ -125,7 +119,7 @@ def File gitFooterFile = file("${rootDir}/runtime/GitInfo.ftl")
def File svnFooterFile = file("${rootDir}/runtime/SvnInfo.ftl")

// root and subproject settings
defaultTasks 'build'
defaultTasks 'jar', 'test'

allprojects {
Expand Down

0 comments on commit e6eb453

Please sign in to comment.