Skip to content

Instantly share code, notes, and snippets.

@jyukutyo
Created May 2, 2016 07:29
Show Gist options
  • Save jyukutyo/4cd746ff4b37119bda62255748c4e824 to your computer and use it in GitHub Desktop.
Save jyukutyo/4cd746ff4b37119bda62255748c4e824 to your computer and use it in GitHub Desktop.
Gradleに含まれるAntのバージョンを出力する
task antVersion << {
//デフォルトのantオブジェクトのプロパティ集をMapで入手
def m = ant.getProperties()
//ant.versionをキーに取得
println(m.get('ant.version'))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment