AtlasOfLivingAustralia / travis-build-configuration

travis-ci.org build configuration files shared/re-used among ALA projects
5 stars 8 forks source link

all grails plugin project-s have BUG in .travis.yml file #4

Closed mbohun closed 9 years ago

mbohun commented 9 years ago

grails plugin projects (unlike grails app projects) do not store the version number in application.properties but in the ${PREFIX}GrailsPlugin.groovy file. The correct way for grails plugins .travis.yml files is to grep/check release/snapshot from ${PREFIX}GrailsPlugin.groovy. This bug went unnoticed if the grails plugin version was not a -SNAPSHOT; however once the version number was changed to -SNAPSHOT the travis deployment step into maven repo fails, because the script is attempting to deploy a -SNAPSHOT into a release repository. Reported/found by @aruizca .

mbohun commented 9 years ago

FIXED: created a new grails plugin project .travis.yml template that is extracting the version number from ${PREFIX}GrailsPlugin.groovy; later I can merge it into a "generic" grails template that will correctly handle BOTH types of grails projects (apps and plugins).