Permalink
Browse files

Move version declarations into root build.gradle

The Artifactory-based release process automatically updates the version that's
declared in gradle.properties. Unfortunately in doing so, it also removes
formatting from the file and  reorders the properties. To work  around this, we
now only declare the project's version in gradle.properties. The versions of
the project's dependencies are now declared in build.gradle where they will be
unaffected by the release process.
  • Loading branch information...
1 parent 6f50299 commit 8b4cf128511a3c3ce3a16ea4bada2bb7022487c8 @wilkinsona wilkinsona committed Oct 29, 2012
Showing with 15 additions and 13 deletions.
  1. +14 −0 build.gradle
  2. +1 −13 gradle.properties
View
@@ -1,5 +1,19 @@
configure(allprojects) {
group = 'org.springframework.migrationanalyzer'
+
+ ext {
+ asmVersion='3.1'
+ commonsCliVersion='1.2'
+ ejb3Version='1.0.1'
+ freemarkerVersion='2.3.18'
+ jacocoVersion='0.6.0.201210061924'
+ jtaVersion='1.1.1'
+ junitVersion='4.8.2'
+ logbackVersion='1.0.0'
+ mockitoVersion='1.8.5'
+ slf4jVersion='1.6.4'
+ springVersion='3.1.2.RELEASE'
+ }
}
subprojects { project ->
View
@@ -1,13 +1 @@
-version=1.0.0.BUILD-SNAPSHOT
-
-asmVersion=3.1
-commonsCliVersion=1.2
-ejb3Version=1.0.1
-freemarkerVersion=2.3.18
-jacocoVersion=0.6.0.201210061924
-jtaVersion=1.1.1
-junitVersion=4.8.2
-logbackVersion=1.0.0
-mockitoVersion=1.8.5
-slf4jVersion=1.6.4
-springVersion=3.1.2.RELEASE
+version=1.0.0.BUILD-SNAPSHOT

0 comments on commit 8b4cf12

Please sign in to comment.