Skip to content

Commit

Permalink
Add source compatibility to 1.7 java version, code doesn't compile wi…
Browse files Browse the repository at this point in the history
…th -source 1.6 or -source 1.5

Add jar build directory as dist to get jars to be used with external apps.
  • Loading branch information
harshavardhana committed May 12, 2015
1 parent b55809c commit e766f2c
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,5 @@ hs_err_pid*

# IDEA build scripts
/.idea/

dist/
17 changes: 17 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,15 @@ apply plugin: 'pmd'
ext.junitVersion = '4.12'
ext.googleHttpClientVersion = '1.20.0'

sourceCompatibility = 1.7
version = '1.0'
jar {
manifest {
attributes 'Implementation-Title': 'Minimal Object Storage Library',
'Implementation-Version': version
}
}

task wrapper(type: Wrapper) {
gradleVersion = '2.3'
}
Expand All @@ -42,3 +51,11 @@ tasks.withType(FindBugs) {
html.enabled = true
}
}

uploadArchives {
repositories {
flatDir {
dirs 'dist'
}
}
}

0 comments on commit e766f2c

Please sign in to comment.