LoginSignup
8
6

More than 5 years have passed since last update.

assembleコマンドのショートカット

Last updated at Posted at 2014-12-08

Gradleでapkをビルドする場合、ターミナル上からコマンドでビルドできます。
コマンドが長くて面倒だと思ってたのですが、短くする方法があったのでメモです。

その方法なのですが、Android Gradle Pluginのページにcamel case shortcutsとして紹介されていました。
例えば、assembleReleaseの場合

$ ./gradlew aR
$ ./gradlew asR
$ ./gradlew aRe

のように書くことで実行できます。
assembleDebugなどでも同様に実行可能ですが、aDでマッチするタスクが複数ある(androidDependenciesなど)ため注意が必要です。

$ ./gradlew aDeb

これでassembleDebugが実行できました。

8
6
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
8
6