From dda55f8791600947fb136ace12db57f037ad3861 Mon Sep 17 00:00:00 2001 From: "Nuno A. C. Henriques" Date: Wed, 19 Apr 2017 14:16:15 +0100 Subject: [PATCH] Added: release rule to the gradle build script, it runs tests and generates JAR, sources, and javadoc ZIP files in build/distributions. Changed documentation accordingly. --- README.md | 8 ++++++-- build.gradle | 15 +++++++++++++++ 2 files changed, 21 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index ed00f00..f137323 100644 --- a/README.md +++ b/README.md @@ -15,6 +15,10 @@ written in Python and optimized from the original. - The [Original](https://github.com/cjhutto/vaderSentiment) Python source code by the paper's author C.J. Hutto. +## Repository + +https://github.com/nunoachenriques/vader-sentiment-analysis + ## Citation If you use either the dataset or any of the VADER sentiment analysis @@ -39,9 +43,9 @@ Retrieved from http://comp.social.gatech.edu/papers/icwsm14.vader.hutto.pdf 3. The JAR packages will be in `build/install/vader-sentiment-analysis` directory. -### From public repository (JAR release) +### From release -**FIXME**: not yet! +https://github.com/nunoachenriques/vader-sentiment-analysis/releases ## Testing diff --git a/build.gradle b/build.gradle index c1e67ac..cdd4947 100644 --- a/build.gradle +++ b/build.gradle @@ -20,3 +20,18 @@ dependencies { // JUNIT testCompile 'junit:junit:4.+' } + +// EXTRA PACKAGING FOR RELEASE DISTRIBUTION +task release(dependsOn: ['test', 'distZip', 'sourcesZip', 'javadocZip']) + +task sourcesZip(type: Zip, dependsOn: 'classes') { + classifier = 'sources' + from sourceSets.main.allSource + destinationDir = file("${distsDir}") +} + +task javadocZip(type: Zip, dependsOn: 'javadoc') { + classifier = 'javadoc' + from javadoc.destinationDir + destinationDir = file("${distsDir}") +}