File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -58,12 +58,8 @@ version = projectVersion
5858def cayenneVersion = version
5959
6060def getProjectVersion () {
61- def pomFile = file(' pom.xml' )
62- if (pomFile. file) {
63- def pom = new groovy.xml.XmlSlurper (). parseText(file(' pom.xml' ). text)
64- def pomVersion = pom. parent. version
65- return pomVersion
66- }
61+ logger. info(' Info: provided project version ' + project. findProperty(' projectVersion' ))
62+ return project. findProperty(' projectVersion' ) ?: ' 5.0-SNAPSHOT'
6763}
6864
6965def classpathFile = file(' build/classpath.txt' )
Original file line number Diff line number Diff line change 114114 <argument >clean</argument >
115115 <argument >${gradle.task} </argument >
116116 <argument >--no-daemon</argument >
117+ <argument >-PprojectVersion=${project.version} </argument >
117118 </arguments >
118119 </configuration >
119120 <goals >
You can’t perform that action at this time.
0 commit comments