Skip to content
Browse files
Improved: Make ‘gradlew’ depend on :jar and :test

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 e6eb453cab672b3375eca997c6271faa9a9f33ec
Showing with 1 addition and 7 deletions.
  1. +1 −7 build.gradle
@@ -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 {
@@ -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 {

0 comments on commit e6eb453

Please sign in to comment.