Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Timestamped Snapshots are not well respected with jib #4277

Open
anuragagarwal561994 opened this issue Jun 24, 2024 · 0 comments
Open

Timestamped Snapshots are not well respected with jib #4277

anuragagarwal561994 opened this issue Jun 24, 2024 · 0 comments

Comments

@anuragagarwal561994
Copy link

Environment:

  • Jib version: 3.4.3
  • Build tool: maven
  • OS: Mac

Description of the issue:
When a timestamped version of a snapshot dependency is used, jib includes the jar representing the snapshot which is usually the latest timestamp, hence not being able to make a reproducible build.

Example:

<dependency>
    <groupId>com.example<groupId>
    <artifactId>artifact<artifactId>
    <version>4.127-20240621.201418-5</version>
</dependency>

In this case from debug logs I get:

Snapshot dependencies:
[DEBUG] 		/.m2/repository/com/example/artifact/4.127-SNAPSHOT/artifact-4.127-SNAPSHOT.jar

This will represent the latest version of the file.

Expected behavior:
Instead of generic snapshot, timestamped snapshot should be picked and added to the classpath

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants