Skip to content

Commit

Permalink
Merge pull request #82 from jamesmudd/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
jamesmudd committed May 15, 2019
2 parents b8d8e52 + 97d1780 commit 1ef591f
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 6 deletions.
5 changes: 5 additions & 0 deletions CHANGES.md
Expand Up @@ -2,6 +2,11 @@

Please note this project is still in pre-release development.

## v0.4.3
- Initial work for #49 slow chunked dataset reads
- Lots of typos cleaned up
- Add additional build data to MANIFEST.MF

## v0.4.2
- Add support for byte shuffle filter
- Many filter management improvements including support for dynamically loaded filters
Expand Down
26 changes: 20 additions & 6 deletions jhdf/build.gradle
Expand Up @@ -23,12 +23,12 @@ plugins {

// Community plugins (need versions)
id 'com.jfrog.bintray' version '1.8.4' // For publishing to Bintray
id 'org.sonarqube' version '2.7' // Code quality
id 'org.sonarqube' version '2.7.1' // Code quality
}

// Varibles
// Variables
group = 'io.jhdf'
version = '0.4.2'
version = '0.4.3'
sourceCompatibility = 1.8
targetCompatibility = 1.8

Expand Down Expand Up @@ -64,6 +64,15 @@ test {
}
}

def getGitHash = { ->
def stdout = new ByteArrayOutputStream()
exec {
commandLine 'git', 'rev-parse', '--verify', 'HEAD'
standardOutput = stdout
}
return stdout.toString().trim()
}

jar {
manifest {
attributes('Implementation-Title': project.name,
Expand All @@ -74,7 +83,12 @@ jar {
'Bundle-SymbolicName': 'io.jhdf',
'Bundle-Name': project.name,
'Bundle-Vendor': 'James Mudd',
'Export-Package': 'io.jhdf.*'
'Export-Package': 'io.jhdf.*',
// Build data
'Build-Time': new Date().toTimestamp(),
'Build-JDK': System.getProperty('java.vendor') + ' ' + System.getProperty('java.version'),
'Build-OS': System.getProperty('os.name') + ' ' + System.getProperty('os.version'),
'Git-Commit': getGitHash()
)
exclude('io/jhdf/examples')
}
Expand All @@ -89,12 +103,12 @@ jacocoTestReport {

task sourcesJar(type: Jar) {
from sourceSets.main.allJava
classifier = 'sources'
archiveClassifier = 'sources'
}

task javadocJar(type: Jar) {
from javadoc
classifier = 'javadoc'
archiveClassifier = 'javadoc'
}

publishing {
Expand Down

0 comments on commit 1ef591f

Please sign in to comment.