Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev #82

Merged
merged 4 commits into from May 15, 2019
Merged

Dev #82

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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