Help
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Copilot Lvl 3
Message 1 of 3

Github Package snapshot build number not updating

When I publish new versions of a SNAPSHOT build to github packages, the build number is not updated.

 

<metadata modelVersion="">
  <groupId>com.derongan.minecraft</groupId>
  <artifactId>guiy</artifactId>
  <version>0.1.0-SNAPSHOT</version>
  <versioning>
    <snapshot>
    <timestamp>20200305.031042</timestamp>
    <buildNumber>1</buildNumber>
  </snapshot>
  <snapshotVersion>
    <extension>jar</extension>
    <value>0.1.0-20200305.034406-2</value>
    <updated>20200305034436</updated>
  </snapshotVersion>
  <snapshotVersion>
    <extension>jar</extension>
    <value>0.1.0-20200305.190209-2</value>
    <updated>20200305190240</updated>
  </snapshotVersion>

I think this is causing gradle to always download build-number 1, and any later snapshots are ignored.

2 Replies
Highlighted
Community Manager
Message 2 of 3

Re: Github Package snapshot build number not updating

Hey @Derongan, as far as I know we don't support mutating packages in terms of publishing a new SNAPSHOT to override an existing SNAPSHOT.


My very best,
Andrea

Mark helpful posts with Accept as Solution to help other users locate important info. Don't forget to give Kudos for great content!

Highlighted
Copilot Lvl 2
Message 3 of 3

Re: Github Package snapshot build number not updating

@AndreaGriffiths11  Just to clarify, does this mean that we cannot upload multiple builds for the same snapshot (e.g. 1.0.0-SNAPSHOT) and have GitHub serve the latest artifact? Encountering a similar issue at the moment where only the first build is being pulled down from the repository (even after deleting my local cache).