From 636af1a3870a4db38e46cef58f7e94f4cb2f72ef Mon Sep 17 00:00:00 2001 From: pavels Date: Wed, 16 Mar 2016 16:32:56 +0100 Subject: [PATCH] Issue #319 --- build.gradle | 38 ++++++++++++++++++++++++++++++++------ 1 file changed, 32 insertions(+), 6 deletions(-) diff --git a/build.gradle b/build.gradle index aee50014c3..d61c33fd07 100644 --- a/build.gradle +++ b/build.gradle @@ -15,9 +15,18 @@ * along with this program. If not, see . */ +plugins { + id 'com.gradle.build-receipt' version '1.0' +} + +buildReceiptLicense { + agreementUrl = 'https://gradle.com/terms-of-service' + agree = 'yes' +} + println "Building K4; please read BUILD-README.txt" -//apply plugin: 'distribution' // -> generate distributions +apply plugin: 'distribution' // -> generate distributions apply plugin: 'java' // -> generate javadoc @@ -40,7 +49,6 @@ dependencies { -/* distributions { // main distribution main { @@ -59,7 +67,7 @@ distributions { from {'security-core/build/libs'} } } -}*/ +} repositories { @@ -178,12 +186,15 @@ subprojects { } + tasks.withType(Javadoc) { + options.addStringOption('Xdoclint:none', '-quiet') + } + build.finalizedBy 'install' } // disabled distributions -/* task zipAllJavadocs(type: Zip) { String[] _spr = ["common","fedora-api","security-core","rest","search"]; description "create javadocs for ${_spr} and zip it" @@ -199,7 +210,22 @@ task zipAllJavadocs(type: Zip) { } [distZip, distTar, installDist].each() { - it.dependsOn('clean',':search:build', 'zipAllJavadocs') + it.dependsOn('clean',':search:build') +}; + +[distZip, distTar, installDist].each() { + gradle.taskGraph.whenReady {taskGraph -> + if (taskGraph.hasTask(it)) { + it.dependsOn(zipAllJavadocs) + } + } }; -*/ + + +/* +[distZip, distTar, installDist].each() { + it.dependsOn(zipAllJavadocs) +};*/ + +