成果物をビルドする際、プロパティファイルなどの値を環境なんかに応じて変えたいといった場合、ビルドする度にファイルの値を書き換えてビルドするのはとても面倒 今回はそんな対策の内容 ソースは こちら (Java ソースファイルなんかは適当、重要なのは Gradle 側) ちなみにEclipse使ってるわけで、ビルドの出力先は「WebContent/WEB-INF/classes」 今回キーとなるファイル(ディレクトリ)は以下 build/template (変換して war に追加するものがあるディレクトリ) build/token ( template 内にある変換ファイルの、変換値を設定したファイル のディレクトリ) build.gradle (ビルドファイル) Github にあるもので war タスクを実行すれば、war が作成される 説明したいことは build.gradle 内にコ