Skip to content

Instantly share code, notes, and snippets.

@janhenrik
Created September 20, 2012 10:50
Show Gist options
  • Save janhenrik/3755185 to your computer and use it in GitHub Desktop.
Save janhenrik/3755185 to your computer and use it in GitHub Desktop.
snapshot_deps
def snapshot_dependencies?
self.search('dependency').each do |dep|
dep.search('version').each do |ver|
if ver.content =~ /SNAPSHOT/i
raise("Prosjektet #{artifactId} har SNAPSHOT avhengigheter

 i artifact: #{artifactIdForDep(dep)}-#{ver.content}")
end
end
end
# Tilsvarende for <properties> og project > parent > version 
# for super-pom
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment