Skip to content

Commit

Permalink
Added: release rule to the gradle build script, it runs tests and gen…
Browse files Browse the repository at this point in the history
…erates JAR, sources, and javadoc ZIP files in build/distributions. Changed documentation accordingly.
  • Loading branch information
nunoachenriques committed Apr 19, 2017
1 parent c8fc873 commit dda55f8
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 2 deletions.
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

Expand Down
15 changes: 15 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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}")
}

0 comments on commit dda55f8

Please sign in to comment.