You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@polygene.apache.org by pa...@apache.org on 2017/02/27 21:32:43 UTC

[2/3] polygene-java git commit: build: remove test & coverage reports from the binary distribution

build: remove test & coverage reports from the binary distribution

much smaller archives, much faster built


Project: http://git-wip-us.apache.org/repos/asf/polygene-java/repo
Commit: http://git-wip-us.apache.org/repos/asf/polygene-java/commit/90016609
Tree: http://git-wip-us.apache.org/repos/asf/polygene-java/tree/90016609
Diff: http://git-wip-us.apache.org/repos/asf/polygene-java/diff/90016609

Branch: refs/heads/develop
Commit: 900166098aa98c8fc04e48b5a7bdcbeee4cd87da
Parents: 5f18263
Author: Paul Merlin <pa...@apache.org>
Authored: Mon Feb 27 21:12:53 2017 +0100
Committer: Paul Merlin <pa...@apache.org>
Committed: Mon Feb 27 21:12:53 2017 +0100

----------------------------------------------------------------------
 .../structure/distributions/DistributionsPlugin.groovy  | 12 ++++--------
 1 file changed, 4 insertions(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/polygene-java/blob/90016609/buildSrc/src/main/groovy/org/apache/polygene/gradle/structure/distributions/DistributionsPlugin.groovy
----------------------------------------------------------------------
diff --git a/buildSrc/src/main/groovy/org/apache/polygene/gradle/structure/distributions/DistributionsPlugin.groovy b/buildSrc/src/main/groovy/org/apache/polygene/gradle/structure/distributions/DistributionsPlugin.groovy
index 6af247a..f6ad9db 100644
--- a/buildSrc/src/main/groovy/org/apache/polygene/gradle/structure/distributions/DistributionsPlugin.groovy
+++ b/buildSrc/src/main/groovy/org/apache/polygene/gradle/structure/distributions/DistributionsPlugin.groovy
@@ -309,10 +309,6 @@ class DistributionsPlugin implements Plugin<Project>
   private static void applyBinaryDistribution( Project project )
   {
     def releaseSpec = project.extensions.getByType( ReleaseSpecExtension )
-    def reportsDistCopySpec = project.copySpec { CopySpec spec ->
-      spec.from "$project.rootProject.projectDir/reports/build/reports"
-      spec.into 'docs/reports'
-    }
     def docsCopySpec = project.copySpec { CopySpec spec ->
       spec.from "$project.rootProject.projectDir/reports/build/docs"
       spec.from "$project.rootProject.projectDir/manual/build/docs/website"
@@ -350,7 +346,6 @@ class DistributionsPlugin implements Plugin<Project>
       spec.into "apache-polygene-java-$project.version-bin"
       spec.with binDistNoticesCopySpec
       spec.with docsCopySpec
-      spec.with reportsDistCopySpec
       spec.with extraDistTextCopySpec
       spec.with extraDistBinCopySpec
       spec.with libsCopySpec
@@ -358,8 +353,9 @@ class DistributionsPlugin implements Plugin<Project>
 
     def binariesBuildDependencies = {
       project.rootProject.allprojects
-             .findAll { p -> p.plugins.hasPlugin( PublishedCodePlugin ) || p.path == ':manual' || p.path == ':reports' }
-             .collect { p -> "${ p.path }:${ LifecycleBasePlugin.BUILD_TASK_NAME }" }
+             .findAll { p -> p.plugins.hasPlugin( PublishedCodePlugin ) }
+             .collect { p -> "${ p.path }:${ LifecycleBasePlugin.ASSEMBLE_TASK_NAME }" as String } +
+             ( releaseSpec.developmentVersion ? [] as List<String> : [ ':manual:website', ':reports:javadocs' ] )
     }
 
     def zipBinaries = project.tasks.create( TaskNames.ZIP_BINARY_DIST, Zip ) { Zip task ->
@@ -521,4 +517,4 @@ class DistributionsPlugin implements Plugin<Project>
       task.into "apache-polygene-java-$project.version-dependencies"
     }
   }
-}
\ No newline at end of file
+}