Skip to content

Commit

Permalink
Issue #319
Browse files Browse the repository at this point in the history
  • Loading branch information
pavels authored and jirikrepl committed Apr 21, 2016
1 parent b18fe50 commit 636af1a
Showing 1 changed file with 32 additions and 6 deletions.
38 changes: 32 additions & 6 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,18 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

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


Expand All @@ -40,7 +49,6 @@ dependencies {



/*
distributions {
// main distribution
main {
Expand All @@ -59,7 +67,7 @@ distributions {
from {'security-core/build/libs'}
}
}
}*/
}


repositories {
Expand Down Expand Up @@ -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"
Expand All @@ -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)
};*/


0 comments on commit 636af1a

Please sign in to comment.