Gradle plugin in master to depend on the Linkage Checker master
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 35/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- java
- 領域
- build-system, release
調査の方向性
まず scripts/prepare_release.sh、build.gradle、およびリンクされている RELEASING.md ファイルを読んで、現在のバージョニングとリリースの流れを理解します。Gradle プラグインが dependencies モジュールをどのように利用しているかを比較し、proposal に記載されたリリース動作を定義します。master が LinkageChecker master を使用でき、リリースでは両方のコンポーネントを同じバージョンに固定し、Gradle 固有のタグサフィックスが不要になれば完了です。
索引モデルが issue の本文から書いたものです。
説明
As of now, a change to the LinkageChecker class is not immediately used in the Gradle plugin, because the Gradle plugin uses a fixed version of the "com.google.cloud.tools:dependencies" artifact. This disconnection causes pain in:
- the increased release procedure for the Gradle plugin
- the late validation of a LinkageChecker's change against the Gradle plugin
Current Release Procedure
Everytime we change LinkageChecker in the dependencies module, we need to do the following
- release the dependencies module as part of https://github.com/GoogleCloudPlatform/cloud-opensource-java/blob/master/RELEASING.md
- wait until the latest version of the dependencies module appear in Maven Central
- update Gradle plugin to use the latest version (example pull request)
- This may involve code change in the Gradle plugin. This change could happen before the dependencies module if the Gradle plugin in master branch relies on the LinkageChecker in master.
- If this upgrade reveals a LinkageChecker's bug for Gradle plugin, we have to go back to the change that caused the bug.
- release the Gradle plugin https://github.com/GoogleCloudPlatform/cloud-opensource-java/blob/master/gradle-plugin/RELEASING.md (example pull request)
This usesvX.Y.Z-gradlerelease tag. This version is independent from the Maven enforcer rule's version.
Proposal
The Enforcer Rule in Maven and the Gradle plugin in Gradle
This is an enhancement of current setup of mixing Gradle and Maven and this proposes to enhance the release script "scripts/prepare_release.sh" so that:
- the Gradle plugin in master branch relies on the LinkageChecker in master. (version
latest.integration) - When the release script creates a release tag, it sets the dependencies module version in
build.gradleto the releasing version. Suppose we usev1.6.0-dependencies. - We release the Linkage Checker enforcer rule and the Gradle plugin using the tag
v1.6.0-dependencies. No need to wait for Maven Central. As the result, the enforcer rule and the Gradle plugin will have the same version for one release.
(We no longer use thevX.Y.Z-gradlerelease tag suffix.)
The Gradle plugin to have java.sourceSet to include ../dependencies/src/main/java
This would have duplicate
Other options considered
Everything in Maven
https://stackoverflow.com/questions/27555560/how-can-i-build-a-gradle-plugin-with-maven . Spring Boot's Gradle plugin was developed in Maven. But now they develop it in Gradle.
The stackoverflow explains https://repo.gradle.org/gradle/libs-releases-local but the latest of https://repo.gradle.org/gradle/libs-releases-local/org/gradle/gradle-core-api/ is 6.1.1. (The latest Gradle version is 6.6). Yet, if some artifacts are missing in Maven Central but available somewhere (as part of Gradle distribution), we can create a Maven local ("libs" directory) repository that holds the artifact in this cloud-opensource-java repository just to build our Gradle plugin. Alternative to the lib directory, we can use the maven-install-plugin to move them to he local repository.
If we don't use Gradle's "com.gradle.plugin-publish" plugin, we'll need to figure out how to upload artifacts to Gradle's plugin repository. (If the Gradle repository changes how it works, we're responsible to adjust it.)
Everything in Gradle
Jib project is all Gradle. They develop Jib Maven plugin in Gradle.
We have settings done in Maven:
- The Maven invoker plugin for the enforcer rule integration tests.
- The release script uses
mvn versions:setto apply changes to pom.xml at once.
It's feasible but this effort does not sound good just for this purpose to align the Gradle enforcer rule and Maven enfrocer rule.
- 主要言語
- Java
- スター
- 163
- フォーク
- 81
- PR マージ指標
- 30日以内にマージされた PR はありません
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
GoogleCloudPlatform/cloud-opensource-java のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
GoogleCloudPlatform/cloud-opensource-java#2419 · コメント 1 件 · リアクション 2 件 ·
-
best practices
難易度 1/5 1時間未満 初心者へのやさしさ 62/100
-
難易度 3/5 1〜2日 初心者へのやさしさ 55/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 42/100
-
enhancement p2
GoogleCloudPlatform/cloud-opensource-java#2468 · コメント 1 件 · 担当者 1 名 ·
GoogleCloudPlatform/cloud-opensource-java の issue をすべて見る
似ている issue
-
certification
難易度 1/5 1時間未満 初心者へのやさしさ 80/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
[BUG] ECR GetAuthorizationToken returns a proxyEndpoint for the default region, not the request's オープンbug ecr
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
Needs: Triage Type: Feature request
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
AntennaPod/AntennaPod#8794 ·
-
agentic-workflows
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
github/copilot-sdk#2760 ·