apply plugin:Gradle プラグインを作成していますが、プラグインを使用する Gradle スクリプトでコマンドを機能させることができません。Gradle 1.1を使用しています。
でプラグインをビルドしましたがclean build、今のところフラット リポジトリ経由で Gradle ビルドに追加しようとしています。それは機能しているようですが、Gradle は ID のプラグインがあることを認識していませんtest-plugin。プラグインのプロジェクト名settings.gradleはtest-pluginで、プロパティ ファイルMETA-INF/gradle-pluginsもtest-plugin.propertiesです。プラグイン ID を指定できる他の場所がわかりません。
build.gradleを使用しているプロジェクト内のファイルtest-plugin:
repositories {
flatDir name: 'libs', dirs: "../build/libs"
}
dependencies {
compile 'test:test-plugin:0.1'
}
apply plugin: 'test-plugin'
Gradle からのエラー:
What went wrong:
A problem occurred evaluating root project 'tmp'.
Plugin with id 'test-plugin' not found.