ZEST-25 checkSrcDist task now run âcheck assembleâ inside source dist
Project: http://git-wip-us.apache.org/repos/asf/zest-java/repo Commit: http://git-wip-us.apache.org/repos/asf/zest-java/commit/ed865c6a Tree: http://git-wip-us.apache.org/repos/asf/zest-java/tree/ed865c6a Diff: http://git-wip-us.apache.org/repos/asf/zest-java/diff/ed865c6a Branch: refs/heads/master Commit: ed865c6af6711c8a5dcc317ff6deee4021840723 Parents: 57a1858 Author: Paul Merlin <[email protected]> Authored: Wed Jul 22 15:55:54 2015 +0200 Committer: Paul Merlin <[email protected]> Committed: Wed Jul 22 15:55:54 2015 +0200 ---------------------------------------------------------------------- README.txt | 4 ++-- build.gradle | 7 ++----- 2 files changed, 4 insertions(+), 7 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/zest-java/blob/ed865c6a/README.txt ---------------------------------------------------------------------- diff --git a/README.txt b/README.txt index 8cedbd6..d460a77 100644 --- a/README.txt +++ b/README.txt @@ -49,9 +49,9 @@ installation. If you want to build the Zest⢠manual, then you also need a valid Asciidoc (http://www.methods.co.nz/asciidoc/) installation. -Here is how to run a full build: +Here is how to run a full build with checks: - ./gradlew buildAll + ./gradlew check assemble Read the Zest⢠Build System tutorial for more details: https://zest.apache.org/java/latest/build-system.html http://git-wip-us.apache.org/repos/asf/zest-java/blob/ed865c6a/build.gradle ---------------------------------------------------------------------- diff --git a/build.gradle b/build.gradle index a5fd847..4125350 100644 --- a/build.gradle +++ b/build.gradle @@ -870,9 +870,6 @@ task dist( type: Copy, dependsOn: install ) { } // Tasks for source and binary distributions checks -// - Run the check task of this very build inside the source distribution -// - Rat the binary distribution (not pulled by checkDists as it takes ages to complete) -// - Use the dependencies download facility of the binary distribution to "go offline" def unpackedSrcDistDir = file( "build/unpacked-distributions/src/apache-zest-java-$version-src" ) def unpackedBinDistDir = file( "build/unpacked-distributions/bin/apache-zest-java-$version-bin" ) task unpackSrcDist( type: Copy ) { @@ -882,10 +879,10 @@ task unpackSrcDist( type: Copy ) { into 'build/unpacked-distributions/src' } task checkSrcDist( type: GradleBuild, dependsOn: unpackSrcDist ) { - description = "Check the source distribution by running the 'check' task inside" + description = "Check the source distribution by running the 'check' and 'assemble' tasks inside" group = "distributions" buildFile = "$unpackedSrcDistDir/build.gradle" - tasks = [ 'check' ] + tasks = [ 'check', 'assemble' ] } task unpackBinDist( type: Copy, dependsOn: buildAll ) { description "Unpack the binary distribution"
