class MiubiqBuildPlugin extends java.lang.Object
Created by tkonishi on 2016/05/21.
| Modifiers | Name | Description |
|---|---|---|
enum |
MiubiqBuildPlugin.MiubiqTaskName |
Taskのgroup名を表現するenum 各Taskの宣言時に利用する. |
| Type Params | Return Type | Name and description |
|---|---|---|
|
void |
apply(org.gradle.api.Project project)このプラグインが適用(apply)されてsyncされたとき,このメソッドが走る. |
|
static void |
copyResourceFile(java.lang.String resourceName, java.lang.String dstFilePath, boolean overwrite, java.nio.file.attribute.PosixFilePermission... permissions)プラグインの中に含めたファイルを,applyしたプロジェクトの指定したディレクトリにコピーする. |
|
java.lang.Object |
extractTag(org.gradle.api.Project project)Gitのタグを取得する |
|
static java.lang.Object |
extractVersion(java.lang.String str, org.ajoberstar.grgit.Grgit repo)`git describe --tags` returns if the current commit has a tag: "(the latest tag)" else: "(the latest tag)-(the num from the commit with the latest tag to the current commit)" |
|
static org.ajoberstar.grgit.Status |
getGitStatus(org.ajoberstar.grgit.Grgit repo)適応されるプロジェクトにapplyされている言語 |
|
static java.lang.String |
getHash(org.ajoberstar.grgit.Grgit repo)Gitのハッシュ上7桁を切り出す関する |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
このプラグインが適用(apply)されてsyncされたとき,このメソッドが走る.
project - 適用されたプロジェクト(プラグイン利用側)プラグインの中に含めたファイルを,applyしたプロジェクトの指定したディレクトリにコピーする.
resourceName - org/miubiq/plugin/以下に配置した,コピー元のファイルdstFilePath - 利用するプロジェクトにおける,コピー先のファイルパスoverwrite - 既に存在する場合,上書きするかどうかpermissions - 実行権限など,権限を追加するGitのタグを取得する
`git describe --tags` returns if the current commit has a tag: "(the latest tag)" else: "(the latest tag)-(the num from the commit with the latest tag to the current commit)"
適応されるプロジェクトにapplyされている言語
Gitのハッシュ上7桁を切り出す関する