Skip to content
This repository has been archived by the owner on Sep 1, 2022. It is now read-only.

Commit

Permalink
moved gradle build to ncIdv module. Safe to delete release module?
Browse files Browse the repository at this point in the history
  • Loading branch information
Sean Arms committed Mar 2, 2013
1 parent f384ba0 commit a6e10f9
Show file tree
Hide file tree
Showing 2 changed files with 71 additions and 1 deletion.
70 changes: 70 additions & 0 deletions ncIdv/build.gradle
@@ -0,0 +1,70 @@
apply plugin: 'fatjar'

dependencies {
compile project(':cdm')
compile project(':bufr')
compile project(':grib')
compile (project(':opendap')) { // eliminate servlet
transitive = false
}
compile (project(':visad')) { // eliminate original visad.jar
transitive = false
}
runtime ('org.slf4j:slf4j-jdk14:1.6.4')
}

jar {
manifest {
attributes 'Implementation-Title': 'toolsUI'
}
}

//////////////////////////////////////////////////////////

ext {
ncIdvJar = 'ncIdv-'+version+'.jar'
webstartWorkingDir = "build/signed"
webstartDir = webdir + "webstart"
}

fatJar { // does not inherit from parent jar
archiveName = ncIdvJar
manifest {
attributes 'Implementation-Title': ncIdvJar,
'Implementation-Version': version,
'Implementation-Vendor': 'UCAR/Unidata',
'Implementation-Vendor-Id': 'edu.ucar',
'Built-On': new Date()
}
exclude 'DATE' // crap from other packages
exclude 'JDOM*'
exclude '*.html'
exclude 'META-INF/*.txt'
exclude 'META-INF/*.xml'
exclude 'nom/**'
exclude 'edu/wisc/**'
exclude 'visad/**'
}

/* following properties should be in gradle.properties:
keystore=name of keystore file
keystoreAlias=idv
keystorePassword=password of keystore file
webdir:parent of conan content directory
ftpdir:ftp directory
*/
task releaseCdm(dependsOn: ['fatJar']) << {
println "copy " + ncIdvJar + " to " + ftpdir
copy { // does not give error message
from 'build/libs/' + ncIdvJar
into ftpdir
}
}

///////////////////////////////////////////////////////

task showDependencies << {
for (file in configurations.runtime.resolve()) {
println " " + file
}
}
2 changes: 1 addition & 1 deletion settings.gradle
@@ -1 +1 @@
include 'udunits', 'cdm', 'bufr', 'grib', 'opendap', 'visad', 'ui', 'release'
include 'udunits', 'cdm', 'bufr', 'grib', 'opendap', 'visad', 'ui', 'ncIdv'

0 comments on commit a6e10f9

Please sign in to comment.