Skip to content

Reproducible Build: need to inject JDK distribution details to rebuild #3563

@hboutemy

Description

@hboutemy

rebuilding Mockito releases to check thatbuild can really be reproduced bit for bit: https://github.com/jvm-repo-rebuild/reproducible-central/blob/master/content/org/mockito/mockito-core/README.md

for release 5.15.2, the only issue I get is in 3 .jar (not all):

├── META-INF/MANIFEST.MF
│ @@ -1,13 +1,13 @@
│  Manifest-Version: 1.0
│  Bundle-ManifestVersion: 2
│  Bundle-Name: mockito-errorprone
│  Bundle-SymbolicName: mockito-errorprone
│  Bundle-Version: 5.15.2
│ -Created-By: 21.0.5 (Azul Systems, Inc.)
│ +Created-By: 21.0.5 (Eclipse Adoptium)
│  Import-Package: com.google.errorprone;version="[2.23,3)",com.google.er
│   rorprone.bugpatterns;version="[2.23,3)",com.google.errorprone.fixes;v

which means the build is in theory reproducible, but in practice for these 3 jars I need to use EXACTLY 21.0.5 (Azul Systems, Inc.)

questions:

  • can I inject a build property to override the value automatically detected from effective JDK details?
  • do you have another strategy for rebuilders?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions