uschindler edited a comment on pull request #148:
URL: https://github.com/apache/solr/pull/148#issuecomment-848109056


   > Just a thought-- perhaps SNAPSHOT dependencies should simply never be in 
versions.lock? And if we do these Lucene releases with -SNAPSHOT suffix, it'd 
be less files to change. On the other hand, changing something is perhaps the 
point -- to make the specific version visible and perhaps make git bisect and 
other things work better / repeatably.
   
   `SNAPSHOT` is a special term in Maven and is handled specifically, so never 
use SNAPSHOT unless it is a real maven snapshot.
   
   We have to change both files, also the versions.props file (the locks file 
is generated by the `--write-locks` command). If we just change the URL of the 
repository and have a static version with a fixed name, Gradle will never try 
to download it. Committer only has to change 2 files, each of them only one 
line!
   
   So the prerelease MUST have a different name (in our case the Jenkins build 
number). The repository also contains the build number, but this is just a 
worksaround because we can't merge or deploy a new artifact to an existing 
repository with the current setup. 
   
   Fixed version numbers are also important to be able to checkout e.g. an 
older commit and build it. Or if you have an older pull request,...
   
   So it is important to have different versions, otherwise we are back at the 
same issue like with snapshots: They change suddenly!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to