0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

gradle-wrapper.propertiesは使用するGradleのバージョンやダウンロード場所を定義するファイルです。こちらに記述する内容をメモします。

テンプレート

以下が典型的な gradle-wrapper.properties の内容です。

distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-x.x-bin.zip

各設定項目の意味

  • distributionBase
    Gradle を保存するベースディレクトリ(通常は GRADLE_USER_HOME)

  • distributionPath
    上記の中の保存パス

  • zipStoreBase
    ZIPファイル(ダウンロードされたGradle)の保存先

  • zipStorePath
    ZIPファイルの保存サブパス

  • distributionUrl
    Gradle のダウンロードURL(バージョンと種類の指定)

    • distributionUrlのbinとallの違い
      bin・・・実行に必要な最小限構成
      all・・・ドキュメント、ソースコードを含むんでおり場合によってはビルドが少し遅くなる。

Wrapperを使用すればチーム全員が同じ Gradle バージョンでビルド可能で CI 環境でもバージョンを固定できます。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?