This repository has been archived by the owner on Sep 1, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
moved gradle build to ncIdv module. Safe to delete release module?
- Loading branch information
Sean Arms
committed
Mar 2, 2013
1 parent
f384ba0
commit a6e10f9
Showing
2 changed files
with
71 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
include 'udunits', 'cdm', 'bufr', 'grib', 'opendap', 'visad', 'ui', 'release' | ||
include 'udunits', 'cdm', 'bufr', 'grib', 'opendap', 'visad', 'ui', 'ncIdv' |