Created
September 20, 2012 10:50
-
-
Save janhenrik/3755185 to your computer and use it in GitHub Desktop.
snapshot_deps
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
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