Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Top-level LICENSE says Gradle wrapper v5.5, but the gradlew scripts are from Gradle 6.9.1

未关闭 适合新手
#269 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
85/100
Issue 类型
文档
描述清晰度
描述清楚
活跃度
活跃

调研方向

从顶层 LICENSE 开始,将其中的 Gradle wrapper 条目与 build/openwhisk/gradle/wrapper/gradle-wrapper.properties 和 build/Taskfile.yml 进行比较,这些文件标明了版本 6.9.1。更新列出的 LICENSE 和 NOTICE 副本中的过时 v5.5 引用,然后搜索剩余的 v5.5 wrapper 文本,并确认每个描述都与现有文件相匹配。

由索引模型根据 Issue 内容生成。

描述

The top-level LICENSE (line 229 in the 0.9.0-incubating-RC7 source release) says:

Gradle wrapper v5.5
  The files build/openwhisk/gradlew and build/openwhisk/gradlew.bat are
  distributed under the Apache License, Version 2.0. For details see those
  files.

The shipped gradlew and gradlew.bat are not from Gradle 5.5. They are the wrapper scripts from Gradle 6.9.x (6.9.1).

Evidence

  • build/openwhisk/gradlew is byte-identical to upstream Apache OpenWhisk's gradlew as of commit f29981a2f "Bumping to gradle 6" (2022-07-28). gradlew.bat is identical to that commit's too, apart from CRLF line endings. That commit set the wrapper to gradle-6.9.1-bin.zip.
  • The Gradle 5.5 scripts are different. OpenWhisk's scripts from d9de97d6e "Update Gradle to 5.5 version" (2019), which match Gradle's own v5.5.0 scripts, do not match what we ship.
  • Compared with the gradlew in Gradle's own repository at v6.9.1, ours differs only in DEFAULT_JVM_OPTS: Gradle's own build adds -Dfile.encoding=UTF-8, which is project-specific.
  • The rest of the build agrees: build/openwhisk/gradle/wrapper/gradle-wrapper.properties uses gradle-6.9.1-bin.zip, and build/Taskfile.yml downloads the 6.9.1 gradle-wrapper.jar.

The "v5.5" text was inherited from upstream OpenWhisk's LICENSE.txt, which was not updated when OpenWhisk moved to Gradle 6.

Suggested fix

Change the top-level LICENSE entry to Gradle 6.9.1, e.g.:

Gradle wrapper v6.9.1
  The files build/openwhisk/gradlew and build/openwhisk/gradlew.bat are
  distributed under the Apache License, Version 2.0. For details see those
  files.

The same "v5.5" text also appears in build/LICENSE, build/NOTICE, oplugins-op/LICENSE and build/openwhisk/LICENSE.txt. That is another example of the subdirectory copies drifting (#268). oplugins-op/LICENSE is also wrong in a second way: oplugins-op contains no gradlew at all.

Related: #268.

主要语言
Python
星标
576
派生
29
平均合并
3 小时 26 分钟
30 天内合并 PR
12

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

apache/openserverless 的其他 Issue

查看 apache/openserverless 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。