[hibernate-dev] Scripted uploading of documentation
Steve Ebersole
steve at hibernate.org
Wed May 22 12:31:51 EDT 2013
The Gradle build on ORM master and metamodel branches now define a
uploadDocumentation task that is intended as part of the larger scripted
release task. However, for some cases, uploadDocumentation is useful in
the case of SNAPSHOT builds. As an example, currently as we work
towards 4.3 we occasionally will want to upload some SNAPSHOT docs for
people to validate (Brett's OSGI guide is an example).
Currently I have a safety net built-in to uploadDocumentation which
checks whether the version is a SNAPSHOT and disallows the upload to
proceed if this is the case. The reasoning being that we do not want to
allow the SNAPSHOT upload in the case of say 4.2 which has already gone
Final.
Stated simply:
if ( snapshotIsForVersionAlreadyGoneFinal() ) {
// for example, attempting to upload docs from 4.2.3-SNAPSHOT
// while we have already released 4.2.2.Final
doNotAllowUpload();
}
else {
allowUpload();
}
Anyone have ideas on codifying snapshotIsForVersionAlreadyGoneFinal()?
More information about the hibernate-dev
mailing list