You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Sergey Nuyanzin (Jira)" <ji...@apache.org> on 2022/06/23 16:58:00 UTC

[jira] [Updated] (CALCITE-5197) Bump gradle to 7.4.2 and add checksum autoupdate

     [ https://issues.apache.org/jira/browse/CALCITE-5197?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sergey Nuyanzin updated CALCITE-5197:
-------------------------------------
    Description: 
The problem with gradle update via
{code}
./gradlew wrapper --gradle-version <new_version> && ./gradlew autostyleApply
{code}
it removes checksum from {{gradle/wrapper/gradle-wrapper.properties}}

there could be added a task which could update checksum as well, e.g.
{code}
tasks.wrapper {
    distributionType = Wrapper.DistributionType.BIN
    doLast {
        val sha256Uri = URI("$distributionUrl.sha256")
        val sha256Sum = String(sha256Uri.toURL().readBytes())
        propertiesFile.appendText("distributionSha256Sum=${sha256Sum}\n")
    }
}
{code}

  was:
The problem with gradle update via
{code}
./gradlew wrapper --gradle-version <new_version> && ./gradlew autostyleApply
{code}
it removes checksum from {{gradle/wrapper/gradle-wrapper.properties}}

there could be added a task which could update checksum as well, e.g.
{code:kotlin}
tasks.wrapper {
    distributionType = Wrapper.DistributionType.BIN
    doLast {
        val sha256Uri = URI("$distributionUrl.sha256")
        val sha256Sum = String(sha256Uri.toURL().readBytes())
        propertiesFile.appendText("distributionSha256Sum=${sha256Sum}\n")
    }
}
{code}


> Bump gradle to 7.4.2 and add checksum autoupdate
> ------------------------------------------------
>
>                 Key: CALCITE-5197
>                 URL: https://issues.apache.org/jira/browse/CALCITE-5197
>             Project: Calcite
>          Issue Type: Improvement
>          Components: build
>    Affects Versions: 1.30.0
>            Reporter: Sergey Nuyanzin
>            Priority: Trivial
>
> The problem with gradle update via
> {code}
> ./gradlew wrapper --gradle-version <new_version> && ./gradlew autostyleApply
> {code}
> it removes checksum from {{gradle/wrapper/gradle-wrapper.properties}}
> there could be added a task which could update checksum as well, e.g.
> {code}
> tasks.wrapper {
>     distributionType = Wrapper.DistributionType.BIN
>     doLast {
>         val sha256Uri = URI("$distributionUrl.sha256")
>         val sha256Sum = String(sha256Uri.toURL().readBytes())
>         propertiesFile.appendText("distributionSha256Sum=${sha256Sum}\n")
>     }
> }
> {code}



--
This message was sent by Atlassian Jira
(v8.20.7#820007)