Skip to content

Commit dda55f8

Browse files
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.
1 parent c8fc873 commit dda55f8

File tree

2 files changed

+21
-2
lines changed

2 files changed

+21
-2
lines changed

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ written in Python and optimized from the original.
1515
- The [Original](https://github.com/cjhutto/vaderSentiment) Python
1616
source code by the paper's author C.J. Hutto.
1717

18+
## Repository
19+
20+
https://github.com/nunoachenriques/vader-sentiment-analysis
21+
1822
## Citation
1923

2024
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
3943
3. The JAR packages will be in
4044
`build/install/vader-sentiment-analysis` directory.
4145

42-
### From public repository (JAR release)
46+
### From release
4347

44-
**FIXME**: not yet!
48+
https://github.com/nunoachenriques/vader-sentiment-analysis/releases
4549

4650
## Testing
4751

build.gradle

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,18 @@ dependencies {
2020
// JUNIT
2121
testCompile 'junit:junit:4.+'
2222
}
23+
24+
// EXTRA PACKAGING FOR RELEASE DISTRIBUTION
25+
task release(dependsOn: ['test', 'distZip', 'sourcesZip', 'javadocZip'])
26+
27+
task sourcesZip(type: Zip, dependsOn: 'classes') {
28+
classifier = 'sources'
29+
from sourceSets.main.allSource
30+
destinationDir = file("${distsDir}")
31+
}
32+
33+
task javadocZip(type: Zip, dependsOn: 'javadoc') {
34+
classifier = 'javadoc'
35+
from javadoc.destinationDir
36+
destinationDir = file("${distsDir}")
37+
}

0 commit comments

Comments
 (0)