[ 
https://issues.apache.org/jira/browse/KAFKA-19762?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18030922#comment-18030922
 ] 

Naveen commented on KAFKA-19762:
--------------------------------

Hi [~dejan2609] Per the docs reproducible builds is enabled by deafult on 
gradle 9

{code:java}
Starting with Gradle 9, archives are reproducible by default.
{code}

is this code block no longer required? 


{code:java}
  tasks.withType(AbstractArchiveTask).configureEach {
    reproducibleFileOrder = false
    preserveFileTimestamps = true
    useFileSystemPermissions()
  }
{code}

Sources:
[Gradle 
Docks|https://docs.gradle.org/current/userguide/working_with_files.html#sec:reproducible_archives]
[Gradle Reproducible Plugin|https://gradlex.org/reproducible-builds/]


> Turn on Gradle reproducible builds feature
> ------------------------------------------
>
>                 Key: KAFKA-19762
>                 URL: https://issues.apache.org/jira/browse/KAFKA-19762
>             Project: Kafka
>          Issue Type: Task
>          Components: build
>            Reporter: Dejan Stojadinović
>            Priority: Minor
>              Labels: Gradle, build, gradle
>
> *Prologue:* 
> [https://github.com/apache/kafka/pull/19513#discussion_r2405757923] 
> *Note:* during the Gradle version upgrade from 8 to 9 (KAFKA-19174), the 
> reproducible build feature was turned off (but it should be switched on at 
> some point in the future)
> *Related Gradle issues and links:*
>  *  [https://github.com/gradle/gradle/issues/34643]
>  * [https://github.com/gradle/gradle/issues/30871]  
>  * 
> [https://docs.gradle.org/9.1.0/userguide/working_with_files.html#sec:reproducible_archives]
>  * 
> [https://docs.gradle.org/9.1.0/userguide/upgrading_major_version_9.html#reproducible_archives_by_default]
>  
>  * 
> [https://docs.gradle.org/9.1.0/dsl/org.gradle.api.tasks.bundling.Tar.html#org.gradle.api.tasks.bundling.Tar:preserveFileTimestamps]
>   
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to